Skip to Content

SET_TABLE_FOR_FIRST_DISPLAY change in structure does not reflect in the ALV output

Hi Guys.. I am using SET_TABLE_FOR_FIRST_DISPLAY for ALV report.

I made changes in the Custom Structure used as a layout. But the changed columns are not displayed in the output.

Here is the code.

CALL METHOD grid1->set_table_for_first_display
EXPORTING
i_structure_name = 'ZPTP_PO_OPEN' "'SFLIGHT'
is_variant = gs_variant
is_layout= gs_layout
i_save = 'A'
CHANGING
it_outtab= gt_outtab[].
ENDIF.
CALL METHOD cl_gui_control=>set_focus EXPORTING control = grid1.

* Control Framework flushes at the end of PBO automatically!

I add more fields to ZPTP_PO_OPEN, but its not reflecting in the output.

Anyone come across this issue?

Thanks

Sam

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    Jan 16 at 07:32 PM

    Hi Sam Maverik,

    Check whether the structure is activated. Also, check whether any default layout is used in ALV output. Click the 'Change Layout' Button in ALV output and check whether the column is hidden due to the layout. if so change/remove the layout and display the new column.

    Regards

    Rajkumar Narasimman

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 16 at 09:05 PM

    There's a program to empty the ALV buffer : BALVBUFDEL.

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 17 at 06:46 AM

    You can clear ALV buffering thru report BALVBUFDEL (for all application server, every ALV) or setting the I_BYPASSING_BUFFER parameter (in call of SET_TABLE_FOR_FIRST_DISPLAY or during generation of field catalog with tools like LVC_FIELDCATALOG_MERGE)

    Of course if you or someone else defined a default variant, you have to adapt it to display new fields.

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 29 at 05:38 PM

    Hi Guys.. Thanks for your reply.

    The fields were hidden, I made changes using Change Layout.

    Cheers

    Sam

    Add comment
    10|10000 characters needed characters exceeded