we need to update partner data in exiting SC in dependence of some criterias.
Do you know a funtion module or a method for, especially which approach would you recommend in regard of
programm location, within BBP_DOC_CHECK_BADI?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It is BBP_DOC_CHANGE_BADI
However you would be clear what type of partner you want to add, so that you can input PARTNER_FCT along with Partner GUID or BP number.
yes you are right this can be carried out in this BADI.
But the big challange is, how can you change them all when you have e.g. 5 items in one step.
Could you elaborate a bit more what you want to do ?
You have the field P_GUID within the IT_PARTNER table to identify the Partners of each item.
I want to change entire partner data while creating a shopping card.
The main challange is how can I change data of the actual SC due to BBP_DOC_CHANGE_BADI with
Function module BBP_PD_SC_UPDATE . Till now it dumps all over the time.
You don't need to use the FM BBP_PD_SC_UPDATE to update the items within this badi, you can change the data directly changing the parameters of the method...
What you have to do is:
- Create an implementation of badi BBP_DOC_CHANGE_BADI, put the filter BUS2121.
- Go to method IF_EX_BBP_DOC_CHANGE_BADI~BBP_SC_CHANGE
- Map all the export parameters with the import parameters: e.g. ET_PARTNER = IT_PARTNER, ET_ACCOUNT = IT_ACCOUNT, etc...
- Then change the values you want in table ET_PARTNER. You don't need to use any FM or bapi for this purpose.
To check if you are in creating mode you can see parameter IV_MODE = C.