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 statement in ABAP program

Former Member
0 Kudos

Hi All,

I am using two submit statements in my program for two different reports. When i run the program i get the output screens of the two reports at the ouptut. Is there any way i can hide the user seeing the output screens of the two programs and display only the output screen of my program. If you have any clues please post it.

Thanks & Regards,

Rahul Rathi

3 REPLIES 3

suresh_datti
Active Contributor
0 Kudos

use the SUBMIT statements with the to SAP-SPOOL option. Press F1 on SUBMIT and you will get the correct syntax.

~Suresh

uwe_schieferstein
Active Contributor
0 Kudos

Hello Rahul

You can use the following variant of the SUBMIT statement:

SUBMIT <report> EXPORTING LIST TO MEMORY
*  WITH ...
AND RETURN.

The output of the submitted report can be retrieved using function module <b>LIST_FROM_MEMORY</b> if you need it.

Regards

Uwe

Former Member
0 Kudos

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

SUBMIT <rep>|(<field>) [AND RETURN] [<options>].

You can either specify the name of the program you want to call statically by entering the program name in the code of the calling program, or dynamically by specifying the name of a field (in parentheses) containing the name of the program. If the system cannot find the specified executable program when trying to execute the SUBMIT statement, a runtime error occurs.

If you omit the AND RETURN addition, all data and list levels of the calling program (the entire internal session) are deleted. After the called executable program has finished, control returns to the level from which you started the calling program.

If you use AND RETURN, the system stores the data of the calling executable program and returns to the calling after processing the called program. The system resumes executing the calling program at the statement following the call.

The SUBMIT statement has a set of additions <options> for passing data to the called program and specifying various other processing options. Some of them are described in the following sections:

Have a look at below link. It will help you.

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

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

Best Regards,

Vibha

*Please mark all the helpful answers