‎2008 Sep 17 9:22 PM
I have a program that is called by a transaction, the idea is to use in the near future that transaction to call the program from inside another program.
But my program is not releasing control back to the transaction.
I only have a selection screen with one parameter, a select-options over a single field, then I load an IT,modify it by requirement, and save the data on the original table. This part works wonderfully.
The program doesn't need to say anything at all to the users, just exit and return the control to the transaction that called it, but it remains at the select-screen, select-options phase, and neither EXIT, RETURN or STOP work at all.
Any Ideas?
‎2008 Sep 17 9:27 PM
‎2008 Sep 17 9:27 PM
‎2008 Sep 17 9:30 PM
Thanks for the answer, I'll try it tomorrow morning and let you know, most probably you'll get 10 points.
‎2008 Sep 17 9:52 PM
You can also call the program with select-options and / or parameters and / or variant...
SUBMIT ZPPR_ORDERS_OUTPUT WITH S_VBELN IN LR_VBELN
WITH P_AUART = I_AUART AND RETURN.
Regards,
Rebeka
‎2008 Sep 18 2:11 PM
Thanks a lot, submit program does some of what I was looking for, yet stayed in the selection screen. Luckily close to it in the help system there's an item labeled 'Exiting a called program' and there I found the LEAVE PROGRAM statment I was really needing.