‎2008 Sep 02 10:15 AM
Hi all,
I am doing development of report using ALV classes.
I need to display total 20 fields in the basic list.
Here client asking , based on some condition i need to display 28 fields in the list.
Is there any way to restict or increase fields using classes in the layout.
Final internal tbale all 28 fields .
Thanks in advance,
regards,
Bhaskar
‎2008 Sep 02 10:23 AM
Hi
Do you want to happen this after output or with in the program logic.
If it is after output display -> Set the field catelog NO DISPLAY field to 'X' in designing the same. Based on the Lay out selection you can pull them into the Layout
If it is in the programming logic i am not sure?
Regards
Pavan
‎2008 Sep 02 10:26 AM
Hi,
If you wanna create dynamic structure based on the condition you have to go with field symbols. Probably you can achieve in that way
Regards
Pavan
‎2008 Sep 02 10:30 AM
‎2008 Sep 02 11:24 AM
using NO_OUT or TECH options of the Fieldcatalog you can Hide the Fields from display.
Check it once.
FIELDCAT-NO_OUT = 'X' . "<----This Hides the field
or
FIELDCAT-TECH = 'X'. "<-----_THis Completely Excludes from the layout.
‎2008 Sep 03 12:03 PM
Hello Bhaskar
My general approach to ALV programming is to display as much information as possible (within the requirements). If the users only need partial "views" of the list then they are free to use the standard functions of ALV to rearrange or hide superfluous columns.
Regards
Uwe