Skip to Content
May 15, 2020 at 12:12 PM

Remap business partners in the case of intersection of debtors and creditors in SAP EWM


Hi All.

In the ERP system, there is an intersection by numbers of debtors and creditors belonging to different legal entities. It is necessary to Refine CIF for recoding business partners in the event of intersection of debtors and creditors for the EWM system.

Is it possible to implement this based on Map Differentiator in SPRO. Can you tell me exactly how to implement this.

And if this is not possible, how do you evaluate this implementation :

1.Create a BAdI smod_apocf038 implementation.
2. Copy the code from the if_ex_smod_apocf038~EXIT_/SAPAPO/SAPLCIF_BP_001 implementation example of the CL_EXM_IM_SMOD_APOCF038 class.
3. Instead of getting a new number in FM NUMBER_GET_NEXT (call to comment, page 127), use the following logic:
3.1. If the length of the ls_bpmap-partner_id field without leading zeros is less than 10 characters, then go to clause 3.2.
If 10 characters, the new partner code must be equal to the original one.
3.2. Making a selection of DIFFERENTIATOR from /SCMB/BPMAPDIFF, where ID_TYPE = ls_bpmap-type and LOGSYS = ls_bpmap-logsys. If the selection is successful, then:
lv_number = /SCMB/BPMAPDIFF-DIFFERENTIATOR+ [ls_bpmap-partner_id without leading zeros]