﻿// class customerhierarchy

class customerhierarchy  dbtable="KNVH" assembly="s10cis"

  string   MANDT          maxsize="3"       uppercase="yes"   link="t000"       dbclient="yes"    dbkey="yes"        // Client
  string   HITYP          maxsize="1"       uppercase="yes"   link="thit"       dbkey="yes"        // Customer hierarchy type
  string   KUNNR          maxsize="10"      zerofill="yes"    uppercase="yes"   link="kna1"       historyid="VHI"   dbkey="yes"        // Customer
  string   VKORG          maxsize="4"       uppercase="yes"   link="tvko"       historyid="VKO"   dbkey="yes"        // Sales Organization
  string   VTWEG          maxsize="2"       uppercase="yes"   link="tvtw"       historyid="VTW"   dbkey="yes"        // Distribution Channel
  string   SPART          maxsize="2"       uppercase="yes"   link="tspa"       historyid="SPA"   dbkey="yes"        // Division
  date     DATAB          maxsize="10"      dbkey="yes"        // Start of validity period for assignment
  date     DATBI          maxsize="10"       // End of validity period for the assignment
  string   HKUNNR         maxsize="10"      zerofill="yes"    uppercase="yes"   link="kna1"        // Customer number of the higher-level customer hierarchy
  string   HVKORG         maxsize="4"       uppercase="yes"   link="tvko"       historyid="VKO"    // Higher-level sales organization
  string   HVTWEG         maxsize="2"       uppercase="yes"   link="tvtw"       historyid="VTW"    // Higher-level distribution channel
  string   HSPART         maxsize="2"       uppercase="yes"   link="tspa"       historyid="SPA"    // Higher-level division
  string   GRPNO          maxsize="3"       numerical="yes"    // Number of the routine used for copying
  string   BOKRE          maxsize="1"       uppercase="yes"    // Indicator: Customer Is Rebate-Relevant
  string   PRFRE          maxsize="1"       uppercase="yes"    // Relevant for price determination ID
  string   HZUOR          maxsize="2"       numerical="yes"    // Assignment to Hierarchy

  non-database-section


  folder customerhierarchy class="customerhierarchy"
  string name1
  string ort01
  string pstlz
  string land1
  string ktokd

  integer nodeDepth

  endclass





