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: 

SET_TABLE_FOR_FIRST_DISPLAY change in structure does not reflect in the ALV output

0 Kudos

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

1 ACCEPTED SOLUTION

rajkumarnarasimman
Active Contributor

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

4 REPLIES 4

rajkumarnarasimman
Active Contributor

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

Sandra_Rossi
Active Contributor

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

raymond_giuseppi
Active Contributor

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.

0 Kudos

Hi Guys.. Thanks for your reply.

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

Cheers

Sam