2007 Jul 20 7:09 AM
Hi,
How do i pass an internal table through Submit statement.
i dnt want to declare a select-options for this purpose.
Is ther any other way??
Answers will be rewarded
Regards,
Rohan
2007 Jul 20 7:11 AM
Use the EXPORT TO MEMORY ID and IMPORT FROM MEMORY ID commands. Use the EXPORT statement in the calling program and IMPORT in the called program.
Manoj
2007 Jul 20 7:12 AM
HI,
You dont have to pass thru SUBMIT.
Use
EXPORT itab to MEMORY ID 'ZIDY'.
SUBMIT ZPROGRAM.
In the calling program i.e. ZPROGRAM, import itab as follows:
IMPORT ITAB from MEMORY ID 'ZIDY'.
CLEAR ZIDY.
REFRESH ZIDY.
Best regards,
Prashant
2007 Jul 20 7:12 AM
hi rohan,
Which program yuou want to pass your internal table. Is there ne selection screen interface b/w that.
Regards
Azad.
2007 Jul 20 7:12 AM
You can do it by 'submit via selection screen' command. Use import & export to memory id to passing the internal table. Submit will pas the control in other program.
2007 Jul 20 7:16 AM
Hi rohan,
Yes you can pass an internal table through IMPORT and EXPORT statement.
You can use EXPORT itab TO MEMORY ID 'ABC'.
then IMPORT itab FROM MEMORY ID 'ABC'.
You can do this for select options as well.
Rewards Points if helpful.
Regards
Sourabh Verma
2007 Jul 20 9:59 AM
Hello Rohan...
to export a table use the following
DATA: wa_indx TYPE indx.
EXPORT tab = itab TO DATABASE indx(xy) FROM wa_indx CLIENT
SY-MANDT
ID 'DETAILLIST'.
to import use this
imports from database the list sent by the calling program
IMPORT tab = itab FROM DATABASE indx(xy) TO wa_indx CLIENT sy-mandt
ID 'DETAILLIST'.
deletes the data to save wastage of memory
DELETE FROM DATABASE indx(xy)
CLIENT sy-mandt
ID 'DETAILLIST'.
2007 Jul 20 10:00 AM
Hi,
SUBMIT RMCB0300 WITH SL_WERKS-LOW EQ SO_WERKS-LOW
WITH SL_MATNR IN SO_MATNR
WITH VA EQ 'X'
WITH SL_SPMON-LOW EQ W_BUDAT1
WITH SL_SPMON-HIGH EQ W_BUDAT1
WITH SL_MTART-LOW EQ 'ROH'
WITH SLV_NO EQ 'STOCK'
EXPORTING LIST TO MEMORY AND RETURN.
Pls reward points.
Regards,
Ameet