SAP Batch Job 备注

Relevant t-codes:
SM36: Create job
SM36WIZ: Create job with wizard
SM37: Job Overview: release scheduled job, display Job logs and steps, etc.
SM21: System Log.
ST22: ABAP runtime error, here it is used to find error info of background program
SP02: Display background report output which is outputed by WRITE statement.

Relevant FMs:
1. JOB_OPEN: Define a job
2. JOB_SUBMIT: Append program, external command or external program to the job.
          =>Job Status: "Scheduled".
3. JOB_CLOSE: Release a job. You can let the job run immediately, or run in specific start data & time, or after which event or job.
          =>Job Status: "Released"
4. SHOW_JOBSTATE: Get job status
5. BP_JOBLOG_READ: Read job log into an itab

We can find other useful FMs in Function Group: BTCH

Attachment is a simplified example.

 

Job Status in Batch Job Processing
R - Running
Y - Ready
P - Scheduled
S - Released
A - Canceled
F - Finished
Z - Active

More about Batch Job or Background Processing please refer to: http://help.sap.com/saphelp_nw04/helpdata/en/6f/08703713bf277ee10000009b38f8cf/frameset.htm

 

你可能感兴趣的:(F#)