VDH1N SAP TCode - Display/Maintain Customer Hierarchy
Process Customer Hierarchy SAP screen
What is VDH1N (Display/Maintain Customer Hierarchy) and how is it used? Within an SAP system there are numerous transaction codes (TCode) that each serve different purposes and provide easy access to a variety of different functionality. One such TCode is VDH1N, which provides access to Display/Maintain Customer Hierarchy / Process Customer Hierarchy SAP screen functionality within R/3 SAP (Or S/4HANA) systems, depending on your version and release level.
Below for your convenience is a few details about this tcode including any standard documentation. In-order to use this transaction within your SAP system simply enter it into the command input box located in the top left hand corner of the SAP GUI, and press enter. You can also add additional command options such /o to trigger in new window..See full list of
command options available.
Fiori Application based on Tcode VDH1N
Display/Maintain Customer Hierarchy VDH1NHas this tcode replaced or been replaced by a new transaction
In release 46A SAP Transaction Code(t-code) VDH1 is replaced by VDH1NSee full list of replaced / obsolete t-codes

Program Name: RV_CUSTOMER_HIERARCHY
Screen Number: 1000
VDH1N Authorisation objects
In-order to be able to use a SAP transaction code you need to have the correct authorisations setup for your user ID. To check if you have the required level of authorisation to run this use tcode SU53 via a new session (i.e. /N). Simply execute VDH1N and then execute /NSU53 immediately afterwards. A report of all authorisations checked will then be displayed...See check tcode authorisation for full details and screenshots of how to check what authorisations you are missing to use a tcode.T View customer hierarchy using vdh1n and partner tab
D View customer hierarchy using vdh1n and header poartners tab in sales order
& Help View customer hierarchy using tcode vdh1n
Execute tcode VDH1N to view customer hierarchy




View via partner tab in sales order header
You can also view the customer hierachy details within the header parters tab when creating or changing a sales order in @VA01 / @VA02

The abap code to retrieve the customer hiearchy is as follows
*get customer sales org, distribution channel, division from table KNVH
CALL FUNCTION 'RKE_READ_CUSTOMER_HIERARCHY'
EXPORTING customer =
* DATE = SY-DATUM
htype = 'A' sales_channel =
TABLES
hpath = lt_hpath.
CLEAR ls_hpath.
READ TABLE lt_hpath INTO ls_hpath WITH KEY histunr = '03'.
SAP GUI Support for tcode VDH1N
When a tcode is created you can select which SAP GUI it has support for from HTML, Java and the main Windows GUI you are probably most familiar with.


SAPGUI for HTML
VDH1N does not support the HTML web based GUI. The SAP GUI for HTML generates HTML pages for each screen of the SAP transaction so that it can be executed within a standard web browser. Please note there are technical restrictions and possible incompatibility issues with certain browsers which means some transaction functionality may not function correctly.
SAPGUI for Java
VDH1N does not support the Java based GUI. The SAP GUI for Java support provides more controls than the SAP GUI for HTML, but requires a plug-in to be downloaded and installed on the users PC so is less popular than the SAP GUI for HTML.
SAPGUI for windows
VDH1N includes support for the Windows based GUI. Windows(WinGUI) support is the most popular option and transactions can be run under SAP GUI for Windows.
SAP Program associated with transaction VDH1N
For further details and documentation see program RV_CUSTOMER_HIERARCHYVDH1N SPRO IMG Menu Path
Logistics->Customer Service->Service Agreements->Environment->Sales and Distribution->Master Data->Business Partner->Customer Hierarchy->Edit(VDH1N)Logistics->Customer Service->Service Processing->Environment->Sales and Distribution->Master Data->Business Partner->Customer Hierarchy->Edit(VDH1N)
Logistics->Sales and Distribution->Master Data->Business Partner->Customer Hierarchy->Edit(VDH1N)
Search for further information about these or an SAP related objects