11-01-2007 10:36 AM
hi
i do alv and i have erorr like that :
<b>"L_TAB" is not type-compatible with formal parameter "IT_OUTTAB".</b>
what is wrong?
Regards
DATA : l_tab TYPE STANDARD TABLE OF tadir WITH HEADER LINE .
MODULE pbo OUTPUT.
SET PF-STATUS 'MAIN100'.
SET TITLEBAR 'MAIN100'.
IF g_custom_container IS INITIAL.
CREATE OBJECT g_custom_container
EXPORTING container_name = g_container.
CREATE OBJECT grid1
EXPORTING i_parent = g_custom_container.
CALL METHOD grid1->set_table_for_first_display
EXPORTING
i_structure_name = 'YHR_EMP_STR'
is_layout = gs_layout
is_variant = variant
i_save = 'A'
CHANGING
it_outtab = l_tab
it_fieldcatalog = fcat.
ENDIF.
the erorr is
11-01-2007 10:43 AM
HI,
use like this.otherwise l_tab it will take as work area.
CALL METHOD grid1->set_table_for_first_display
EXPORTING
i_structure_name = 'YHR_EMP_STR'
is_layout = gs_layout
is_variant = variant
i_save = 'A'
CHANGING
it_outtab = <b>l_tab[]</b>
it_fieldcatalog = fcat.
rgds,
bharat.
11-01-2007 10:38 AM
Please check whether the table types for both L_TAB and IT_OUTTAB are the same
11-01-2007 10:41 AM
hi vasu
i don't understand in it_outtab i don't put my internal table?
Regards
11-01-2007 10:41 AM
Hi,
U need to pass the internal table of the output table.
Do is the structure 'YHR_EMP_STR' same is l_tab?
check it.
Regards,
Niyaz
11-01-2007 10:43 AM
HI,
use like this.otherwise l_tab it will take as work area.
CALL METHOD grid1->set_table_for_first_display
EXPORTING
i_structure_name = 'YHR_EMP_STR'
is_layout = gs_layout
is_variant = variant
i_save = 'A'
CHANGING
it_outtab = <b>l_tab[]</b>
it_fieldcatalog = fcat.
rgds,
bharat.
11-01-2007 10:48 AM