Chinaunix首页 | 论坛 | 博客
  • 博客访问: 235014
  • 博文数量: 90
  • 博客积分: 4000
  • 博客等级: 上校
  • 技术积分: 970
  • 用 户 组: 普通用户
  • 注册时间: 2009-01-04 15:21
文章分类

全部博文(90)

文章存档

2010年(7)

2009年(83)

我的朋友

分类:

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

阅读(492) | 评论(0) | 转发(0) |
0

上一篇:How to find Enhancement entry

下一篇:没有了

给主人留下些什么吧!~~