10-16-2007 1:50 PM
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
10-16-2007 2:50 PM
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
10-17-2007 4:06 AM
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