P_PT_BusinessPartner_Delivery
Business Partner Delivery Country
P_PT_BusinessPartner_Delivery is a Composite CDS View that provides data about "Business Partner Delivery Country" in SAP S/4HANA. It reads from 1 data source (I_OperationalAcctgDocItem) and exposes 16 fields with key fields CompanyCode, FiscalYear, AccountingDocument.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_OperationalAcctgDocItem | AcctgDoc | from |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| EndUserText.label | Business Partner Delivery Country | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (16)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | I_OperationalAcctgDocItem | CompanyCode | Receiver Company Code |
| KEY | FiscalYear | I_OperationalAcctgDocItem | FiscalYear | G/L Fiscal Year |
| KEY | AccountingDocument | I_OperationalAcctgDocItem | AccountingDocument | Journal Entry |
| PostingDate | I_OperationalAcctgDocItem | PostingDate | Posting Date for GR | |
| FiscalPeriod | I_OperationalAcctgDocItem | FiscalPeriod | Tax period | |
| AccountingDocumentType | I_OperationalAcctgDocItem | AccountingDocumentType | Journal Entry Type | |
| IsReversal | ||||
| Customer | ||||
| Supplier | ||||
| AccountingDocumentCategory | I_OperationalAcctgDocItem | AccountingDocumentCategory | Journal Entry Category | |
| FinancialAccountType | I_OperationalAcctgDocItem | FinancialAccountType | Fin. Account Type | |
| CountryendasCountry | ||||
| IsOneTimeAccountendasIsOneTimeAccount | ||||
| _CompanyCode | I_OperationalAcctgDocItem | _CompanyCode | ||
| _FiscalYear | I_OperationalAcctgDocItem | _FiscalYear | ||
| _JournalEntry | I_OperationalAcctgDocItem | _JournalEntry |
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 P_PT_BusinessPartner_Delivery.
-- 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.
CREATE VIEW P_PT_BusinessPartner_Delivery AS
SELECT
AcctgDoc.CompanyCode AS CompanyCode,
AcctgDoc.FiscalYear AS FiscalYear,
AcctgDoc.AccountingDocument AS AccountingDocument,
AcctgDoc.PostingDate AS PostingDate,
AcctgDoc.FiscalPeriod AS FiscalPeriod,
AcctgDoc.AccountingDocumentType AS AccountingDocumentType,
AcctgDoc._JournalEntry.IsReversal AS IsReversal,
max(AcctgDoc.Customer) AS Customer,
max(AcctgDoc.Supplier) AS Supplier,
AcctgDoc.AccountingDocumentCategory AS AccountingDocumentCategory,
AcctgDoc.FinancialAccountType AS FinancialAccountType,
case when AcctgDoc.Customer is not initial then AcctgDoc._Customer.Country when AcctgDoc.Supplier is not initial then AcctgDoc._Supplier.Country end as Country AS CountryendasCountry,
case when AcctgDoc.Customer is not initial then AcctgDoc._Customer.IsOneTimeAccount when AcctgDoc.Supplier is not initial then AcctgDoc._Supplier.IsOneTimeAccount end as IsOneTimeAccount AS IsOneTimeAccountendasIsOneTimeAccount,
AcctgDoc._CompanyCode AS _CompanyCode,
AcctgDoc._FiscalYear AS _FiscalYear,
AcctgDoc._JournalEntry AS _JournalEntry
FROM I_OperationalAcctgDocItem AS AcctgDoc
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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