cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding passing of the modified data back to internal table form alv

Former Member
0 Kudos

Hi,

My requirement is i hav a fld in my alv grid checkbox which iam checking when i output the list on the alv grid and I hav to execute an action on all the checked rows the poblem is even iam checking the checkbox it is not being passed back to internal table.I hav used methods to create and display alv grid.This is really urgent can anyone provide any inf on this .

Thanks and Regards,

Rajashree

Accepted Solutions (0)

Answers (4)

Answers (4)

mbiwer
Employee
Employee
0 Kudos

Hi Michael,

you can register for the event DATA_CHANGED of your ALV-Grid. This event gets thrown if the user presses for example <ENTER> and has changed some data in the grid.

With input-parameter er_data_changed of this method you can get access to the changed data; e.g. er_data_changed->mt_good_cells contains the syntactically correct fields that have been changed.

Hope that helps ...

regards,

Michael

Former Member
0 Kudos

Hallo Michael,

Thank You for Your prompt answer.

I have solved the problem by registering the DTA_CHANGED event. it works fine!

BR

Michael

0 Kudos

Hi,

There is only one exporting parameter which you need to take back. It is E_VALID.

I hope that solves your problem.

Regards,

Tathagata

Former Member
0 Kudos

Hello Tathagata,

I have a similar problem.

I need to react on a change of an input-field of the

grid-control.

When i call the method "->check_changed_data"

i allways get e_valid == 'X'.

The problem is, i have to react in any case, when the

user presses <ENTER> and if the user has changed

a field-entry, i have to read additional data

and store it into the internal datarow of

the grid-table.

I have'nt found an event like "ON DATA CHANGED" ...

How can i solve this problem.

Thank You very much in advance

Michael

Former Member
0 Kudos

Hi,

Iam unable to understand what parameters shud i pass to CHECK_CHANGED_DATA FM??.Any inputs on this issue???

Regards,

Rajashree

0 Kudos

Hi,

In the PAI of your screen, in the module user command try calling the method CHECK_CHANGED_DATA of CL_GUI_ALV_GRID.

This will get the changed data to your internal table and you can then execute the subsequent checks.

Regards,

Tathagata