SAP ABAP Data Element TDD_ROOT_HEAD (Document Number of the Root Header)
Hierarchy
SAP_APPL (Software Component) Logistics and Accounting
   SD (Application Component) Sales and Distribution
     ERP_SD_ANALYTICS_CORE_TR (Package) Sales, Billing and Delivery Analytics - Translation Relevant
Basic Data
Data Element TDD_ROOT_HEAD
Short Description Document Number of the Root Header  
Data Type
Category of Dictionary Type D   Domain
Type of Object Referenced     No Information
Domain / Name of Reference Type VBELN    
Data Type CHAR   Character String 
Length 10    
Decimal Places 0    
Output Length 10    
Value Table VBUK    
Further Characteristics
Search Help: Name    
Search Help: Parameters    
Parameter ID   
Default Component name    
Change document    
No Input History    
Basic direction is set to LTR    
No BIDI Filtering    
Field Label
  Length  Field Label  
Short 10 Root Head 
Medium 15 Root Header 
Long 20 Root Header 
Heading 15 Root Header 
Documentation

Definition

So that you can allocate contracts/quotation items and their corresponding sales order items within ODP-based queries, the contract/quotation item needs a self-reference, and the referenced sales order item needs to reference the original contract/quotation item. This cannot be covered by the existing fields VBELN, POSNR, ERDAT, VGBEL, and VGPOS.

To achieve this, we therefore need three new fields: ROOT_HEAD, ROOT_ITEM, and ROOT_DATE. This data element corresponds to the ROOT_HEAD field.

Use

The ROOT_HEAD field contains the document number of the root header. It is filled with values during statistical data enrichment at application runtime (function module MCV_STATISTICS_ORDER) or at direct access data retrieval (method FILL_MC11VA0ITM of class CL_SD_ANLY_CORE_SERVICES).

Dependencies

The following rules apply:

  • In the case of a contract or quotation item, the ROOT_HEAD field contains self-reference data from VBELN.
  • In the case of a sales order item with reference to a contract or quotation item, the ROOT_HEAD field contains the original data from VGBEL.

Example

History
Last changed by/on SAP  20110901 
SAP Release Created in 606