SAP Reports / Programs

RVKNVH00 SAP ABAP Report - Process Customer Hierarchy







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


Transaction Code(s):

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)


ABAP code to call this SAP report using the submit statement

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.






SUBMIT RVKNVH00. "Basic submit
SUBMIT RVKNVH00 AND RETURN. "Return to original report after report execution complete
SUBMIT RVKNVH00 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


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





Text Symbol: 084 = attributes in the hierarchy ? ;;
Text Symbol: 085 = Hierarchy node & : all assignments
Text Symbol: 086 = Header nodes ;;
Text Symbol: 087 = Selection date: ;;
Text Symbol: 088 = Hierarchy parameters
Text Symbol: 089 = Delimit. of hierarchy nodes
Text Symbol: 099 = Hierarchy node incorrect ;;
Text Symbol: 100 = Hierarchy assgmnt for & not allowed;;
Text Symbol: 101 = Node & has an unallowable hierarchy level assignment ;;
Text Symbol: 102 = Explanatory Short Txt
Text Symbol: FA1 = Error Analysis Detail Description Line 1
Text Symbol: FA2 = Error Analysis Detail Description Line 2
Text Symbol: G00 = Customer hierarchy graphic
Text Symbol: 054 = with different attributes will be ;; -> 055
Text Symbol: 027 = validity period ? ;;
Text Symbol: 026 = Do you want to extend the ;; -> 027
Text Symbol: 025 = of an alterntive assignment ;;
Text Symbol: 024 = restricts the validity period ;, -> 025
Text Symbol: 023 = The assignment to be deleted ;; -> 024
Text Symbol: 022 = Assignments have been changed ;;
Text Symbol: 021 = Do you wish to save your data? ;;
Text Symbol: 018 = nodes in the sub-hierarchy ;;
Text Symbol: 017 = different validity periods for ;; -> 018
Text Symbol: 016 = There are still assignments with ;; -> 017
Text Symbol: 015 = hierarchy node? ::
Text Symbol: 014 = Do you still wish to delete the ;; -> 015
Text Symbol: 013 = nodes to be deleted ;;
Text Symbol: 012 = different validity periods for the ;; -> 012
Text Symbol: 011 = There are still assignments with ;; -> 012
Text Symbol: 010 = Delete hierarchy node ;;
Text Symbol: 009 = Hierarchy header
Text Symbol: 008 = Dependent hierarchy nodes
Text Symbol: 007 = Node &: allowed assignments
Text Symbol: 006 = in the sub-hierarchy? ;;
Text Symbol: 005 = Do you wish to delete all nodes ;; -> 006
Text Symbol: 004 = Delete subtree
Text Symbol: 003 = Do you wish to cancel? ;;
Text Symbol: 002 = Unsaved data will be lost ;;
Text Symbol: 001 = Exit hierarchy maintenance ;;





Text Symbol: 028 = The nodes to be deleted restrict ;; -> 029
Text Symbol: 053 = The validity of the same assignment;; -> 054
Text Symbol: 052 = node? ;;
Text Symbol: 051 = Do you want to reassign this ;; -> 052
Text Symbol: 050 = nodes of the same level ;;
Text Symbol: 049 = assignment there are additional
Text Symbol: 048 = In the validity period of the new ;; -> 049
Text Symbol: 047 = not displayed ;;
Text Symbol: 046 = the selection date and is therefore;; -> 047
Text Symbol: 045 = The assignment is not active on ;; -> 046
Text Symbol: 044 = node will be extended ;;
Text Symbol: 043 = alternative higher levels for the ;; -> 044
Text Symbol: 042 = The validity period of the ;; -> 043
Text Symbol: 041 = hierarchy node ;;
Text Symbol: 040 = other higher levels of the ;; -> 041
Text Symbol: 039 = The assignment restricts or deletes;; -> 040
Text Symbol: 038 = be copied? ;;
Text Symbol: 037 = Do you want the assignment to ;; -> 038
Text Symbol: 036 = extended ;;
Text Symbol: 035 = existing assignment will be ;; -> 036
Text Symbol: 034 = The validity period of an ;; -> 035
Text Symbol: 033 = Maintain hierarchy nodes ;;
Text Symbol: 032 = validity periods ? ;;
Text Symbol: 031 = Do you want to extend these ;; -> 032
Text Symbol: 030 = assignments in the same hierarchy ;;
Text Symbol: 029 = the validity of the alternative ;; -> 030


INCLUDES used within this REPORT RVKNVH00

INCLUDE KNVHTOP.


TABLES used within REPORT and the associated SELECT statement:

No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

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.



Contribute (Add Comments)

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.