view_ab_head_p
Header Related Data of Settlement Management Document
view_ab_head_p is a CDS View that provides data about "Header Related Data of Settlement Management Document" in SAP S/4HANA. It reads from 1 data source (wbrk) and exposes 38 fields with key field wbeln. It has 13 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| wbrk | wbrk | from |
Associations (13)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | tmlfg | activity | $projection.lfgru = activity.lfgru |
| [0..*] | tmlfgt | activity_texts | $projection.lfgru = activity_texts.lfgru |
| [1..1] | tmfk | document_type | $projection.lfart = document_type.lfart |
| [0..*] | tmfkt | document_type_texts | $projection.lfart = document_type_texts.lfart |
| [0..1] | tmzr | payment_type | $projection.wrart = payment_type.wrart |
| [0..*] | tmzrt | payment_type_texts | $projection.wrart = payment_type_texts.wrart |
| [0..*] | dd07t | status_texts | $projection.rfbsk = status_texts.domvalue_l and status_texts.domname = 'WFBSK' and status_texts.as4local = 'A' |
| [0..*] | dd07t | cancelled_texts | $projection.fksto = cancelled_texts.domvalue_l and cancelled_texts.domname = 'XFELD' and cancelled_texts.as4local = 'A' |
| [0..*] | dd07t | doc_category_texts | $projection.lftyp = doc_category_texts.domvalue_l and doc_category_texts.domname = 'WFTYP' and doc_category_texts.as4local = 'A' |
| [0..1] | view_lfa1_name_p | invoicing_party_name | $projection.lifre = invoicing_party_name.vendor_account |
| [0..1] | view_lfa1_name_p | payee_name | $projection.lnrzb = payee_name.vendor_account |
| [0..1] | view_Kna1_name_p | bill_to_party_name | $projection.kunre = bill_to_party_name.customer_account |
| [0..1] | view_Kna1_name_p | payer_name | $projection.kunrg = payer_name.customer_account |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CDS_AB_HEAD_P | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| EndUserText.label | Header Related Data of Settlement Management Document | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.type | #INHERITED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (38)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | wbeln | wbeln | Sett. Doc. List | |
| waerl | waerl | Doc. Currency | ||
| lftyp | lftyp | Sett. Doc. Cat. | ||
| wrart | wrart | Settl Proc Type | ||
| lifre | lifre | Location Alias | ||
| kunre | kunre | Bill-to Party | ||
| lnrzb | lnrzb | Payee | ||
| kunrg | kunrg | Payer | ||
| bldat | bldat | Journal Entry Date | ||
| wfdat | wfdat | Posting Date | ||
| erdat | erdat | Entered On | ||
| bukrs | bukrs | Value | ||
| ekorg | ekorg | Purchasing Org. | ||
| ekgrp | ekgrp | Sub. purchasing grp | ||
| vkorg | vkorg | SD Sales Org. | ||
| vtweg | vtweg | RefDistCh-Cust/Mat. | ||
| spart | spart | Source supplier | ||
| lfart | lfart | Settl Doc Type | ||
| xblnr | xblnr | Reference | ||
| zuonr | zuonr | Finance Project | ||
| post_party | post_party | Posting Partner | ||
| use_case | use_case | Use Case Type | ||
| lfaks | lfaks | Reversed Document | ||
| rfbsk | rfbsk | Posting Status | ||
| fksto | fksto | Doc. Reversed | ||
| stceg | stceg | VAT Reg. No. | ||
| stcegd | stcegd | Cust.VATReg.No. | ||
| incov | incov | Inco. Version | ||
| inco1 | inco1 | Incoterms | ||
| inco2 | inco2 | Incoterms 2 | ||
| inco2_l | inco2_l | Inco. Location1 | ||
| inco3_l | inco3_l | Inco. Location2 | ||
| lfgru | lfgru | Activity Reason | ||
| activity | activity | VAT Activity | ||
| payment_type | payment_type | Payment Type | ||
| status_texts | status_texts | |||
| payee_name | payee_name | |||
| 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_ab_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_AB_HEAD_P
CREATE VIEW view_ab_head_p AS
SELECT
wbeln,
waerl,
lftyp,
wrart,
lifre,
kunre,
lnrzb,
kunrg,
bldat,
wfdat,
erdat,
bukrs,
ekorg,
ekgrp,
vkorg,
vtweg,
spart,
lfart,
xblnr,
zuonr,
post_party,
use_case,
lfaks,
rfbsk,
fksto,
stceg,
stcegd,
incov,
inco1,
inco2,
inco2_l,
inco3_l,
lfgru,
activity,
payment_type,
status_texts,
payee_name,
payer_name
FROM wbrk
LEFT OUTER JOIN tmlfg AS activity ON lfgru = activity.lfgru -- association [0..1]
LEFT OUTER JOIN tmlfgt AS activity_texts ON lfgru = activity_texts.lfgru -- association [0..*]
LEFT OUTER JOIN tmfk AS document_type ON lfart = document_type.lfart -- association [1..1]
LEFT OUTER JOIN tmfkt AS document_type_texts ON lfart = document_type_texts.lfart -- association [0..*]
LEFT OUTER JOIN tmzr AS payment_type ON wrart = payment_type.wrart -- association [0..1]
LEFT OUTER JOIN tmzrt AS payment_type_texts ON wrart = payment_type_texts.wrart -- association [0..*]
LEFT OUTER JOIN dd07t AS status_texts ON rfbsk = status_texts.domvalue_l AND status_texts.domname = 'WFBSK' AND status_texts.as4local = 'A' -- association [0..*]
LEFT OUTER JOIN dd07t AS cancelled_texts ON fksto = cancelled_texts.domvalue_l AND cancelled_texts.domname = 'XFELD' AND cancelled_texts.as4local = 'A' -- association [0..*]
LEFT OUTER JOIN dd07t AS doc_category_texts ON lftyp = doc_category_texts.domvalue_l AND doc_category_texts.domname = 'WFTYP' AND doc_category_texts.as4local = 'A' -- association [0..*]
LEFT OUTER JOIN view_lfa1_name_p AS invoicing_party_name ON lifre = invoicing_party_name.vendor_account -- association [0..1]
LEFT OUTER JOIN view_lfa1_name_p AS payee_name ON lnrzb = payee_name.vendor_account -- association [0..1]
LEFT OUTER JOIN view_Kna1_name_p AS bill_to_party_name ON kunre = bill_to_party_name.customer_account -- association [0..1]
LEFT OUTER JOIN view_Kna1_name_p AS payer_name ON kunrg = payer_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