Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

define a table as import

Former Member
0 Likes
1,264

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,219

If it is Function Module declare the table in TABLES parameter.

Regards,

Joan

10 REPLIES 10
Read only

Former Member
0 Likes
1,219

Declare it in Changing parameters, this works as both import and export.

Read only

former_member242255
Active Contributor
0 Likes
1,219

this should be helpful...see the code in the above link

Read only

Former Member
0 Likes
1,219

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

Read only

Former Member
0 Likes
1,219

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

Read only

Former Member
0 Likes
1,219

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

Read only

Former Member
0 Likes
1,219

hi,

can you please chyeck this link

it is very useful

Thanks and regards

Durga.K

Read only

Former Member
0 Likes
1,219

Hi,

You can declare in changing parameters.

Regards,

Jyothi CH.

Read only

0 Likes
1,219

Create a table type for the structure you are assigning to import and assign the table type to import parameter type.

Read only

Former Member
0 Likes
1,220

If it is Function Module declare the table in TABLES parameter.

Regards,

Joan

Read only

Former Member
0 Likes
1,219

closing this thread