Fclm_Mm_Pohistdcost
Purchasing Document Delivery Cost
Fclm_Mm_Pohistdcost is a CDS View that provides data about "Purchasing Document Delivery Cost" in SAP S/4HANA. It reads from 2 data sources (ekbz, ekbzh) and exposes 52 fields. Part of development package FCLM_REUSE.
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | VFCLMMMPOHTC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| EndUserText.label | Purchasing Document Delivery Cost | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ObjectModel.usageType.serviceQuality | #P | view |
Fields (52)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| mandt | mandt | Editing Client | ||
| PurchaseOrder | ebeln | Source PurchDoc | ||
| PurchaseOrderItem | ebelp | Item pur. doc. | ||
| ConditionStep | stunr | Step Number | ||
| ConditionCount | zaehk | Counter | ||
| PurchaseOrderTransactionType | vgabe | Transact. Type | ||
| FiscalYear | gjahr | Settlement Year | ||
| AccountingDocument | belnr | SD Document | ||
| AccountingDocumentItem | buzei | Posting View Item | ||
| PurchaseOrderHistCategory | bewtp | PO History Cat. | ||
| PostingDate | budat | Posting Date | ||
| PurchaseOrderItemQuantity | menge | WarrCountValue | ||
| PurOrdAmountInCompanyCodeCrcy | dmbtr | Loc. amount | ||
| PurOrderItemAmountInPurOrdCrcy | wrbtr | Gross Amount | ||
| CompanyCodeCurrency | waers | Transaction Currency | ||
| GRIRAcctClrgAmtInCoCodeCrcy | arewr | Ord.GRIR.Val | ||
| QuantityDebitCreditCode | shkzg | Returns | ||
| DocumentReferenceID | xblnr | Reference | ||
| Supplier | lifnr | Vendor no. | ||
| InvoiceAmtInCoCodeCrcy | reewr | Ord.Set.Value | ||
| InvoiceAmountInFrgnCurrency | refwr | Inv.Value in FC | ||
| PurchaseOrderQty | bpmng | Qty. in OPUn | ||
| GRIRAcctClrgAmtInTransacCrcy | areww | GR/IR clr.value | ||
| AmountDebitCreditCode | shkko | Debit/Credit | ||
| GRIRAcctClrgAmtInOrdTrnsacCrcy | arewb | GR/IR clr.value | ||
| InvoiceAmtInPurgDocTransacCrcy | rewrb | FC invoice amnt | ||
| PurchaseOrder | ebeln | Source PurchDoc | ||
| PurchaseOrderItem | ebelp | Item pur. doc. | ||
| ConditionStep | stunr | Step Number | ||
| ConditionCount | zaehk | Counter | ||
| PurchaseOrderTransactionType | vgabe | Transact. Type | ||
| FiscalYear | gjahr | Settlement Year | ||
| AccountingDocument | belnr | SD Document | ||
| AccountingDocumentItem | buzei | Posting View Item | ||
| PurchaseOrderHistCategory | bewtp | PO History Cat. | ||
| PostingDate | budat | Posting Date | ||
| PurchaseOrderItemQuantity | menge | WarrCountValue | ||
| PurOrdAmountInCompanyCodeCrcy | dmbtr | Loc. amount | ||
| PurOrderItemAmountInPurOrdCrcy | wrbtr | Gross Amount | ||
| CompanyCodeCurrency | waers | Transaction Currency | ||
| GRIRAcctClrgAmtInCoCodeCrcy | arewr | Ord.GRIR.Val | ||
| QuantityDebitCreditCode | shkzg | Returns | ||
| DocumentReferenceID | xblnr | Reference | ||
| Supplier | lifnr | Vendor no. | ||
| InvoiceAmtInCoCodeCrcy | reewr | Ord.Set.Value | ||
| InvoiceAmountInFrgnCurrency | refwr | Inv.Value in FC | ||
| PurchaseOrderQty | bpmng | Qty. in OPUn | ||
| GRIRAcctClrgAmtInTransacCrcy | areww | GR/IR clr.value | ||
| AmountDebitCreditCode | shkko | Debit/Credit | ||
| GRIRAcctClrgAmtInOrdTrnsacCrcy | arewb | GR/IR clr.value | ||
| InvoiceAmtInPurgDocTransacCrcy | rewrb | FC invoice amnt | ||
| ConditionType | kschl | Tax Item Type |
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 Fclm_Mm_Pohistdcost.
-- 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: VFCLMMMPOHTC
CREATE VIEW Fclm_Mm_Pohistdcost AS
SELECT
mandt,
ebeln AS PurchaseOrder,
ebelp AS PurchaseOrderItem,
stunr AS ConditionStep,
zaehk AS ConditionCount,
vgabe AS PurchaseOrderTransactionType,
gjahr AS FiscalYear,
belnr AS AccountingDocument,
buzei AS AccountingDocumentItem,
bewtp AS PurchaseOrderHistCategory,
budat AS PostingDate,
menge AS PurchaseOrderItemQuantity,
dmbtr AS PurOrdAmountInCompanyCodeCrcy,
wrbtr AS PurOrderItemAmountInPurOrdCrcy,
waers AS CompanyCodeCurrency,
arewr AS GRIRAcctClrgAmtInCoCodeCrcy,
shkzg AS QuantityDebitCreditCode,
xblnr AS DocumentReferenceID,
lifnr AS Supplier,
reewr AS InvoiceAmtInCoCodeCrcy,
refwr AS InvoiceAmountInFrgnCurrency,
bpmng AS PurchaseOrderQty,
areww AS GRIRAcctClrgAmtInTransacCrcy,
shkko AS AmountDebitCreditCode,
arewb AS GRIRAcctClrgAmtInOrdTrnsacCrcy,
rewrb AS InvoiceAmtInPurgDocTransacCrcy,
kschl AS ConditionType
FROM ekbz
-- UNION ALL with additional select branch(es): ekbzh
;
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