09-15-2008 11:07 AM
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
09-15-2008 11:10 AM
Hi
Try to use the option EXPORTING LIST TO MEMORY:
SUBMIT <REPORT> EXPORTING LIST TO MEMORY AND RETURN.
Max
09-15-2008 11:10 AM
09-15-2008 11:10 AM
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
09-15-2008 11:10 AM
09-15-2008 11:11 AM
09-15-2008 11:11 AM
Hi,
You can use the Call screen 'A' option after executing B program
Regards
Pavan
09-15-2008 11:12 AM
Hi,
Instead of SUBMIT ZREPORT,
Use SUBMIT ZREPORT AND RETURN.
Regards,
Rama.
09-15-2008 11:13 AM
Check if you have used SUMIIT AND RETURN statement.
Regards,
Aparna Gaikwad
09-15-2008 11:13 AM
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.