view_sdi_head_p
Header Related Data of a Billing Document
view_sdi_head_p is a CDS View that provides data about "Header Related Data of a Billing Document" in SAP S/4HANA. It reads from 1 data source (vbrk) and exposes 26 fields with key field vbeln. It has 8 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| vbrk | vbrk | from |
Associations (8)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | tvfk | document_type | $projection.fkart = document_type.fkart |
| [0..*] | tvfkt | document_type_texts | $projection.fkart = document_type_texts.fkart |
| [0..1] | t151 | customer_group | $projection.kdgrp = customer_group.kdgrp |
| [0..*] | t151t | customer_group_texts | $projection.kdgrp = customer_group_texts.kdgrp |
| [0..*] | dd07t | status_texts | $projection.rfbsk = status_texts.domvalue_l and status_texts.domname = 'RFBSK' and status_texts.as4local = 'A' |
| [0..*] | dd07t | doc_category_texts | $projection.fktyp = doc_category_texts.domvalue_l and doc_category_texts.domname = 'FKTYP' and doc_category_texts.as4local = 'A' |
| [0..1] | view_Kna1_name_p | payer_name | $projection.kunrg = payer_name.customer_account |
| [0..1] | view_Kna1_name_p | sold_to_party_name | $projection.kunag = sold_to_party_name.customer_account |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CDS_SDI_HEAD_P | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| EndUserText.label | Header Related Data of a Billing Document | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.type | #INHERITED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (26)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | vbeln | vbeln | SD Sched. Agmt | |
| waerk | waerk | Doc. Currency | ||
| fktyp | fktyp | BillingCategory | ||
| vbtyp | vbtyp | TSW Det.Doc typ | ||
| fkart | fkart | Ship. cost type | ||
| kunrg | kunrg | Payer | ||
| kunag | kunag | Sold-to Party | ||
| bukrs | bukrs | Value | ||
| vkorg | vkorg | SD Sales Org. | ||
| vtweg | vtweg | RefDistCh-Cust/Mat. | ||
| spart | spart | Source supplier | ||
| rfbsk | rfbsk | Posting Status | ||
| fkdat | fkdat | Sett. Date | ||
| erdat | erdat | Entered On | ||
| xblnr | xblnr | Reference | ||
| zuonr | zuonr | Finance Project | ||
| sfakn | sfakn | Canceld Bill.Dc | ||
| stceg | stceg | VAT Reg. No. | ||
| kdgrp | kdgrp | Customer group | ||
| incov | incov | Inco. Version | ||
| inco1 | inco1 | Incoterms | ||
| inco2 | inco2 | Incoterms 2 | ||
| inco2_l | inco2_l | Inco. Location1 | ||
| inco3_l | inco3_l | Inco. Location2 | ||
| status_texts | status_texts | |||
| payer_name | payer_name | Payer Name |
Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.
-- Derived SQL interpretation of CDS view view_sdi_head_p.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: CDS_SDI_HEAD_P
CREATE VIEW view_sdi_head_p AS
SELECT
vbeln,
waerk,
fktyp,
vbtyp,
fkart,
kunrg,
kunag,
bukrs,
vkorg,
vtweg,
spart,
rfbsk,
fkdat,
erdat,
xblnr,
zuonr,
sfakn,
stceg,
kdgrp,
incov,
inco1,
inco2,
inco2_l,
inco3_l,
status_texts,
payer_name
FROM vbrk
LEFT OUTER JOIN tvfk AS document_type ON fkart = document_type.fkart -- association [1..1]
LEFT OUTER JOIN tvfkt AS document_type_texts ON fkart = document_type_texts.fkart -- association [0..*]
LEFT OUTER JOIN t151 AS customer_group ON kdgrp = customer_group.kdgrp -- association [0..1]
LEFT OUTER JOIN t151t AS customer_group_texts ON kdgrp = customer_group_texts.kdgrp -- association [0..*]
LEFT OUTER JOIN dd07t AS status_texts ON rfbsk = status_texts.domvalue_l AND status_texts.domname = 'RFBSK' AND status_texts.as4local = 'A' -- association [0..*]
LEFT OUTER JOIN dd07t AS doc_category_texts ON fktyp = doc_category_texts.domvalue_l AND doc_category_texts.domname = 'FKTYP' AND doc_category_texts.as4local = 'A' -- association [0..*]
LEFT OUTER JOIN view_Kna1_name_p AS payer_name ON kunrg = payer_name.customer_account -- association [0..1]
LEFT OUTER JOIN view_Kna1_name_p AS sold_to_party_name ON kunag = sold_to_party_name.customer_account -- association [0..1]
;
Learn More
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA