Application Development 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: 

Alv erorr

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

5 REPLIES 5

Former Member
0 Kudos

Please check whether the table types for both L_TAB and IT_OUTTAB are the same

0 Kudos

hi vasu

i don't understand in it_outtab i don't put my internal table?

Regards

former_member200338
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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.

0 Kudos

hi bharat

thankes its working

regards