Preassigning BP role during download from account group

[]

Symptom

As of CRM Release 5.0, a new role concept for business partners is available, which is described in more detail in Note 873634. One change in this release is that the sold-to party is no longer exclusively assigned the role of customer (and as a consequence all subordinate roles such as ship-to party, payer and bill-to party). In CRM Release 5.0, you can now assign each of these roles separately.
This note shows you how to implement a user exit that you can then use to determine and assign a role that is different from the CRM000 sold-to party role, when you perform an initial load or when you create or change the role assignment of a customer master from the account group in ERP.
Other terms

BP_EXCHANGE_R3_TO, CRM, PIDE, business partner roles

Solution

Create a function module in the ERP system as an implementation for the DE_EIOUT user exit. To do this, proceed as follows:
Copy the SAMPLE_FCTMODULE_DE_EIOUT function module to the new Z_PI_BP_ROLE_MAP_DE_EIOUT function module in a customer-specific function group.The top include of this function group must contain the following statement
TYPE-POOLS BUSEI.Implement the correction instructions. If necessary, change the implementation or add more account groups to the implementation.Activate the user exit in Customizing.To do this, make a new entry in the TBE24 table using transaction SM30, for example: Product = “ROLES”, Text = “Account group/Role Mapping”, Active indicator = selected.In addition, enter the user exit in the TBE34 table: Event = “DE_EIOUT”, Product = “ROLES”, Function Module = “Z_PI_BP_ROLE_MAP_DE_EIOUT”.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Leave a Comment