BDOC error: No customer is assigned to business partner Message no. XR004
I have come across this error and have searched the internet as well.
Eventually after a lot of efforts I found a solution which worked for me.
This blogs intends to gives a complete picture on the issue replication, possible cause and resolution for the same. The detailed description is for the audience who are new and have very limited knowledge in SAP CRM.
I have a BP ( XXXX7001 ) with a role say ‘Prospective customer’ in CRM but the same is not available in ECC and thus we want to replicate this BP to ECC
To replicate to ECC:
Simply you may use tcode: CRMM_BUPA_MAP and enter the bp number and click on ‘send business partner data’ as shown below
After you click you will see a screen:
Here the details of the RFC destination and the the data that needs to be transferred (i.e BUPA_MAIN and/or BUPA_REL) is mentioned
Press enter and proceed
Thus the ‘sending directly’ message indicates flow context description of type mBDoc Direct Send
And the ID highlighted above are BDOC message ID
You may directly click on the above message to route to the transaction SMW01 (shows details of BDOC) as shown below or may later navigate to the same via transaction SMW01 and searching for BDOC using the above 2 mentioned filters
The BDOC screen may look as follows:
The BDOC may directly go into error after processing or may show the above status
Looking at the above status it seems that the BP has been successfully replicated
So let us check on the relevant ECC system to which the BP information was transferred.
This can be done using transaction XD03 to view BP
Oh but to our surprise the BP is not replicated yet
To check for the reason let us again go back to CRM system to check the BDOC (via SMW01)
If you check the error in BUPA_MAIN bdoc it only shows you information as follows
But BUPA_REL show you the error stating:
No customer is assigned to business partner XXXXX
The one basic reason for this is that the BP is not assigned as ‘Customer’ in classification tab for BP
This can be resolved by maintaining ‘Customer’ in classification tab for the BP follow the below steps to do that:
TCODE : BP
Navigate to the respective BP
Select the role in this case ‘Prospective customer’ from the role dropdown.
Go to ‘classification’ tab and tick the check the ‘Customer’ check box and save the BP.
Now go to ECC system and again check
voila! The BP is now available in ECC system as well.
Hope this helps!