Skip to Content

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

ALV Trouble

Hey folks, I cant get anything into my ALV.

Its driving me crazy because I cannot find any mistake in my coding.

Help would be awesome! Thanks in advance!

If the container is initial it should get filled with the content in gt_titel (definitely filled),

otherwise it just gets refreshed.

-


top include :

data: go_container type REF To cl_gui_custom_container,
      go_alv_grid type REF TO cl_gui_alv_grid.

module itself



MODULE status_0100 OUTPUT.

  IF go_container IS INITIAL.
    CREATE OBJECT go_container
      EXPORTING
        container_name = 'CONTROL_AREA_1'.

    CREATE OBJECT go_alv_grid
      EXPORTING
        i_parent = go_container.

    CALL METHOD go_alv_grid->set_table_for_first_display
      EXPORTING
        i_structure_name = 'zlars'            ***created a DDIC structure containing all required attributes.***
*!!!!!!
      CHANGING
        it_outtab        = gt_titel.

  ELSE.
    CALL METHOD
      go_alv_grid->refresh_table_display.
  ENDIF.

Edited by: Paul Oesterwitz on May 24, 2011 5:34 PM

Edited by: Paul Oesterwitz on May 24, 2011 5:36 PM

Former Member
replied

You have to build up the field catalog for the alv Grid ( say which fields have to be displayd) and send it in the method set_table_for_first_display...

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question