Symptom
When adding a new relationship of any category e.g. "Payer" or "Has the Payer" / "Is the Payer of", the system throws the below error message:
- Sales Area not allowed for relationship category Payer.
This error can happen for any relationship category.
Environment
- SAP Cloud for Customer
- SAP Cloud Applications Studio
Reproducing the Issue
- Navigate to Customers Work Center.
- Open Accounts View.
- Search and open the account.
- Click on the Edit button.
- In the Overview tab, go to the Relationships area.
- Click on the Add button.
- Attempt to add a Business Partner with Relationship Type as "Has the Payer".
- Click on Save.
- Observe the error message: "Sales Area not allowed for relationship category Payer".
Cause
In Business Configuration > Overview, within the activity "General Business Partners" > Maintain Relationships, the Payer party with has the Sales Area Dependency checkbox unchecked.
Also, there might be a PDI script logic written in ABSL that fills out the Sales Data details of the new relationship which does not allow a sales area.
Resolution
Given the situation that the relationship does now allow to have a Sales Area Dependency and there is a PDI script which attempts to assign the sales area for the relationship, there are two options:
- Check the Sales Area Dependency checkbox of the affected relationship in the fine-tuning activity "General Business Partners" > Maintain Relationships.
- To add a validation on the PDI script logic to verify if a sales area is allowed for the relationship.
Keywords
PDI, SDK, Sales Area not allowed for relationship category, sales area dependency, relationship category, maintain relationships , KBA , LOD-CRM-ACC , Account , AP-RC-BDS-SCR , ByDesign Studio Scripting (ABSL) , Problem
SAP Knowledge Base Article - Public