SAP Cloud For Customer and SAP S/4HANA Business Partner Integration – Creating BPs using a specific group number range
In case of SAP ERP-C4C integration, the ERP Account number range (External ID) is generated by C4C automatically since there is no confirmation IDOC from ERP -> C4C. This number range can be controlled by customers in C4C via fine tuning activity.
In case of SAP S/4HANA, the Business Partner (and Customer Account) is generated by the S/4 default number range. There is no standard way to control in which number range the Business Partners created by replication from C4C should be used.
In this blog, I will offer a custom solution using the CPI post exit extensibility so that you don’t need to modify the standard iflow. For more information about CPI extensibility, you can check the blog: Extending standard integration flow to support Customer extensions
In case of standard SAP Cloud for Customer and SAP S/4HANA BP Integration, when creating an account in C4C and replicating it to S/4, the field <NumberRangeIntervalBusinessPartnerGroupCode> is not populated in the BP payload (BusinessPartnerSUITEBulkReplicateRequest). This field is also not populated in the SAP Standard delivered iflow mapping.
So whenever the C4C account data is received by S4 BP interface BusinessPartnerRelationshipSUITEBulkReplicateRequest_In, the S4 BP number range is determined automatically using the BP internal standard default grouping (standard setup is 0001).
CPI Iflow post-exit Implementation
- Download the CPI post exit sample iflow which is attached to the SAP KBA 3089495 and upload it in your CPI package. This sample post exit iflow will populate the field <NumberRangeIntervalBusinessPartnerGroupCode> with a ZC4C constant.
- Active the CPI post-exit by activating the CPI Extension flag (isExtensionEnable = true”) in the standard iflow “Replicate Business Partner to SAP Business Suite”.
S/4HANA BP Grouping Customizing
Define a BP Grouping called ZC4C and assign the desired number range via transaction SPRO. button ‘SAP Reference IMG’ -> Cross-Application Components -> SAP Business Partner -> Basic Settings -> Number Ranges and Groupings -> Define Groupings and Assign Number
Now you might be able to understand how is the logic used to determine the number ranges in SAP S/4HANA for Business Partners replicated from SAP Cloud for Customer.
With the solution given using the post-exit iflow, you can now create the BPs in any desired number range without needing to modify the SAP Standard delivered CPI Iflow.
For further queries regarding this topic, please refer to the SAP Cloud for Customer Integration with SAP S/4HANA community page.
Please feel free to add your feedback and thoughts in the comment section.