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: 

default value to column while displaying the grid in ALV objects

Former Member
0 Kudos

Hi all,

I have the scenario like

to display the default value to column while displaying the GRID.

As i am providing f4 help to it, i can change later .

But before displaying the grid, it should display default value .

like in grid if ii have materail , material type

material type shoul be F001 by default .

like how we do in PBO for module pool program

its urgent any please give an idea regarding this

2 REPLIES 2

Former Member
0 Kudos

Dear Madhavi,

I think there is no implict way for setting default values in ALV Grid. Before passing the output table to set_table_for_first_display, set all the required default values in the output table and then show the ALV Grid. If required user will change the default value.

Regards

Kesava

Former Member
0 Kudos

you can not display default value to column while displaying the GRID.

because Grid only display those values which are in final internal table stoarted

You can do one logic

take two internal tables one having default values and other having actual values

first Time print all default value from first table by creating its field catelog

Second time ask user to press any key or pushbutton

Then display the data from second internal table by creating its field catelog.

Rewards if useful..........

Minal