Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Event to trigger abap program

Former Member
0 Kudos

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.

2 REPLIES 2

anup_deshmukh4
Active Contributor
0 Kudos

You can write a Wrapper Function module and use adding STARTING A NEW TASK, or STARING A BACKGROUND TASK..

hope it helps

Former Member
0 Kudos

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.