cancel
Showing results for 
Search instead for 
Did you mean: 

Execute custom logic in BBP_DOC_CHANGE_BADI only if company code is changed

Former Member
0 Kudos

Hi,

How can I keep track of the old company code values when company code is changed for an item in shopping cart?

As I have a scenario where in I need to execute my custom logic, only if company code is changed.

DOC_CHANGE BADI is triggered for any change in the SC.

Also there can be multiple items in the SC.

Thanks in Advance,

Regards

Madan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Whatever values are entered for the field "company code"in the screen,you can read it from the importing parameters Item table i.e. IT_ITEM-BE_CO_CODE.

Also you can use the following FM's in the BADI:

BBP_PROCDOC_GETDETAILu2014>gives the value of the details entered in SC which are already there in Database

BBP_PD_SC_GETDETAIL-->gives runtime values

BR,

Disha.

Do reward points for useful answers.

Former Member
0 Kudos

Thanks Disha.

Regards

Madan

Answers (0)