‎2006 Nov 01 1:55 PM
Hi all,
I am calling a program from another program.
I want to return back to the CALLING-PROGRAM's when the execution of the CALLED-PROGRAM is over.
WHEN the CALLED-PROGRAM's execution is completed, I press F3 so that the CALLED-PROGRAM's SELECTION-SCREEN appears.
Now, I want to switch back from this screen to the CALLING-PROGRAM's SELECTION SCREEN.
Please advise me for the same.
Regards,
Saurabh Buksh.
‎2006 Nov 01 2:28 PM
‎2006 Nov 01 2:55 PM
Hi Saurabh,
You might have written a <b>SUBMIT</b> statement in your CALLING PROGRAM. In the SUBMIT statement, you have a option <b>AND RETURN</b>, which will solve your problem.
ex: <b>SUBMIT ZPROGRAM1 VIA SELECTION-SCREEN AND RETURN.</b>
Regards,
Abdul.
P.S: Reward Points, if useful.
‎2006 Nov 01 3:13 PM
After the submit statment add the command
LEAVE LIST-PROCESSING.
That will return you to the selection screen.