P_DGR_KF_BPClassification
P_DGR_KF_BPClassification is a Composite CDS View in SAP S/4HANA. It reads from 4 data sources (I_BPCounterPartyType, I_ACMBusPartData, I_VendAssgToBP, P_DGR_KF_UpdateExposureQty) and exposes 74 fields.
Data Sources (4)
| Source | Alias | Join Type |
|---|---|---|
| I_BPCounterPartyType | BPClassificationData | left_outer |
| I_ACMBusPartData | BPData | left_outer |
| I_VendAssgToBP | BPGuidData | left_outer |
| P_DGR_KF_UpdateExposureQty | P_DGR_KF_UpdateExposureQty | from |
Parameters (4)
| Name | Type | Default |
|---|---|---|
| P_CompanyCode | bukrs | |
| P_DisplayUnitOfMeasure | cds_dgr_display_uom | |
| P_DailyGrainReportType | cds_dgr_report_type | |
| P_DailyGrainReportDate | cds_dgr_date |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PDGRKFBPCLASS | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.type | #INHERITED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view |
Fields (74)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| PricingKey | Data | PricingKey | Pricing Key | |
| PricingDocumentItem | Data | PricingDocumentItem | Item | |
| ConditionType | Data | ConditionType | Condition type | |
| SubConditionType | Data | SubConditionType | ||
| VersStockRecordUUID | Data | VersStockRecordUUID | ||
| SourceDocument | Data | SourceDocument | Document | |
| SourceDocumentItem | Data | SourceDocumentItem | ||
| QuantityHistorySequenceNumber | Data | QuantityHistorySequenceNumber | ||
| HandleLossRsrvId | Data | HandleLossRsrvId | ||
| HandleLossRsrvItem | Data | HandleLossRsrvItem | ||
| HandleLossRsrvVersion | Data | HandleLossRsrvVersion | ||
| DGRDataSourceType | Data | DGRDataSourceType | ||
| DGRQuantiyType | Data | DGRQuantiyType | ||
| CompanyCode | Data | CompanyCode | Receiver Company Code | |
| Plant | Data | Plant | Valuation Area | |
| StorageLocation | Data | StorageLocation | StorageLocation | |
| SourceDocumentBusObjType | Data | SourceDocumentBusObjType | ||
| Material | Data | Material | Vehicle Model | |
| PhysicalCommodity | Data | PhysicalCommodity | ||
| MTMDataSourceType | Data | MTMDataSourceType | Type of Data Record | |
| SourceTransactionEventDateTime | Data | SourceTransactionEventDateTime | ||
| SourceTransacEventEndDateTime | Data | SourceTransacEventEndDateTime | ||
| CommodityExposureQuantity | ||||
| CommodityExposureUnit | Data | CommodityExposureUnit | ||
| QuantitySign | Data | QuantitySign | Sign of Quantity | |
| LoadDataCaptureObjectID | Data | LoadDataCaptureObjectID | ||
| LoadDataCaptureEventType | Data | LoadDataCaptureEventType | ||
| QuantityRepositoryUUID | Data | QuantityRepositoryUUID | ||
| QuantityRepositoryVersion | Data | QuantityRepositoryVersion | ||
| DiscPremQtyScheduleUniqueID | Data | DiscPremQtyScheduleUniqueID | Schedule ID | |
| DiscPremQtySchedValdtyVersion | Data | DiscPremQtySchedValdtyVersion | Validity Version | |
| DiscPremQtyScheduleVersion | Data | DiscPremQtyScheduleVersion | Sch Version | |
| DiscPremQtyScheduleType | Data | DiscPremQtyScheduleType | ||
| EndOfDayTimestamp | Data | EndOfDayTimestamp | ||
| PreviousEndOfDayTimestamp | Data | PreviousEndOfDayTimestamp | ||
| BegingingBookBalancetTimestamp | Data | BegingingBookBalancetTimestamp | ||
| LicenseStatus | Data | LicenseStatus | ||
| PlantGroup | Data | PlantGroup | ||
| ApplicationStatus | Data | ApplicationStatus | ||
| WarehouseReceiptType | Data | WarehouseReceiptType | ||
| WarehouseReceiptNo | Data | WarehouseReceiptNo | ||
| ObligationType | Data | ObligationType | ||
| StorageAgreement | Data | StorageAgreement | ||
| StorageAgreementItem | Data | StorageAgreementItem | ||
| VendorClassification | I_BPCounterPartyType | BusinessPartnerClassification | BPClassType | |
| IsHandleLossRsrvRecieptFwd | Data | IsHandleLossRsrvRecieptFwd | ||
| IsHandleLossRsrvCancellFwd | Data | IsHandleLossRsrvCancellFwd | ||
| DailyGrainRptCushionPercentage | Data | DailyGrainRptCushionPercentage | ||
| TradingContract | Data | TradingContract | ||
| TradingContractItem | Data | TradingContractItem | Item Number | |
| TradingContractStatus | Data | TradingContractStatus | ||
| ApplicationDocType | Data | ApplicationDocType | ||
| LoadDataCaptureApplInstr | Data | LoadDataCaptureApplInstr | ||
| ApplicationGuid | Data | ApplicationGuid | ||
| ApplicationVersion | Data | ApplicationVersion | ||
| ApplicationDocCreationDate | Data | ApplicationDocCreationDate | ||
| ApplicationDocAppliedDate | Data | ApplicationDocAppliedDate | ||
| ApplicationDocSettlementDate | Data | ApplicationDocSettlementDate | ||
| ContractIsConfirmed | Data | ContractIsConfirmed | ||
| Supplier | Data | Supplier | Supplier | |
| SubstitutedMaterial | Data | SubstitutedMaterial | ||
| SubstitutedPlant | Data | SubstitutedPlant | ||
| IsSubstitutedRecord | Data | IsSubstitutedRecord | ||
| SttlInvoicePaymentDateTime | Data | SttlInvoicePaymentDateTime | ||
| DailyGrainReportDisplayUnit | DailyGrainReportDisplayUnit | |||
| DailyGrainReportType | DailyGrainReportType | |||
| DailyGrainReportDate | DailyGrainReportDate | |||
| partner_guid | I_VendAssgToBP | PartnerUUID | Partner GUID | |
| BusinessPartnerNumber | I_ACMBusPartData | BusinessPartnerNumber | With Partner | |
| BusinessPartnerClassification | I_BPCounterPartyType | BusinessPartnerClassification | BPClassType | |
| SourceDocumentItemChar | ||||
| A2CommodityQuantityInBaseUnit | Data | A2CommodityQuantityInBaseUnit | ||
| A2NetPriceExpsrQtyInBaseUnit | Data | A2NetPriceExpsrQtyInBaseUnit | ||
| GrossQuantity | Data | GrossQuantity |
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_DGR_KF_BPClassification.
-- 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: PDGRKFBPCLASS
-- Parameters: P_CompanyCode : bukrs, P_DisplayUnitOfMeasure : cds_dgr_display_uom, P_DailyGrainReportType : cds_dgr_report_type, P_DailyGrainReportDate : cds_dgr_date
CREATE VIEW P_DGR_KF_BPClassification AS
SELECT
Data.PricingKey AS PricingKey,
Data.PricingDocumentItem AS PricingDocumentItem,
Data.ConditionType AS ConditionType,
Data.SubConditionType AS SubConditionType,
Data.VersStockRecordUUID AS VersStockRecordUUID,
Data.SourceDocument AS SourceDocument,
Data.SourceDocumentItem AS SourceDocumentItem,
Data.QuantityHistorySequenceNumber AS QuantityHistorySequenceNumber,
Data.HandleLossRsrvId AS HandleLossRsrvId,
Data.HandleLossRsrvItem AS HandleLossRsrvItem,
Data.HandleLossRsrvVersion AS HandleLossRsrvVersion,
Data.DGRDataSourceType AS DGRDataSourceType,
Data.DGRQuantiyType AS DGRQuantiyType,
Data.CompanyCode AS CompanyCode,
Data.Plant AS Plant,
Data.StorageLocation AS StorageLocation,
Data.SourceDocumentBusObjType AS SourceDocumentBusObjType,
Data.Material AS Material,
Data.PhysicalCommodity AS PhysicalCommodity,
Data.MTMDataSourceType AS MTMDataSourceType,
Data.SourceTransactionEventDateTime AS SourceTransactionEventDateTime,
Data.SourceTransacEventEndDateTime AS SourceTransacEventEndDateTime,
cast(round(Data.CommodityExposureQuantity, 3) as abap.quan( 17, 3) ) AS CommodityExposureQuantity,
Data.CommodityExposureUnit AS CommodityExposureUnit,
Data.QuantitySign AS QuantitySign,
Data.LoadDataCaptureObjectID AS LoadDataCaptureObjectID,
Data.LoadDataCaptureEventType AS LoadDataCaptureEventType,
Data.QuantityRepositoryUUID AS QuantityRepositoryUUID,
Data.QuantityRepositoryVersion AS QuantityRepositoryVersion,
Data.DiscPremQtyScheduleUniqueID AS DiscPremQtyScheduleUniqueID,
Data.DiscPremQtySchedValdtyVersion AS DiscPremQtySchedValdtyVersion,
Data.DiscPremQtyScheduleVersion AS DiscPremQtyScheduleVersion,
Data.DiscPremQtyScheduleType AS DiscPremQtyScheduleType,
Data.EndOfDayTimestamp AS EndOfDayTimestamp,
Data.PreviousEndOfDayTimestamp AS PreviousEndOfDayTimestamp,
Data.BegingingBookBalancetTimestamp AS BegingingBookBalancetTimestamp,
Data.LicenseStatus AS LicenseStatus,
Data.PlantGroup AS PlantGroup,
Data.ApplicationStatus AS ApplicationStatus,
Data.WarehouseReceiptType AS WarehouseReceiptType,
Data.WarehouseReceiptNo AS WarehouseReceiptNo,
Data.ObligationType AS ObligationType,
Data.StorageAgreement AS StorageAgreement,
Data.StorageAgreementItem AS StorageAgreementItem,
BPClassificationData.BusinessPartnerClassification AS VendorClassification,
Data.IsHandleLossRsrvRecieptFwd AS IsHandleLossRsrvRecieptFwd,
Data.IsHandleLossRsrvCancellFwd AS IsHandleLossRsrvCancellFwd,
Data.DailyGrainRptCushionPercentage AS DailyGrainRptCushionPercentage,
Data.TradingContract AS TradingContract,
Data.TradingContractItem AS TradingContractItem,
Data.TradingContractStatus AS TradingContractStatus,
Data.ApplicationDocType AS ApplicationDocType,
Data.LoadDataCaptureApplInstr AS LoadDataCaptureApplInstr,
Data.ApplicationGuid AS ApplicationGuid,
Data.ApplicationVersion AS ApplicationVersion,
Data.ApplicationDocCreationDate AS ApplicationDocCreationDate,
Data.ApplicationDocAppliedDate AS ApplicationDocAppliedDate,
Data.ApplicationDocSettlementDate AS ApplicationDocSettlementDate,
Data.ContractIsConfirmed AS ContractIsConfirmed,
Data.Supplier AS Supplier,
Data.SubstitutedMaterial AS SubstitutedMaterial,
Data.SubstitutedPlant AS SubstitutedPlant,
Data.IsSubstitutedRecord AS IsSubstitutedRecord,
Data.SttlInvoicePaymentDateTime AS SttlInvoicePaymentDateTime,
DailyGrainReportDisplayUnit,
DailyGrainReportType,
DailyGrainReportDate,
BPGuidData.PartnerUUID AS partner_guid,
BPData.BusinessPartnerNumber AS BusinessPartnerNumber,
BPClassificationData.BusinessPartnerClassification AS BusinessPartnerClassification,
cast(Data.SourceDocumentItem as abap.char( 6 )) AS SourceDocumentItemChar,
Data.A2CommodityQuantityInBaseUnit AS A2CommodityQuantityInBaseUnit,
Data.A2NetPriceExpsrQtyInBaseUnit AS A2NetPriceExpsrQtyInBaseUnit,
Data.GrossQuantity AS GrossQuantity
FROM P_DGR_KF_UpdateExposureQty
LEFT OUTER JOIN I_VendAssgToBP AS BPGuidData ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_ACMBusPartData AS BPData ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_BPCounterPartyType AS BPClassificationData ON /* join condition not captured in parsed metadata */
;
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