‎2008 Apr 25 3:36 PM
Hi Friends,
Is there any way pass internal tables through submit command
.
first program: I have two internal tables.
second program i have two internal tables with same name as first.
how to pass first program internal tables to second internal tables using SUBMIT keyword ...
pls help me.
Thanks in advance.
regards
Raghunath
‎2008 Apr 25 3:39 PM
hi Raghu,
Why don't you call the first program in the second as an include program...
REgards,
Santosh
‎2008 Apr 25 3:42 PM
F1 on EXPORT verb gives this
Variant 5
EXPORT (itab) TO ... .
Effect
Specifies the objects you want to export in the internal table itab. You can use this dynamic
variant instead of the static one in any of variants 1 to 4. All additions that you can use with
the static form are also allowed with the dynamic form. The table itab must not have the type
HASHED TABLE or ANY TABLE.
Note
Structure of the internal table itab:
The first column of the table contains the object names in the data cluster (corresponds to the
static obj1, ..., objn). The second column contains the different name in the program (if necessary),
which corresponds to the field f in the = f or FROM f addition. If the table only has one column,
or the second column contains only spaces, this corresponds to a static EXPORT without a = or
FROM addition. The first and second columns of the internal table should have the type character.
‎2008 Apr 25 3:43 PM
Hi Raghunath,
Yes there is a way to Pass these Internal Tables using Export and Import
write this code in First Program:
EXPORT t_itab1 TO MEMORY ID 'MEM1'.
EXPORT t_itab2 TO MEMORY ID 'MEM1'.write this code in Second Program:
IMPORT itab1 FROM MEMORY ID 'MEM1'.
IMPORT itab2 FROM MEMORY ID 'MEM1'.or try the below code:
SUBMIT yh1075_030501a
WITH itab1 IN itab1
WITH itab2 IN itab2.Regards,
Sunil
‎2008 Apr 25 3:44 PM
hi
use Exprot and import statement
1). For this u have Export the internal table from calling program
2). Define an internal table in the called program and import the data into this table
<REMOVED BY MODERATOR>
Snehi Chouhan
Edited by: Alvaro Tejada Galindo on Apr 25, 2008 1:03 PM