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

Flexible list using ALV classes

former_member189596
Active Participant
0 Likes
629

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

5 REPLIES 5
Read only

Former Member
0 Likes
594

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

Read only

Former Member
0 Likes
594

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

Read only

Former Member
0 Likes
594

Hi You can get info at below link

Regards

Pavan

Read only

Former Member
0 Likes
594

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.

Read only

uwe_schieferstein
Active Contributor
0 Likes
594

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