cancel
Showing results for 
Search instead for 
Did you mean: 

How to change few rows of values in ALV in ABAP webdynpro?

siongchao_ng
Contributor
0 Kudos

Hi all,

I am working on a abap webdynpro program which the existing ALV is displaying data from the RCF_S_CANDIDACY_LIST_PL structure.

Now if the user select 2 or more rows from the ALV and click on one of the column, it will trigger the popup with a dropdown to change that particular row values for all the selected rows.

How do I change the context elements or attributes for the selected rows? Will the values in the ALV updated by itself once the values in the context node are changed? Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

No It will not automatically update your context data.

first you have to read the context node and get the values then bind it with the Same node.

Regards,

Nishant

siongchao_ng
Contributor
0 Kudos

Hi Nishant,

So you mean after I got the value from the popup box dropdown, I need to

1. get my context element set from my node into an internal table,

2. update with new values for the selected rows in the internal table

3. invalidate the node.

4. re-bind the node with my internal table

The ALV will update with new values once the node has been re-binded with my internal table?

siongchao_ng
Contributor
0 Kudos

Hi Nishant,

So you mean after I got the value from the popup box dropdown, I need to

1. get my context element set from my node into an internal table,

2. update with new values for the selected rows in the internal table

3. invalidate the node.

4. re-bind the node with my internal table

The ALV will update with new values once the node has been re-binded with my internal table?

Former Member
0 Kudos

Yes. ..

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Siong,

Like Nishant says, after actual edit alv cell , in the action event method of any button You can read the node to which alv is bound into internal table. And using modify command you can update database table. And again bind the internal table with alv grid.

Thanks

Santosh