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

Regarding SUBMIT

Former Member
0 Likes
909

Hi,,

Actually i am submitting one program from another program while submitting one value should be transported form submitting program to submitted program can any body help me plzz

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
880

Opt 1) Use EXPORT statement to set data in ABAP memory. IMPORT it in ur submitted program.

Opt 2) Create a hidden parameter on the selection screen of submitted program. Pass the data from calling program in SUBMIT statement with selection screen variant.

Opt 3) Store the values in customized table. Select data from this table in called program.

7 REPLIES 7
Read only

Former Member
0 Likes
881

Opt 1) Use EXPORT statement to set data in ABAP memory. IMPORT it in ur submitted program.

Opt 2) Create a hidden parameter on the selection screen of submitted program. Pass the data from calling program in SUBMIT statement with selection screen variant.

Opt 3) Store the values in customized table. Select data from this table in called program.

Read only

0 Likes
880

Hi,,

Rao thanks for u r reply plzz can u give the syntax for the opt 1 i.e. importing and exporting..

Read only

Former Member
0 Likes
880

Hi,

If you want to pass selection screen options or list options to the second program u can use those options along with SUBMIT statement.

Also,

You can use 'EXPORT var TO MEMORY-ID id' statement before submitting the program and call 'IMPORT FROM MEMORY-ID id INTO var'

inside the submitted program.The variable value will be passed.

Hope this helps you.

Reward if helpful.

Read only

Former Member
0 Likes
880

Hi,

Use SET Parameter and GET..

Regards,

Renjith Michael.

Read only

Former Member
0 Likes
880

u can use set parameter and get parameter statements.

set parameter : 'ZPARA1' field <var1>,

'ZPARA2' field <var2>.

submit zreport.

and in zreport.

get parameter : 'ZPARA1' field < var1>,

'ZPARA2' field < var2>.

Read only

Former Member
0 Likes
880

1. You have to define an internal table ITAB in program AAA.

2. In the program AAA you export your ITAB to the memory.

EXPORT ITAB TO MEMORY ID 'TD' (ID is the name of memory, you don't need to create it ).

3. In program BBB you have to declare The same table (same table's name and same fields).

4. In BBB you can import ITAB :

IMPORT ITAB FROM MEMORY ID 'TD'

5. Now you can export it to AAA after modifications.

EXPORT ITAB TO MEMORY ID 'TD'

6. In AAA :

IMPORT ITAB FROM MEMORY ID 'TD'

Instead of internal tables you can also pass other workareas in a similar way. Syntax will be the same

Read only

Former Member
0 Likes
880

Hi Sunil Kumar,

Use

SUBMIT progname WITH p = f .

where p = parameter / select option (of called program) and f is field in your calling program.

If you want to pass more than 1 value you can use "with selection-set" variance.

Regards,

Mohaiyuddin