Skip to Content
0
Aug 29, 2011 at 06:42 AM

Problem with ALV using OOPs.

35 Views

Hi,

I want to display the ALV in full screen using container(OOPs) .

I am using

DATA: lw_container TYPE REF TO cl_gui_custom_container,
        lw_grid TYPE REF TO cl_gui_alv_grid,
        g_container TYPE scrfname VALUE 'CHANGE'.


  IF lw_container IS INITIAL.
    CREATE OBJECT lw_container
      EXPORTING
        container_name = g_container.

    CREATE OBJECT lw_grid
      EXPORTING
        i_parent = lw_container.

    PERFORM fieldcat_alv_build.

    CALL METHOD lw_grid->set_table_for_first_display
      EXPORTING
        i_structure_name = 'I_OUTPUT_ALV'
      CHANGING
        it_outtab        = I_OUTPUT_ALV[]
        it_fieldcatalog  = i_fieldcat[].

I Have searched through the SDN but could not get the solution for this problem.

Please let me know how to make th ALV in fullscreen.

Thanks & Regards

Subha

<Added code tags>

Edited by: Suhas Saha on Aug 29, 2011 1:04 PM