RVKNVH00 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This report allows you to use list editing to display or maintain customer hierarchies...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.
If you would like to execute this report or see the full code listing simply enter RVKNVH00 into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
VDH2 - Display Customer Hierarchy
WDH1 - Maintain plant hierarchy (SD)
WDH2 - Display customer hierarchy (SD)
VDH1 - Customer Hierarchy Maintenance (SD)
This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.
Selection Text: VTWEGX = Distribution channel
Selection Text: VKORGX = Sales organizations
Selection Text: S_PARTH = only node-specific paths
Selection Text: S_HITYP = Customer hierarchy type
Selection Text: S_DATUM = Validity date
Selection Text: S_CHECK = Restricted checks
Selection Text: SPARTX = Divisions
Selection Text: KUNNRX = Customers
Title: Process Customer Hierarchy
Text Symbol: 075 = The validity area is not allowed ;;
Text Symbol: 074 = Account group assignment is not allowed ;;
Text Symbol: 073 = Sales area assignment is not allowed ;;
Text Symbol: 072 = Customer & has not been created (Cntrl or SD Area) ;;
Text Symbol: 071 = to be copied ? ;;
Text Symbol: 070 = Do you still want the header node ;; -> 071
Text Symbol: 069 = group or sales area asignment) ;;
Text Symbol: 068 = to the new header node (account- ;; -> 069
Text Symbol: 067 = You cannot assign any more nodes ,; -> 068
Text Symbol: 066 = copied into the assignment ? ;;
Text Symbol: 065 = Do you want the change to be ;; -> 066
Text Symbol: 064 = into the customer hierarchy ? ;;
Text Symbol: 063 = Do you want the change to be copied;; -> 064
Text Symbol: 062 = been changed in the customer master;;
Text Symbol: 061 = (rebate, pricing ...) have ;; -> 062
Text Symbol: 060 = The hierarchy relevant attributes ;; -> 061
Text Symbol: 059 = Maintain hierarchy node ;;
Text Symbol: 058 = re-created ;;
Text Symbol: 057 = completely or partially ;; -> 058
Text Symbol: 056 = The higher-level node will be either;;-> 057
Text Symbol: 055 = restricted or deleted ;;
Text Symbol: 076 = Hierarchy node does not exist in the overall period;;
Text Symbol: 077 = Assignment & ;; --> 078
Text Symbol: 078 = has the following inconsistencies: ;;
Text Symbol: 079 = Customer hierarchy attributes ;;
Text Symbol: 080 = The attributes (rebate, pricing) ;; -> 081
Text Symbol: 081 = referring to the hierarchy are ;; -> 082
Text Symbol: 082 = not current ;;
Text Symbol: 083 = Do you wish to update the ;; -> 084
INCLUDE KNVHTOP.
No SAP DATABASE tables are accessed within this REPORT code!
POPUP_TO_CONFIRM_WITH_MESSAGE CALL FUNCTION 'POPUP_TO_CONFIRM_WITH_MESSAGE' EXPORTING titel = text-033 diagnosetext1 = text-042 diagnosetext2 = text-043 diagnosetext3 = text-044 textline1 = text-037 textline2 = text-038 IMPORTING answer = answer.
POPUP_TO_CONFIRM_WITH_MESSAGE CALL FUNCTION 'POPUP_TO_CONFIRM_WITH_MESSAGE' EXPORTING titel = text-033 diagnosetext1 = text-048 diagnosetext2 = text-049 diagnosetext3 = text-050 textline1 = text-051 textline2 = text-052 IMPORTING answer = answer.
POPUP_TO_CONFIRM_WITH_MESSAGE CALL FUNCTION 'POPUP_TO_CONFIRM_WITH_MESSAGE' EXPORTING titel = text-033 diagnosetext1 = text-045 diagnosetext2 = text-046 diagnosetext3 = text-047 textline1 = text-037 textline2 = text-038 IMPORTING answer = answer.
POPUP_TO_CONFIRM_WITH_MESSAGE CALL FUNCTION 'POPUP_TO_CONFIRM_WITH_MESSAGE' EXPORTING titel = text-010 diagnosetext1 = text-011 diagnosetext2 = text-012 diagnosetext3 = text-013 textline1 = text-014 textline2 = text-015 IMPORTING answer = answer.
POPUP_TO_CONFIRM_WITH_MESSAGE CALL FUNCTION 'POPUP_TO_CONFIRM_WITH_MESSAGE' EXPORTING titel = text-010 diagnosetext1 = text-023 diagnosetext2 = text-024 diagnosetext3 = text-025 textline1 = text-026 textline2 = text-027 IMPORTING answer = answer.
POPUP_TO_CONFIRM_WITH_MESSAGE CALL FUNCTION 'POPUP_TO_CONFIRM_WITH_MESSAGE' EXPORTING titel = text-004 diagnosetext1 = text-016 diagnosetext2 = text-017 diagnosetext3 = text-018 textline1 = text-005 textline2 = text-006 IMPORTING answer = answer.
POPUP_TO_CONFIRM_WITH_MESSAGE CALL FUNCTION 'POPUP_TO_CONFIRM_WITH_MESSAGE' EXPORTING titel = text-004 diagnosetext1 = text-028 diagnosetext2 = text-029 diagnosetext3 = text-030 textline1 = text-031 textline2 = text-032 IMPORTING answer = answer.
POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING titel = text-004 textline1 = text-005 textline2 = text-006 IMPORTING answer = answer.
CNET_GRAPHIC_HIERARCHY CALL FUNCTION 'CNET_GRAPHIC_HIERARCHY' EXPORTING abap_cmd = abap_cmd stat = stat status_text = text_graph titlebar = titlebar profile = profile confirm = confirm IMPORTING gr_mes = gr_mes m_typ = m_typ TABLES clusters = clusters_tab cvals = cvals_tab deletions = dele_tab inodes = inodes_tab * labels = labels_tab "P30K085317/3.0E
POPUP_TO_CONFIRM_WITH_MESSAGE CALL FUNCTION 'POPUP_TO_CONFIRM_WITH_MESSAGE' EXPORTING titel = text-033 diagnosetext1 = text-056 diagnosetext2 = text-057 diagnosetext3 = text-058 textline1 = text-037 textline2 = text-038 IMPORTING answer = answer.
ENQUEUE_E_KNVH CALL FUNCTION 'ENQUEUE_E_KNVH' EXPORTING mode_knvh = 'E' mandt = sy-mandt hityp = s_hityp * KUNNR = * VKORG = * VTWEG = * SPART = * DATAB = * X_HITYP = ' ' * X_KUNNR = ' ' * X_VKORG = ' ' * X_VTWEG = ' ' * X_SPART = ' ' * X_DATAB = ' ' * _SCOPE = '2' * _WAIT = ' ' * _COLLECT = ' ' EXCEPTIONS foreign_lock = 4 system_failure = 8 OTHERS = 3.
ENQUEUE_E_TABLE * CALL FUNCTION 'ENQUEUE_E_TABLE' * EXPORTING * tabname = 'KNVH' * varkey = varkey * EXCEPTIONS * foreign_lock = 4 * system_failure = 8.
DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.
DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.
ENQUEUE_E_KNVH CALL FUNCTION 'ENQUEUE_E_KNVH' EXPORTING mode_knvh = 'E' mandt = sy-mandt hityp = s_hityp * KUNNR = * VKORG = * VTWEG = * SPART = * DATAB = * X_HITYP = ' ' * X_KUNNR = ' ' * X_VKORG = ' ' * X_VTWEG = ' ' * X_SPART = ' ' * X_DATAB = ' ' * _SCOPE = '2' * _WAIT = ' ' * _COLLECT = ' ' EXCEPTIONS foreign_lock = 4 system_failure = 8 OTHERS = 3.
ENQUEUE_E_TABLE * CALL FUNCTION 'ENQUEUE_E_TABLE' * EXPORTING * tabname = 'KNVH' * varkey = varkey * EXCEPTIONS * foreign_lock = 4 * system_failure = 8.
DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.
SD_PARTNER_DISPLAY CALL FUNCTION 'SD_PARTNER_DISPLAY' EXPORTING number = knvh-kunnr partner_function = 'AG' partner_maintain = pmain sales_channel = knvh-vtweg sales_division = knvh-spart sales_org = knvh-vkorg EXCEPTIONS function_not_allowed = 01 object_not_allowed = 02 partner_function_not_valid = 03 partner_not_exist = 04.
CMD_ENQUEUE_EXKNA1 CALL FUNCTION 'CMD_ENQUEUE_EXKNA1' EXPORTING kunnr = knvh-kunnr EXCEPTIONS foreign_lock = 1 system_failure = 2.
CMD_DEQUEUE_EXKNA1 CALL FUNCTION 'CMD_DEQUEUE_EXKNA1' EXPORTING kunnr = knvh-kunnr EXCEPTIONS system_failure = 1.
POPUP_TO_CONFIRM_WITH_MESSAGE CALL FUNCTION 'POPUP_TO_CONFIRM_WITH_MESSAGE' EXPORTING titel = text-059 diagnosetext1 = text-060 diagnosetext2 = text-061 diagnosetext3 = text-062 textline1 = text-063 textline2 = text-064 IMPORTING answer = answer.
POPUP_TO_CONFIRM_WITH_MESSAGE CALL FUNCTION 'POPUP_TO_CONFIRM_WITH_MESSAGE' EXPORTING titel = text-059 diagnosetext1 = text-060 diagnosetext2 = text-061 diagnosetext3 = text-062 textline1 = text-065 textline2 = text-066 IMPORTING answer = answer.
POPUP_TO_CONFIRM_WITH_MESSAGE * CALL FUNCTION 'POPUP_TO_CONFIRM_WITH_MESSAGE' * EXPORTING * TITEL = TEXT-079 * DIAGNOSETEXT1 = TEXT-080 * DIAGNOSETEXT2 = TEXT-081 * DIAGNOSETEXT3 = TEXT-082 * TEXTLINE1 = TEXT-083 * TEXTLINE2 = TEXT-084 * IMPORTING * ANSWER = ANSWER.
CUSTOMER_HIERARCHY_UPDATE CALL FUNCTION 'CUSTOMER_HIERARCHY_UPDATE' IN UPDATE TASK TABLES t_xknvh = xvknvh t_yknvh = yknvh.
POPUP_TO_CONFIRM_LOSS_OF_DATA CALL FUNCTION 'POPUP_TO_CONFIRM_LOSS_OF_DATA' EXPORTING titel = text-002 textline1 = text-003 IMPORTING answer = answer.
DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.
POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING titel = text-001 textline1 = text-022 textline2 = text-021 IMPORTING answer = answer.
DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.
DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.
POPUP_TO_CONFIRM_WITH_MESSAGE CALL FUNCTION 'POPUP_TO_CONFIRM_WITH_MESSAGE' EXPORTING titel = text-033 diagnosetext1 = text-067 diagnosetext2 = text-068 diagnosetext3 = text-069 textline1 = text-070 textline2 = text-071 IMPORTING answer = answer.
POPUP_TO_CONFIRM_WITH_MESSAGE CALL FUNCTION 'POPUP_TO_CONFIRM_WITH_MESSAGE' EXPORTING titel = text-033 diagnosetext1 = text-067 diagnosetext2 = text-068 diagnosetext3 = text-069 textline1 = text-070 textline2 = text-071 IMPORTING answer = answer.
POPUP_TO_CONFIRM_WITH_MESSAGE CALL FUNCTION 'POPUP_TO_CONFIRM_WITH_MESSAGE' EXPORTING titel = text-033 diagnosetext1 = text-034 diagnosetext2 = text-035 diagnosetext3 = text-036 textline1 = text-037 textline2 = text-038 IMPORTING answer = answer.
POPUP_TO_CONFIRM_WITH_MESSAGE CALL FUNCTION 'POPUP_TO_CONFIRM_WITH_MESSAGE' EXPORTING titel = text-033 diagnosetext1 = text-053 diagnosetext2 = text-054 diagnosetext3 = text-055 textline1 = text-037 textline2 = text-038 IMPORTING answer = answer.
POPUP_TO_CONFIRM_WITH_MESSAGE CALL FUNCTION 'POPUP_TO_CONFIRM_WITH_MESSAGE' EXPORTING titel = text-033 diagnosetext1 = text-039 diagnosetext2 = text-040 diagnosetext3 = text-041 textline1 = text-037 textline2 = text-038 IMPORTING answer = answer.
BF_FUNCTIONS_FIND CALL FUNCTION 'BF_FUNCTIONS_FIND' EXPORTING i_event = '00504004' TABLES t_fmrfc = ls_fmrfc EXCEPTIONS nothing_found = 4 OTHERS = 8.
BF_FUNCTIONS_FIND CALL FUNCTION 'BF_FUNCTIONS_FIND' EXPORTING i_event = '00504005' TABLES t_fmrfc = ls_fmrfc EXCEPTIONS nothing_found = 4 OTHERS = 8.
BF_FUNCTIONS_FIND CALL FUNCTION 'BF_FUNCTIONS_FIND' EXPORTING i_event = '00504006' TABLES t_fmrfc = ls_fmrfc EXCEPTIONS nothing_found = 4 OTHERS = 8.
CUSTOMER_HIERARCHY_THROW_BTE CALL FUNCTION 'CUSTOMER_HIERARCHY_THROW_BTE' IN UPDATE TASK EXPORTING fti_event_list = gt_nodes fti_event_listx = gt_nodesx.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.
This will then be available for everyone to easily find by simply searching on the report name RVKNVH00 or its description.