cancel
Showing results for 
Search instead for 
Did you mean: 

Context change not captured

Former Member
0 Kudos

Hello All..

I am facing an issue in Web dynpro. Table UI data is getting updated on a button click (Automated), but context is not capturing a change and getting the message (Data has not been changed since it was last saved) on Save.

Just for your reference, on button click it's passing the data from another component controller node(structure).

I’ve already tried IF_WD_CONTEXT->ADD_CONTEXT_ATTRIBUTE_CHANGE without luck by enabling context logging changes via IF_WD_CONTEXT->ENABLE_CONTEXT_CHANGE_LOG.

If I make any data changes on UI manually, the above table data is sucessfully updating the respective database.

Please let me know, if you came across with similar situation. Any idea would be well aprriciated.

Thanks,
Sanket Sethi



   
 
 
 
 
 
 
 
 
 
 
 







   
 
 
 
 
 
 
 
 
 
 
 





Accepted Solutions (0)

Answers (1)

Answers (1)

vaibhav_singh12
Participant
0 Kudos

Context change is recorded only when changed by user manually on the screen.

Former Member
0 Kudos

Hi Vaibhav..

Actually as per SAP help we can update context change log by using method IF_WD_CONTEXT->ADD_CONTEXT_ATTRIBUTE_CHANGE, but we need to activate context change log recording by using method IF_WD_CONTEXT->ENABLE_CONTEXT_CHANGE_LOG in WDDOINIT, a prerequisite.

I am already doing the same but it's not working for me. I am not getting why context changes are not being captured here while SAP recommended it for these kind of requirements and this is my actual concern.

Thanks,
Sanket Sethi

vaibhav_singh12
Participant
0 Kudos

At what action are you adding & retreiving context change?