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: 

Submit and return

Former Member
0 Kudos

Dear All,

I am executing program A. From program A, i am calling program B using SUBMIT command. But after using the submit statement, the control goes to the program B output and stays there. I want the control to come back to next statement of program A after submit command and not interested in displaying the output of program B.

Any idea how to avoid the result screen of program B and control comes back to program A after submit command.

Any pointers in this direction will be helpful.

Best Regards,

Tarun

9 REPLIES 9

Former Member
0 Kudos

Hi

Try to use the option EXPORTING LIST TO MEMORY:

SUBMIT <REPORT> EXPORTING LIST TO MEMORY AND RETURN.

Max

Former Member
0 Kudos

With SUBMIT statement use AND RETURN addition.

Former Member
0 Kudos

Hi,

You can call executable programs from other ABAP programs using the following statement:

SUBMIT prog|(field) [AND RETURN] [options].

Check this link:

http://help.sap.com/saphelp_nw70/helpdata/en/9f/db9dd035c111d1829f0000e829fbfe/content.htm

http://www.sapdevelopment.co.uk/reporting/rep_submit.htm

Hope this helps you

Thanks,

Ruthra

Former Member
0 Kudos

SUBMIT <report> EXPORTING LIST TO MEMORY AND RETURN.

Former Member
0 Kudos

H,

Use SUBMIT ZREPORT AND RETURN.

Regards,

Rama.

Former Member
0 Kudos

Hi,

You can use the Call screen 'A' option after executing B program

Regards

Pavan

Former Member
0 Kudos

Hi,

Instead of SUBMIT ZREPORT,

Use SUBMIT ZREPORT AND RETURN.

Regards,

Rama.

Former Member
0 Kudos

Check if you have used SUMIIT AND RETURN statement.

Regards,

Aparna Gaikwad

kiran_k8
Active Contributor
0 Kudos

Tarun,

We need to pass the input to the selection-screen of the program B that you are calling from program A.

say,

SUBMIT ZCHECK WITH p_werks = p_werk

WITH s_eindt IN s_eindt

WITH s_lifnr IN s_lifnr

WITH s_matnr IN s_matnr

WITH s_bsart IN s_bsart

WITH s_ekgrp IN s_ekgrp

WITH r_out = r_out

WITH r_down = r_down

EXPORTING LIST TO MEMORY.

AND RETURN.

You can use export-import concept to get the output of program B into program A for further processing.

K.Kiran.