您的位置:首页 > 其它

SM50 查看进程

2015-10-20 10:36 549 查看
有时候前途操作的时候会一直卡着,也不知道什么原因。
这个时候可以用SM50查看下卡在哪儿了。
然后进入debug模式……
这之后对于abap来说就可以为所欲为了





另外,关于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系统基本上可以由很少的进程支持很多用户的使用。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: