cancel
Showing results for 
Search instead for 
Did you mean: 

change bpRole field in PARTNER UPDATE badi

Former Member
0 Kudos

I implemented badi PARTNER_UPDATE to change assigned role when new or changed business partner comes CRM..

I used FM 'BUPA_ROLES_CALLBACK' , i can get old and new values . when i only change partnerroles-ROLE with new value , of course no change happens..

CALL FUNCTION 'BUPA_ROLES_CALLBACK'
    TABLES
      ET_BUT100_OLD   = BUT100_OLD
      ET_BUT100_NEW   = BUT100_NEW
      ET_PARTNERROLES = PARTNERROLES.

I think there must be a function to set memory , namely opposite of this Callback function.

How can i change role field in PARTNER_UPDATE badi?

Thanks..

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Tuncer

I think you want to replicate business partners from ECC system to CRM system. And you would like to change the creation of business partners in CRM from being created in some particular role.

You can try implementing enhancement spot BUPA_INBOUND.

I know this was implemented by one of the clients to change the creation of business partners (Role Sold-to) in CRM from being created as Organization to create them as Persons (Role Employee).

Rupesh Patil

Former Member
0 Kudos

Hi Tuncer,

Unfortunately, you cannot change the data in memory anywhere in the course of saving the data. Moreover, PARTNER_UPDATE is called after the save of the BP so any change you make here will anyway not reflect, since the data is already saved.

If you are trying to suppress the roles being sent out of the system, then you need to change the contents of the ET_BUT100_NEW table that is populated in the outbound module BUPA_OUTBOUND_BPS_FIL_CENTRAL.

About your exact question - a module to fill memory -

If you are writing your own Z code, then you can use FM BUP_MEMORY_BUT100_FILL to modify the data in the memory for roles..but this depends on what step in the processing you call this FM.

Also, i have not really understood your requirement. Do you want to change the role that is coming into CRM from another system ? Then you can make a modification in the BP inbound modules...within BUPA_CONV_EI2BAPI.

I hope this helps you.

Cheers,

Rishu.