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: 

Changing ALV output

Former Member
0 Kudos

Hey Guys,

I know How to change the o/p in ALV using Edit option in the fieldcatalig ..after changing it i want to save that ..how can we do this?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

When you use the EDIT option, and actually EDIT the field and hit ENTER, the changes you have done are updated to the internal table that you have used for display.

You will have to take the changes from there and update the database.

If the internal table is not getting updated, call the method CHECK_CHANGED_DATA of the grid and the internal table will be updated.

Regards,

Ravi

Note - Please mark all the helpful answers

4 REPLIES 4

Former Member
0 Kudos

When you use the EDIT option, and actually EDIT the field and hit ENTER, the changes you have done are updated to the internal table that you have used for display.

You will have to take the changes from there and update the database.

If the internal table is not getting updated, call the method CHECK_CHANGED_DATA of the grid and the internal table will be updated.

Regards,

Ravi

Note - Please mark all the helpful answers

0 Kudos

Check the Program BCALV_GRID_EDIT in se38.

then you need to write the code.

under sy-ucomm.

when 'SAVE'.

write your logic..

0 Kudos

Hey..thanks.

But if i change and hit enter is changing..but after changing i want to press the SAVE button in the standard tool bar so that it has to save in DB as well as if if exicute again the new o/p it should be reflected..

Can any body pls..provide me teh sample code....

Former Member
0 Kudos

Go to transaction SE80 and select package SLIS.In it there are lot of sample programs with name BCALV_EDIT_01 etc.Check out those programs.

Thanks,

Sutapa.