cancel
Showing results for 
Search instead for 
Did you mean: 

update partner data in exiting SC

former_member204255
Participant
0 Kudos

Dear All,

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?

Best Regards

Airwave

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

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.

Thanks,

Ganapathi

former_member204255
Participant
0 Kudos

Hi,

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.

Br,

Airwave

RicardoRomero_1
Active Contributor
0 Kudos

Hi Airwave,

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.

Regards,

Ricardo.

former_member204255
Participant
0 Kudos

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.


Regards

Airwave

RicardoRomero_1
Active Contributor
0 Kudos

Hi, Airwave,


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.

Regards,
Ricardo.