2009 Aug 03 4:37 PM
hi all,
I am trying to upload customer hierarchy (VDH1N transaction). According to the SAP note 548716, no batch recording are available.
I used a BAPI called BAPI_CUSTOMER_HIERARCHIE_INS, but I get the following errors for all records in the file and I see no customer hierarchies created.
The lower-level customer has not been created
The higher-level customer has not been created
I used 'BAPI_TRANSACTION_COMMIT' (also tried WAIT UP TO n Seconds), nothing worked .... I also used SD_CUST_HIERARCHY_INSERT, did not work either.
The program name of the transaction is RV_CUSTOMER_HIERARCHY. They have used Direct Update inside this program.
I am not sure, what needs to be done!
2009 Aug 03 5:15 PM
Hello,
the messages indicate that the customer master records are missing.
The BAPI_CUSTOMER_HIERARCHIE_INS only creates customer-hierarchy ( that means the link between different customer master records), but not the customer master records !
You could check, if the customer master records are existing ( with the sales data you specify in salesorg etc.).
Try to create the hierachy manually with the same data..
Regards Wolfgang
2009 Aug 04 8:56 AM
Thanks for the reply. But Customer master is available, this is the error message related to only hierarchy.
2009 Aug 04 9:55 AM
Hello,
you could just set a breakpoint into source LV02HF03, into form-routine 'check_assignment_kna1_knvv_2' -
there are the error messages E001 and E002.
Just look at this breakpoint what's in the select -and what is in the Table KNVV.
Regards Wolfgang
2024 May 28 3:01 PM
Hi together,
This post is quite old, but I had the same problem recently. I built a migration project with this BAPI and had the error in the migration cockpit when migrating the customer hierarchies that customer xy was not created, although it was. The leading zeros were missing. The number field for customers has ten digits. This means that not only the customer number e.g. 1234 has to be entered but also 0000001234. There are no conversion routines here.