Submit doubt...
I have a program which has to be run in the back ground and the list of which must be displayed in the spool. This program should be executed from another program. Will the SUBMIT Command run the program for me in the back ground????
The reason I want to call the program in the back ground is to avoid short dumps due to time out while selecting data. Will submit execute the program in background???
I m sayin: submit ZMMexwerks with p_swerks eq v_Src_werks
with s_twerks in r_trg_Werks.
Will the program ZMMexwerks be called in the background?
Thankss...
SUBMIT
Basic forms:
1. SUBMIT rep.
Search for documentation on SUBMIT F1 Help.
You need to use couple of function Modules.
===========================================
2. SUBMIT (name).
Additions:
8. ... USER user VIA JOB job NUMBER n
Addition 8
... USER user VIA JOB job NUMBER n
Effect
Schedules the specified report in the job specified by the job name job and the job number n. The job runs under the user name user and you can omit the addition USER user. The assignment of the job number occurs via the function module JOB_OPEN (see also the documentation for the function modules JOB_CLOSE and JOB_SUBMIT). This addition can only be used with the addition ...AND RETURN.
Note
When scheduling a report with the SUBMIT ... VIA JOB job NUMBER n statement, you should always use the addition ...TO SAP-SPOOL to pass print and/or archive parameters. Otherwise, default values are used to generate the list and this disturbs operations in a production environment.
SY-SUBRC = 0:
Job scheduled successfully
SY-SUBRC = 4:
Job scheduling terminated by user
SY-SUBRC = 8:
Error in job scheduling (JOB_SUBMIT)
==================================