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

submit program B and return to program A selection screen

Former Member
0 Likes
1,954

Dear all,

I have program A with selection screen and this program display listing.

In program A, when user choose the option to display another report listing in selection screen, then in program A, will have submit program B with ... and return

May I know how can make the program B after showing the listing go back to program A selection screen and not continue to display program A report listing?

Thanks

Rgds

4 REPLIES 4
Read only

anup_deshmukh4
Active Contributor
0 Likes
1,048

Why not to call / leave to the same program A after B finishes...!

Edited by: Anup Deshmukh on Jul 16, 2010 8:54 AM

Read only

Former Member
0 Likes
1,048

Hi,

i do it on this way:



  SUBMIT Z_TEST AND RETURN.
*
  SUBMIT (SY-REPID) VIA SELECTION-SCREEN.
*

Regards, Dieter

Read only

0 Likes
1,048

Hi All,

I need to go back to program A and show the program A selection screen on the screen when user click back button from program B.

In program A i have statement submit program B with ... and return

but when i click back button in program B, the system totally come out from both program A and B. I need it to go back to program A and stop at the program A selection screen.

Thanks

Read only

0 Likes
1,048

Like this


"-----------------------------------
REPORT  z_a.

PARAMETERS: pa_a(10) TYPE c,
            pa_callb AS CHECKBOX.
IF pa_callb = 'X'.
  SUBMIT z_b WITH pa_b = pa_a
        AND RETURN.
  EXIT.
ENDIF.


WRITE: / 'Here is program A, the parameter value is: ',pa_a .


"-----------------------------------
REPORT  Z_B.

PARAMETERS pa_b(10) type c.

write: / 'Here is program B, the parameter value passed from A is: ',pa_b .

Regards

Marcin