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

ALV USER_COMMAND

Former Member
0 Likes
458

Hello,

I use REUSE_ALV_GRID_DISPLAY. I have changes in three fields to be done. How can I read those changes? Is there any function module to read the whole line that is changed?

Selfield parameter reads only one field. Thats not enough

3 REPLIES 3
Read only

Former Member
0 Likes
435

hi

read all the parameters into an internal table where ever it effects

modify table and reproduce into the alv grid

if any body changes in grid that should first effects to the internal table

and then ztable

Read only

0 Likes
435

Hi,

Problem is you need a user command like SAVE to get the changes. If you have a user command the selfield just has the value of the last changed field, see below:

if not selfield-tabindex is initial.

read table gt_protocol assigning <l_protocol>

index selfield-tabindex.

assign selfield-fieldname to <field>.

assign selfield-value to <value>.

assign component <field>

of structure <l_protocol> to <prot_field>.

<prot_field> = <value>.

perform update_table using <l_protocol>

changing rc message.

endif.

The question is:

<b>How can I get all changes into my user_command form ?</b>

Read only

Former Member
0 Likes
435

I did it with OO-Grid.

That works fine