SM50 查看进程
2015-10-20 10:36
549 查看
有时候前途操作的时候会一直卡着,也不知道什么原因。
这个时候可以用SM50查看下卡在哪儿了。
然后进入debug模式……
这之后对于abap来说就可以为所欲为了
![](http://simg.sinajs.cn/blog7style/images/common/sg_trans.gif)
另外,关于SM50相关的,可以自行查询。
下面是老白的:http://blog.chinaunix.net/uid-8527621-id-2029568.html
SM50可以Debug后台程序
JOB Debug
Method
1.In SM37, select a job that has not yet been started (status
'planned' or 'released'). In addition, set a breakpoint at the
point in the source code that you want to analyze when debugging.
In SM37, enter "JDBG" in the OK
code field, and select ENTER. The selected job is now started in
debug mode, and the debugger initially stops in a system program.
Select F8 to continue the job up to the next breakpoint.
Caution: After debugging, the job still appears in SM37 as
'planned' or 'released', but the entire job (or, more specifically,
a copy of it) ran during debugging, and possible database changes
are effective as a result of the job.
2.You can catch a current batch job by using SM37 (Catch active
job) or SM50 (Debug program). To do this, you must be logged on to
the instance on which the job is running. The job is then stopped,
and you can keep it running in the debugger.
3.Use SM36 to create a job with two steps, step 1 with the BTCLOOP
report and step 2 with the report to be debugged. Then release the
job.
You can then debug the job in Transaction SM50. To do this, exit
the endless loop in the BTCLOOP report by changing the variable
I.
PROGRAM BTCLOOP MESSAGE-ID BT. "470
DATA:
I TYPE I.
I = 0.
DO.
if i ne
0.
exit.
endif.
ENDDO.
注:有的系统Report BTCLOOP跟这段代码不同,不好跳出来
另外一个:http://blog.sina.com.cn/s/blog_7f3f4db70100sev9.html
编号:进程的内部ID编号,用于标示系统日志中有关工作进程的信息。
工作进程类型:
Dialog (DIA)工作进程, 用于执行用户事务中的对话步骤
Update (UPD)更新进程, 用于执行U1数据库更改 Manages database updates
UP2更新进程, 用于执行U2数据库更改
Enqueue (ENQ) 用于设定和解除SAP锁定对象的锁定 Manages resource locks
Spool (SPO) 用于假脱机格式化处理 Manages data formatting and
printing
BGD 用于执行后台作业
PID: 工作进程的进程ID。
R/3系统,并不是一个user对应一个dia进程。简单的说,是根据用户执行任务的步骤,用户执行完任务中的一个小步骤,就会释放这个进程,等待下一步用户指示,然后再请求占用一个进程。所以,R/3系统基本上可以由很少的进程支持很多用户的使用。
这个时候可以用SM50查看下卡在哪儿了。
然后进入debug模式……
这之后对于abap来说就可以为所欲为了
![](http://simg.sinajs.cn/blog7style/images/common/sg_trans.gif)
另外,关于SM50相关的,可以自行查询。
下面是老白的:http://blog.chinaunix.net/uid-8527621-id-2029568.html
SM50可以Debug后台程序
JOB Debug
Method
1.In SM37, select a job that has not yet been started (status
'planned' or 'released'). In addition, set a breakpoint at the
point in the source code that you want to analyze when debugging.
In SM37, enter "JDBG" in the OK
code field, and select ENTER. The selected job is now started in
debug mode, and the debugger initially stops in a system program.
Select F8 to continue the job up to the next breakpoint.
Caution: After debugging, the job still appears in SM37 as
'planned' or 'released', but the entire job (or, more specifically,
a copy of it) ran during debugging, and possible database changes
are effective as a result of the job.
2.You can catch a current batch job by using SM37 (Catch active
job) or SM50 (Debug program). To do this, you must be logged on to
the instance on which the job is running. The job is then stopped,
and you can keep it running in the debugger.
3.Use SM36 to create a job with two steps, step 1 with the BTCLOOP
report and step 2 with the report to be debugged. Then release the
job.
You can then debug the job in Transaction SM50. To do this, exit
the endless loop in the BTCLOOP report by changing the variable
I.
PROGRAM BTCLOOP MESSAGE-ID BT. "470
DATA:
I TYPE I.
I = 0.
DO.
if i ne
0.
exit.
endif.
ENDDO.
注:有的系统Report BTCLOOP跟这段代码不同,不好跳出来
另外一个:http://blog.sina.com.cn/s/blog_7f3f4db70100sev9.html
编号:进程的内部ID编号,用于标示系统日志中有关工作进程的信息。
工作进程类型:
Dialog (DIA)工作进程, 用于执行用户事务中的对话步骤
Update (UPD)更新进程, 用于执行U1数据库更改 Manages database updates
UP2更新进程, 用于执行U2数据库更改
Enqueue (ENQ) 用于设定和解除SAP锁定对象的锁定 Manages resource locks
Spool (SPO) 用于假脱机格式化处理 Manages data formatting and
printing
BGD 用于执行后台作业
PID: 工作进程的进程ID。
R/3系统,并不是一个user对应一个dia进程。简单的说,是根据用户执行任务的步骤,用户执行完任务中的一个小步骤,就会释放这个进程,等待下一步用户指示,然后再请求占用一个进程。所以,R/3系统基本上可以由很少的进程支持很多用户的使用。
相关文章推荐
- MIRO中文本如何传入FI凭证的
- 黑马程序员--Java学习日记之IO流(其他流&异常处理)
- MIRO中文本如何传入FI凭证的
- BAPI自定义FIELD增强
- Table Control 响应双击事件…
- SAP的校验和替代(validation…
- SAP 手工清帐处理
- SAP学习笔记:业务范围(转S…
- SAP Batch表MCH1和MCHA…
- 上海往事之找Free机会一周
- [转]一个SAP FREE顾问…
- BAPI_PRICES_CONDITIONS定价…
- Procurement automatic(自动…
- SAP自动过帐处理
- SAP税率确定过程和科目确定…
- Android按钮单击事件的四种写法—笔记
- xmemcached
- 图像处理之相似图片识别(直方图应用篇)
- javascript事件有哪些?javascript的监听事件
- android 代码生成selector drawable