cancel
Showing results for 
Search instead for 
Did you mean: 

Saving Data in ALV

Former Member
0 Kudos
172

Hi,

I have a requirement in which I have to display data in ALV . After the ALV has been displayed , the user ahould be able to change data in ALV on screen and after he presses Enter , those changes should be reflected in internal table of program.

Please tell how to do that.

Regards,

Divyanshu

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

See this program

BCALV_EDIT_04 This report illustrates how to add and remove lines to a table using the ALV Grid Control and <b>how to implement the saving of the new data</b>.

Thanks & Regards,

Judith.

andreas_mann3
Active Contributor
0 Kudos

Hi Divyanshu,

have a look to that link:

regards Andreas

manuel_bassani
Contributor
0 Kudos

Hi Divyanshu !

I have had the same problem. (I used CL_GUI_ALV_GRID)

Try to do this:

1. In fieldcatalog define the fields as input fields with the following statement:

fieldcatalog-edit = 'X'.

2. In PAI section, method :

call method alv->check_changed_data.

Update the internal table according to the data modifications in the frontend.

After doing that, when user presses ENTER the internal table is updated.

I hope that helps.

Best regards,

Manuel Bassani