Application Development and Automation 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: 
Read only

Problem exiting a selection-screen (Transaction call)

Former Member
0 Likes
650

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?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
611

You could use the SUBMIT ZPROGRAM AND RETURN statement.

4 REPLIES 4
Read only

Former Member
0 Likes
612

You could use the SUBMIT ZPROGRAM AND RETURN statement.

Read only

0 Likes
611

Thanks for the answer, I'll try it tomorrow morning and let you know, most probably you'll get 10 points.

Read only

Former Member
0 Likes
611

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

Read only

Former Member
0 Likes
611

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.