Enterprise Resource Planning Blogs by SAP
Get insights and updates about cloud ERP and RISE with SAP, SAP S/4HANA and SAP S/4HANA Cloud, and more enterprise management capabilities with SAP blog posts.
cancel
Showing results for 
Search instead for 
Did you mean: 
SherryWang01
Product and Topic Expert
Product and Topic Expert
0 Kudos

During migrate your system from ECC to HANA, we need to synchronize all customer and vendor to BP. One of the situation is if the customer and vendor are same entity, we need to link them to same Business Partner.

Error R1367

In the past, we always receive below error:

Consistency error: 
Message no. R1367

This is because our system is checking below:

        a. The Customer and Vendor must be linked through the Customer number field in the Vendor table and the Vendor number field in the customer table.
        b. If the Customer and Vendor have the same Bank Account information (same Country, Bank Key and Bank Account), then the remaining fields for this entry must also match.
        c. The customer and vendor must contain exactly the same Postal Address information.The following fields are also checked :

ADDR_VERSPO_W_O_NOLANGUPCODE1_EXT
FROM_DATEPO_BOX_CITLANGU_ISOPCODE2_EXT
TO_DATEPBOXCIT_NOREGIONPCODE3_EXT
TITLEPO_BOX_REGSORT1PO_BOX
NAMEPOBOX_CTRYSORT2FLOOR
NAME_2PO_CTRYISOEXTENS_1ROOM_NO
NAME_3DELIV_DISEXTENS_2COUNTRY
NAME_4TRANSPZONETIME_ZONECOUNTRYISO
CONV_NAMESTREETTAXJURCODEDELI_SERV_TYPE
C_O_NAMESTREET_NOADDRESS_IDDELI_SERV_NUMBER
CITYSTR_ABBRLANGU_CRCOUNTY_CODE
DISTRICTHOUSE_NOLANGUCRISOCOUNTY
CITY_NOHOUSE_NO2COMM_TYPETOWNSHIP_CODE
DISTRCT_NOHOUSE_NO3ADDR_GROUPTOWNSHIP
CHCKSTATUSSTR_SUPPL1HOME_CITY 
REGIOGROUPSTR_SUPPL2HOMECITYNO 
POSTL_COD1STR_SUPPL3DONT_USE_S 
POSTL_COD2LOCATIONDONT_USE_P 
POSTL_COD3BUILDINGPO_BOX_LOBBY 

If any of above does not meet the requirement, error will occurs.

Improvement of error R1367

Then we have below note which improve the error message.

3088419 - DDIC for Legal Entity BAdI Message (367) Enhancements   

3067086 - Legal Entity BAdI Message (367) Enhancements   

SherryWang01_0-1709254722056.png

The error message will show in below way:

SherryWang01_2-1709256215526.png

CVI_LEDH

We also develop a functionality so that we can select the leading object instead of manually change every difference field between customer and vendor.

To realize this functionality, please implement below note :

 3072319 - Legal Entity - Data Harmonization (CVI_LE_DATA_HARMONIZATION) Report

 3088771 - DDIC Changes for Legal Entity - Data Harmonization (CVI_LE_DATA_HARMONIZATION) Report

 3082146 - Legal Entity - Data Harmonization (CVI_LE_DATA_HARMONIZATION) Report integration in CVI_CO...

 3081338 - Legal Entity - Data Harmonization (CVI_LE_DATA_HARMONIZATION) Report integration into MDS...

 Then let us look into CVI_LEDH

  • The difference between customer and vendor will get checked in t-code CVI_LEDH, it including address check, tax check, and bank check.

SherryWang01_1-1709255343889.png

  • If both of the customer and vendor does not synchronize to BP yet, they will get shown in the result of CVI_LEDH.
  • We can select the leading object, which means during synchronize from customer and vendor to BP, the BP will use the data from customer or from vendor. For example, for the sample customer MYCUST71 and vendor MYVEND71, I select customer as leading object for address data, and vendor as leading object for bank data.
  • After selecting, please press save button.

SherryWang01_0-1709255216313.png

Let us see what will happen during synchronization:

Sample customer MYCUST71, does not maintain bank data.

Sample vendor MYVEND71, maintain one bank data.

And the synchronization options set up in below way.

SherryWang01_10-1709256768762.png

  • After vendor synchronize to BP, currently the customer does not synchronize to BP. Re-run the t-code, the customer MYCUST71 and vendor MYVEND71 (LIEF) will no longer there.

    SherryWang01_3-1709256418220.png
  • If checking into table CVI_LEDH, we can get below record:
    SherryWang01_5-1709256459821.png
  • Bp has the bank data which get synchronized from vendor

    SherryWang01_6-1709256550749.png
  • Run MDS_LOAD_Cockpit to synchronize customer to BP. The BP then has both customer role and vendor role. And bank data keep no changes.
     

     

    SherryWang01_8-1709256649202.png
  • Customer still does not have bank data

    SherryWang01_9-1709256682204.png
  • At this time, when looking into table CVI_LEDH, the status keeps 03.

    SherryWang01_11-1709256831722.png

     

  • Then I re-run t-code CVI_LEDH, the status change to 05

    SherryWang01_12-1709256860105.png

     

  • Let us see if we change any data at customer side. 

    BP name get changed, but the bank data keeps

    SherryWang01_15-1709256967259.png

     

    SherryWang01_14-1709256917806.png

     

  • If we try to add a new bank data to customer. After it synchronize to BP, it behaves below

    SherryWang01_16-1709256997623.png

     

    SherryWang01_17-1709257421169.png

 Conclusion

You can see that after using functionality CVI_LEDH, if there are difference between customer and vendor, we can select one of it as leading object, after both of them get synchronized to BP, it will not change the data which didn't get selected as leading object. In this case, vendor has same bank information as BP, but customer still keep no bank data.

Please also follow below steps before migrate to HANA, to make sure customer, vendor and BP data are same.

MDS_LOAD_COCKPIT: Business Partner -> Customer
a. Select only Business Partners where customer and vendor are merged into.
b. This step is to synchronize the address, tax data, and bank details of the Business
Partner to the Customer.
c. This step is also required to link the previous vendor Contact Person to customer

MDS_LOAD_COCKPIT: Business Partner -> Vendor
a. Select only Business Partners where customer and vendor are merged into.
b. This step is to synchronize the address, tax data, and bank details of the Business
Partner to the Vendor.
c. This step is also required to link the previous customer Contact Person to vendor

Best regards

sherry