‎2009 Mar 04 6:03 AM
Hi All,
I am new to ABAP programming.
I need to know how to define table as import parameter.
Table has only 2 parameters both of them are from standard table - MARA.
please let me know.
Thanks and reagrds,
Aditya Deshpande
‎2009 Mar 04 6:35 AM
If it is Function Module declare the table in TABLES parameter.
Regards,
Joan
‎2009 Mar 04 6:05 AM
Declare it in Changing parameters, this works as both import and export.
‎2009 Mar 04 6:07 AM
‎2009 Mar 04 6:17 AM
Hi,
I think u r asking question related to Function module.
In Function module, TABLES parameter will act as a both Export and Import parameter. So you can define your import table in TABLES parameter.
Regards,
Prem
‎2009 Mar 04 6:17 AM
Hi,
ur question is not clear.....
wht u want to pass Table as Import parameter:
In Function Module you can pass it through TABLES Parameter;
In Subroutine also you can pass it through TABLES ......
If you want to pass particular fields as IMPORT....
In Function Module you can pass it through IMPORT Parameter;
In Subroutine you can pass it through USING ......
-
(refer the F1 help for both)
Regards,
Neha
‎2009 Mar 04 6:22 AM
Hi Aditya,
For internal table you can export in to one parameter id like:
REPORT ZREPORT1.
EXPORT ITAB TO MEMORY ID 'ABC'.
SUBMIT zREPORT2.
Then in Report: ZREPORT2.
IMPORT ITAB FROM MEMORY ID 'ABC'.
Hope it helps
Regrds
Mansi
‎2009 Mar 04 6:25 AM
‎2009 Mar 04 6:29 AM
Hi,
You can declare in changing parameters.
Regards,
Jyothi CH.
‎2009 Mar 04 6:30 AM
Create a table type for the structure you are assigning to import and assign the table type to import parameter type.
‎2009 Mar 04 6:35 AM
If it is Function Module declare the table in TABLES parameter.
Regards,
Joan
‎2009 Nov 02 12:34 PM