sap 后台作业

 

在ABAP程序中提交作业至后台的代码:

DATA:
   JOBNAME  TYPE TBTCJOB-JOBNAME,
   JOBCOUNT TYPE TBTCJOB-JOBCOUNT.

JOBNAME = SY-REPID.

CALL FUNCTION 'JOB_OPEN'
  EXPORTING
     JOBNAME                 = JOBNAME
  IMPORTING
     JOBCOUNT                = JOBCOUNT.

SUBMIT 程序名 USER 用户名 VIA JOB JOBNAME NUMBER JOBCOUNT AND RETURN.

CALL FUNCTION 'JOB_CLOSE'
  EXPORTING
     JOBCOUNT                           = JOBCOUNT
     JOBNAME                            = JOBNAME
     STRTIMMED                          = 'X'.

定义后台作业 SM36

显示作业状态 SM37

http://hi.baidu.com/ctmsap/blog/item/b67127fb7061f39158ee9065.html

你可能感兴趣的:(html,Blog)