Extending BP Role when BP is flowing in from ECC
I need to extend the role of BP which are flowing from ECC to CRM. These BPs are in account group "Z1" in ECC and i need to extend the role to have Sold to Party and "Z2" in CRM.
I know there is the BAPI_BUPA_ROLE_ADD but i dont know how to use it.
This BAPI must be called when the data is entering CRM but what is the function module which is called in this case and where i can add roles.