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: 
Read only

alv container

Former Member
0 Likes
609

Hi all,

I have a probelm regardin alv container.

My prog ram have button having different functionalities. If I change a layout in one alv and make it as default then in another alv corresponding to another button the fields that are in field catalog are not showing. Some unnecessary fields are showing.

Is this a buffering problem. Please help.

5 REPLIES 5
Read only

RaymondGiuseppi
Active Contributor
0 Likes
575

In your case the only id of ALV is the report, which is not enough. So use the handle field (of disvariant structure) to distinguish between ALV.

When calling from a function key, field IS_VARIANT parameter accordingly before calling ALV

     ls_variant-report = sy-repid.
     ls_variant-handle = ok_code. " or sy-ucomm

So each functionnality will manage its own variants, field catalog, default layout, etc.

Regards,

Raymond

Read only

Former Member
0 Likes
575

Please pass report and log_group for IS_VARIANT and 'A' for I_SAVE parameters in the method set table for first display.

Please let me know if it helps.

Read only

0 Likes
575

Raymond & Archana,

Yes it did help me but it make the things userspecific .

Read only

Former Member
0 Likes
575

When using the older class methods, I create two field catalogs, two layouts, etc.... Each is unique and when changed, you close the old and do the set...first display specifiy the fieldcatalog, layout, internal table, etc., you're using for this display.

Read only

0 Likes
575

yes I had did these things.