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

Regarding ALV Using container OO ABAP

Former Member
0 Likes
624

HI ALL,

I have created an editable alv report using docking conatainer.

i am facing list of problem while need to maintain these activities.

1. I need to save the changes which are made change in the grid layout.

2. As the alv itself gives a option adding a new row and deleting a new row, while doing that i need to capture the previous record value. And assign these values to the first 2 field in the added row.

In order to do how can we deffer the original functionality.

Can any one give some suggestions in order to work.

Thanks and regards,

Naresh

1 ACCEPTED SOLUTION
Read only

former_member673464
Active Contributor
0 Likes
593

hi,

First you have to take your data into another internal table and then send data for display of ALV.At the time of save you can compare the old internal table with new edited data and based on which you can save the data for it.

SAP will give provision for triggering of our own subroutine before/after the user command method is called. You can call those subroutines for those adding/deleting lines.

Regards,

Veeresh

hi,

please see this demo program in se38

bcalv_edit_04

tahnks

4 REPLIES 4
Read only

former_member673464
Active Contributor
0 Likes
594

hi,

First you have to take your data into another internal table and then send data for display of ALV.At the time of save you can compare the old internal table with new edited data and based on which you can save the data for it.

SAP will give provision for triggering of our own subroutine before/after the user command method is called. You can call those subroutines for those adding/deleting lines.

Regards,

Veeresh

Read only

Former Member
0 Likes
593

Go through OOPs ALV tutorial . There are methods to handle various events .

you just need to handle the events.

Read only

Former Member
0 Likes
593

Hi,

Go to SE80, and open the package SLIS. Inside this package got a lot of sample codes for ALV.

Try look at the program BCALV_EDIT_0*.

hope this helps.

Br,

Edison

Read only

Former Member
0 Likes
593

hi,

please see this demo program in se38

bcalv_edit_04

tahnks