‎2009 Feb 10 7:19 AM
I have 2 programs. From program1, i want to export a field in program2(in internal table of select-option).it means i want that field in my selection screen table(in program2).for that i am using SUBMIT statement with some addition. but it's not working.please correct me........
‎2009 Feb 10 7:25 AM
Use statement
Program 1
EXport Itab to MEMORY ID 'ASDF'.
Program 2.
IMPORT Itab FROM MEMORY ID 'ASDF'.
It will Solve you Problem
Regards,
Gaurav Sood
‎2009 Feb 10 7:26 AM
Hi ,
DATA : w TYPE i.
EXPORT w TO MEMORY ID 'ABCD'.
You Write Submit pro_name with the additions USING SELECTION-SCREEN or
Via SELECTION-SCREEN or
Via SELECTION-Set accordind to your requirement .
Form the called program Import that field -
DATA : w TYPE i.
IMPORT w FROM MEMORY ID 'ABCD'.
Regards
Pinaki
Edited by: Pinaki Mukherjee on Feb 10, 2009 8:26 AM
‎2009 Feb 10 7:28 AM
Hi,
Check this link...It described with an example also
http://help.sap.com/saphelp_nw70/helpdata/EN/9f/dba51a35c111d1829f0000e829fbfe/content.htm
‎2009 Feb 10 7:29 AM
Hi,
U can use the addition for SUBMIT like
..USING SELECTION-SETS OF PROGRAM prog
see the help on SUBMIT for further info.
thank\
Mahesh
‎2009 Feb 10 7:38 AM
Hi,
try this .
Program 1.
SUBMIT programname WITH s_carrid IN r_carrid
WITH s_connid IN r_connid AND RETURN.
( Append ranges table with data u want to submit )
program 2.
use s_carrid and s_connid in select query
‎2009 Feb 10 11:04 AM
If none of the above options work, you can export the data to Cluster table INDX and import it in any program.
The program does not need to have executed in same session.