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

Function Module TABLES parameters

Former Member
0 Likes
2,126

Hi All,

I want to pass my internal table to a function module but when I try to access the componenbts of the table it is giving me syntax error. Is it required that I should create DDIC structure for this? Is there any other option?

I have declared the internal table using types. And in function module tables parameters just declared internal table.

Regards,

Dilip

5 REPLIES 5
Read only

athavanraja
Active Contributor
0 Likes
732

if your function module is RFC enabled , yes you need to create DDIC structure, else just place your parameter for itab in the import parameter and not in the tables area.

Regards

Raja

Read only

0 Likes
732

Hi All,

How to define work area for the itab defined in importing parameters?

Regards,

Dilip

Read only

0 Likes
732

data: itab_wa like line of <name of your itab> .

Regards

Raja

Read only

Former Member
0 Likes
732

Hi

See the function GUI_DOWNLOAD ( param DATA-TAB). It has not defined the table type . It will take the structure of passed table at runtime.

With TABLE parameter you can use it above way.

You cal also use Importing parameters without specifying any type . You can pass an Internal table ITAB[] here .

Cheers

Read only

Former Member
0 Likes
732

Hi

In the function

Say import parameter is TAB ( with no type definition )

From program you pass an internal table ITAB .

You don't need to define TAB in your function.

In the code you can diretcly use

LOOP AT TAB.

ENDLOOP.

( At runtime TAB will take the structure of ITAB from program )

Cheers