‎2011 Aug 22 7:44 AM
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.
‎2011 Aug 22 10:04 AM
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-ucommSo each functionnality will manage its own variants, field catalog, default layout, etc.
Regards,
Raymond
‎2011 Aug 22 10:18 AM
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.
‎2011 Aug 23 7:07 AM
Raymond & Archana,
Yes it did help me but it make the things userspecific .
‎2011 Aug 22 2:16 PM
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.
‎2011 Aug 23 7:05 AM