08-03-2009 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!
08-03-2009 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
08-04-2009 8:56 AM
Thanks for the reply. But Customer master is available, this is the error message related to only hierarchy.
08-04-2009 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