cancel
Showing results for 
Search instead for 
Did you mean: 

Change custome fields not trigger CHANGE or SAVE BADI

Former Member
0 Kudos

Hi experts,

Here i add new fields on standard SC component,When i press EDIT and just change the new add fields value and SAVE ,It didn't trigger CHANGE BADI and the data not saved correctly.  I've tried to use

lo_el_recipient_data->set_changed_by_client( abap_false ).

or set it abap_true and it didn't work.

Can anyone please help to advise?

Thanks

Eric Li

Accepted Solutions (1)

Accepted Solutions (1)

ramakrishnappa
Active Contributor
0 Kudos

Hi Eric,

You need to find out if any condition is put on to trigger CHANGE badi i.e. If any data is changed by client / some other conditions.

As soon as you change the values inside the custom fields, the system automatically sets the changed_by_client flag to true. you better not to reset with your code.

I suggest you to debug, on SAVE action and find out what is stopping to reach CHANGE Badi. In case there is a condition to proceed further.

Use the POST EXIT / OVERWRITE exits of the method & you can get the changed by client flag using lo_el_recipient_data->get_changed_by_client( ) and use to clear the condition.

Hope this helps you.

Regards,

Rama

Answers (0)