cancel
Showing results for 
Search instead for 
Did you mean: 

wdr_context_change_list

Former Member
0 Kudos

Hi Experts,

I have a situation where on the click of the Update button, the edited user values have to be saved in the infotype.I have used the below code in the Update method to read the edited user values of the row in lt_changes, but unable to fetch them.

DATA: lt_changes TYPE wdr_context_change_list.

DATA: obj_context TYPE REF TO if_wd_context.

  • Get context changes

obj_context = wd_context->get_context( ).

lt_changes = obj_context->get_context_change_log( ).

But i didn`t get any context changes.

A detailed reply would be appreciated.

Thanks in Advance,

Hyder.

Accepted Solutions (0)

Answers (1)

Answers (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Did you activate the change log before presenting the user with the screen? You need to call ENABLE_CONTEXT_CHANGE_LOG first.

Here is the online help article that details the usage of the context change log:

http://help.sap.com/saphelp_nw70/helpdata/EN/47/a8e5d273b12fe2e10000000a42189d/frameset.htm

Former Member
0 Kudos

Hi,

Could you give a detailed reply in continuation to above.

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

A detailed reply? What did you have in mind? I've linked to the help document that details the usage of the context change log. I listed the method name that you need to call to activate the context change log - ENABLE_CONTEXT_CHANGE_LOG. The online help link I provided has a reference to a demo application (DEMO_CONTEXT_CHANGES) so you can study running code. I'm not sure what other details you are looking for.