Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Uploading Customer Hierarchy - VDH1N Transaction

Former Member
0 Kudos

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!

3 REPLIES 3

Former Member
0 Kudos

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

0 Kudos

Thanks for the reply. But Customer master is available, this is the error message related to only hierarchy.

0 Kudos

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