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

Hi,

Former Member
0 Likes
561

I have a question regarding Submit!!.

Basically i want to submit standard SAP program from custom program. Is it possible to get the values which are entered in the selection screen of the standard program to the custom program with out executing that stnadard program?

Appreciate your time.

Please let me know if you have any questions.

Thanks a bunch

Latha.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
542

Hi Latha,

Welcome to SDN :).

When you are using SUBMIT, you won't the selection screen of the called program, actually you pass the values to that program using SELECTION OPTIONS..

Regards,

Atish

I have a question regarding Submit!!.

Basically i want to submit standard SAP program from custom program. Is it possible to get the values which are entered in the selection screen of the standard program to the custom program with out executing that stnadard program?

Appreciate your time.

Please let me know if you have any questions.

Thanks a bunch

Latha.

4 REPLIES 4
Read only

Former Member
0 Likes
543

Hi Latha,

Welcome to SDN :).

When you are using SUBMIT, you won't the selection screen of the called program, actually you pass the values to that program using SELECTION OPTIONS..

Regards,

Atish

Read only

venkat_o
Active Contributor
0 Likes
542

Hi Latha,

I understand ur problem.

You are calling one standard program in the custom program. For that you have to pass Selection screen values from custom program. In that case what you have to do , Create one variant for the standard program and pass that variant when u call standard program from custom program .

Submit statement

submit zhrpdrep38 using selection-set 'VARIANT_1'
                            exporting list to memory
                            and return.

I think that it helps you.

Regards,

Venkat.O

Read only

Former Member
0 Likes
542

Hai Vidhulatha,

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.

Regards.

Eshwar.

Read only

0 Likes
542

Thanks for the reply.

But i know to pass the values to standard program.What i need is, i want to get the values which are entered in the standard program's selection screen in to the custom program(which is my main program).

Appreciate you help!!.

Thanks

latha.