Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Alv erorr

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

Tags:
Former Member
Former Member replied

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 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question