cancel
Showing results for 
Search instead for 
Did you mean: 

Issue when catching the changes made in ALV

Former Member
0 Kudos

I have the ff requirements.

  • I have main tabs - X and Y.
  • Under tab Y, I have 4 tabs - A, B, C, D.
  • I have problem with tab B.
    • This tab has an ALV table with 1 editable column.
    • This column is of type char80.
    • When I change the value on that column, I expect that when I click somewhere on my screen (say I navigate to other tabs), the data will be stored in the context. Now, when I try to catch my changes in WDDOBEFOREACTION, the old value is reflected. The new value that I entered wasn't caught.
    • I also notice that when I 'enter' after making my changes in the column, that's the time that my changes got caught in the context.
    • I tried to observed the data when it passed through WDDOBEFOREACTION, WDDOAFTERACTION, WDDOMODIFYVIEW after clicking 'enter', but at those moments the changes that I made were still not caught yet in the context.
    • Are there other methods that could have possibly caught the changes?

Please advise how and where to catch the changes I made in the ALV.

Thank you so much.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

try context change log to record and access all context changes.

Context Change Log (Recording User Entries) - UI Technologies in ABAP - SAP Library

Former Member
0 Kudos

Hi Kranthi,

It doesn't work.

I tried to catch the changes of the ALV table.

Instead, it reflects the changes of the tab.

DATA: L_NODE TYPE REF TO IF_WD_CONTEXT_NODE.
L_NODE = WD_CONTEXT->GET_CHILD_NODE( 'MY_ALV' ).
L_NODE->BIND_TABLE( L_CHANGES ).


I was expecting, that it will show the changes of 'MY_ALV', but it doesn't.

The old_value and new_value reflects that tabs that I clicked, not that of the ALV.

former_member222068
Active Participant
0 Kudos

Hi Navi,

Create an attribute in the component controller and set the data ( which you are displaying in the ALV table ) on the load of the page or when your displaying data in the table.

for eg: before navigation if you need to check, is there any changes, then you can check here. If required you can stop navigation

Thanks & Regards,

Sankar Gelivi

Former Member
0 Kudos

Hi Sankar,

The issue is, the changes doesn't get reflected right away.

If I change the table entries and click another tab, the changes won't isn't stored in the context.

It get's stored only if I click 'check' or hit enter.

The user need not do those extra actions in order to catch the changes.

Thanks.