‎2010 Jul 06 10:47 AM
Hi Experts,
I wanted to export an internal table from Methods and I am using below syntax and its not working.
METHODS get_data IMPORTING value(s_matnr) type mara-matnr
exporting it_tab TYPE STANDARD TABLE itab.
Please let me know what is the proper syntax.
Thanks
Basanagouda
‎2010 Jul 06 11:11 AM
Hi,
Define itab as a 'table type' of standard table.
Example: TYPES: t_sflight TYPE STANDARD TABLE OF sflight.
METHODS : get_data IMPORTING s_carrid type sel_carrid
EXPORTING e_tab type t_sflight.
ENDCLASS
‎2010 Jul 06 11:11 AM
Hi,
Define itab as a 'table type' of standard table.
Example: TYPES: t_sflight TYPE STANDARD TABLE OF sflight.
METHODS : get_data IMPORTING s_carrid type sel_carrid
EXPORTING e_tab type t_sflight.
ENDCLASS
‎2010 Jul 06 11:44 AM
‎2010 Jul 06 1:54 PM
Hi Basanagouda,
I particularly declare such types in a interface called lif_types (Local interface for types).
see ya,