cancel
Showing results for 
Search instead for 
Did you mean: 

SRM 7 and BBP_DOC_CHANGE_BADI: how to identify if a field has been changed?

matteo_montalto
Contributor
0 Kudos

Hi all gurus @ SDN forums,

I'm working on a requirement in which a specific method/function should be triggered/executed (in the change badi) when specific fields (some standard and some custom) values are changed, i.e, the value of purchase organization (which is in our scenario a custom field label in the header structure).

When a value is changed, then the CHANGE BADI is triggered but obviously, data passed to the BADI are the updated one. I'm looking for a way to determine which fields have been changed once in the change badi.

I thought I could play with IMPORT/EXPORT to memory ID and compare at any change badi run the value of the previous iteration w.r.t. the actual one. But this seems quite an unclean solution, so I'm asking if there's a "clearer" solution (consider also I'm a newbie with SRM7 and therefore not that skilled on OO ABAP...).

Thanks in advance,

M.

Accepted Solutions (0)

Answers (1)

Answers (1)

matteo_montalto
Contributor
0 Kudos

Solved. Using a getdetail() method I'm able to see in change badi the data before the execution.