Application Development and Automation 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: 

Unhide a column in Alv table

natalymoros
Explorer
0 Kudos
571

Hi Experts,

I have two SAP systems with the same program.

The column Nome 2 is displayed in the ALV grid of the system1 but in the ALV grid of the system2 is hidden and when select the details you could see the Nome 2 value in both sistems.

the program use Field catalog to pass a list of fields to display in ALV. and the CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'.

System1:

System2:

I would be very pleased if someone have any suggestions that could solve it.

Regards,

Nataly

2 REPLIES 2

the_freelancer
Explorer
339

Hi, Nataly!

You can try to create a default variant that includes your missing field after display the ALV or modify field attributes after creating the field catalog into the code before calling to tle ALV FM.

I suppose that you are using the REUSE_ALV_FIELDCATALOG_MERGE FM for the fieldcatalog because you are using REUSE_ALV_GRID_DISPLAY FM to display the data.

Personally, I would use the set_table_for_first_display method of the cl_gui_alv_grid class (I can show you an example if you need it).

You would have a much more dynamic ALV.

Please tell me if this helps or if you need more detailed answer,

regards!

RaymondGiuseppi
Active Contributor
339

Did you already check/look for

  • default variant (can be user-defined)
  • current variant values (use the consistency check, look for NO_OUT Field)
  • Any reason to use outdated REUSE FM and not uptodate class?