全部博文(90)
分类:
2010-03-23 16:26:49
to set breakpoints in modal dialogs | (一)• Click on the Create shortcut icon on the toolbar. • In the popup window choose "System command" and in the command enter "/h" • A shortcut on the desktop would be created • Drag and drop the shortcut to the modal window to set debugging on. (二) • Create a txt file on the desktop with the following lines: • [HOME:FUNCTION] • Command=/H • Title=Debugger Type= SystemCommand • Drag and drop this file to the modal window to set debugging on. |
to debug completed background process | • Use SM37 to get list of jobs, put the cursor on the job, type JDBG in the command line ( no '/' ), and press ENTER • You are in debug mode now. Step through SAP program (press F7 couple of times) until you get to code you need Note:do this only after the job has finished execution. This will simulate the exact background scenario with the same selection screen values as used in the job and sy-batch set to 'X' |
coding way | put a indefinite loop in the code before the point where you want to debug DATA: num TYPE c VALUE 0. WHILE num EQ 0. IF num EQ 1. EXIT. ENDIF. ENDWHILE. Go to SM50:Select this job. Go to menu bar item Program/Session àProgramàDebuggingàyes |