‎2008 Sep 04 8:10 AM
Dear all,
I have to pass my inernal table in function module using export parameters as tables parameters are obsolete. I have declared my passing parameter referencing it with table type, but still when i try to pass, it says it is not a structure or itab with header line.How do i get past this?
Any help would be greatly appreciated.
Regards,
C.A
‎2008 Sep 04 8:15 AM
Hi Abinay,
Better you use CHANGING parameter to pass the internal table.
As you have nmentioned that you have created the table type using Se11 and used that type as reference type.
do the same thing in Changing parameter.
now declare the work area as the line of the Internal table you have passed in the changing parameter.
Hope it will help you.
Regards,
sujit
‎2008 Sep 04 8:13 AM
‎2008 Sep 04 8:16 AM
Hi Rajesh,
loop at stock.
move-corresponding stock to ES_MIGO_BADI_SCREEN_FIELDS.
append es_migo_badi_screen_fields.
endloop.
Here stock has internal table data.
i have declared es_Migo_badi_SCREEN_FIELDS REFERENCING A TABLE TYPE IN EXPORT PARAMETERS.
THE ERROR I GET IS ES_MIGO_BADI_SCREEN_FIELDS IS NOT A STRUCTURE OR INTERNAL TABLE WITH HEADER LINE.
Regards,
C.A
‎2008 Sep 04 8:13 AM
‎2008 Sep 04 8:18 AM
Hi Eric,
Do you mean to say tables can be used althogh it gives me a warning message.
Regards,
C.A
‎2008 Sep 04 8:15 AM
Hi Abinay,
Better you use CHANGING parameter to pass the internal table.
As you have nmentioned that you have created the table type using Se11 and used that type as reference type.
do the same thing in Changing parameter.
now declare the work area as the line of the Internal table you have passed in the changing parameter.
Hope it will help you.
Regards,
sujit
‎2008 Sep 04 8:21 AM
‎2008 Sep 04 8:24 AM
Hi Abhinay,
i am not sure Just try this-
declare a work area -
Data:wa_ES_MIGO_BADI_SCREEN_FIELDS like line of ES_MIGO_BADI_SCREEN_FIELDS.
loop at stock.
move-corresponding stock to wa_ES_MIGO_BADI_SCREEN_FIELDS.
append wa_es_migo_badi_screen_fields to ES_MIGO_BADI_SCREEN_FIELDS.
endloop.
‎2008 Sep 04 8:29 AM
Hi,
declare the work area as the line type of the table type in your export parameter and also use the workarea in your source code wherever necessary.
regards
padma
‎2008 Sep 04 8:29 AM