07-26-2010 6:56 AM
hi all..
i want to trigger one event in my main program. which triggers subprogram to execute .but this event should be such that it will not resume main program at the the time of running subprogram like call program. (for example subprogram run in bakground )how can i do this.
plz help me.
07-26-2010 7:03 AM
You can write a Wrapper Function module and use adding STARTING A NEW TASK, or STARING A BACKGROUND TASK..
hope it helps
07-26-2010 7:35 AM
Try using the SUBMIT statement, it will run the subprogram in background.
example:
SUBMIT zprogram_name WITH parameter_name = 'value'
TO SAP-SPOOL
SPOOL PARAMETERS print_parameters
WITHOUT SPOOL DYNPRO
VIA JOB lv_jobname NUMBER lv_jobnumber
AND RETURN.