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

Display in alv grid

Former Member
0 Kudos

Hi all abap gurus,

I am using REUSE_ALV_GRID_DISPLAY, now wat is want is that i have 15 fields in my fieldcatalog but when alv grid is displayed first time i want to display only 10 fields, after the display user can display the remaning fields by changing the layout settings at display level itself,

now i can abe to change the the number of fields displayed at screen level that is the standard func. ALV provides but first time ALV grid is displayed all the fields are displayed which i want to restrict to fewer fields.

thanks

Devender.

5 REPLIES 5

former_member188685
Active Contributor
0 Kudos

>ALV grid is displayed all the fields are displayed which i want >to restrict to fewer fields.

If you Don't want all the fields then you can use NO_OUT option in the fieldcatalog for the column which you Don't want them in first display.

fieldcat-no_out = 'X'. "mention for the columns which you want 
                              "to hide.

former_member585060
Active Contributor
0 Kudos

Try like this

add a Push button at the application toolbar, assign a function code to it, and give the code for that function in user-command.

Former Member
0 Kudos

hi

use NO_OUT in field catalog which fields are not need to display at first time display. User can select in layout setting for display

Former Member
0 Kudos

hai ,

use variant option such that to display 10 fields in output .

resue_variant_get.

shan.

Former Member
0 Kudos

I was missing that i got if afterwards, but anyways thanks all of u for helping