‎2005 Sep 19 6:27 AM
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
‎2005 Sep 19 6:32 AM
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
‎2005 Sep 19 7:07 AM
Hi All,
How to define work area for the itab defined in importing parameters?
Regards,
Dilip
‎2005 Sep 19 7:10 AM
‎2005 Sep 19 6:32 AM
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
‎2005 Sep 19 7:13 AM
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