01-22-2008 7:55 AM
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
01-22-2008 8:09 AM
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.
01-22-2008 8:09 AM
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.
01-22-2008 8:12 AM
Hi,,
Rao thanks for u r reply plzz can u give the syntax for the opt 1 i.e. importing and exporting..
01-22-2008 8:12 AM
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.
01-22-2008 8:14 AM
01-22-2008 8:14 AM
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>.
01-22-2008 8:36 AM
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
01-22-2008 8:48 AM
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