C_RFM_SlsOrdPrgrsMntrHdr
Sales Order
C_RFM_SlsOrdPrgrsMntrHdr is a Consumption CDS View that provides data about "Sales Order" in SAP S/4HANA. It reads from 1 data source (I_RFM_SlsOrdPrgrsMntrHdr) and exposes 142 fields with key field SalesOrder. It has 6 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_RFM_SlsOrdPrgrsMntrHdr | I_RFM_SlsOrdPrgrsMntrHdr | from |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..*] | C_RFM_SlsOrdPrgrsMntrItm | _Item | $projection.SalesOrder = _Item.SalesOrder |
| [0..*] | C_RFM_SlsOrdPrgrsMntrGnrcItm | _GnrcItem | $projection.SalesOrder = _GnrcItem.SalesOrder |
| [0..*] | C_RFM_SlsOrdPrgrsMntrSupHdr | _SupHdr | $projection.SalesOrder = _SupHdr.SalesOrder |
| [0..*] | C_RFM_SlsOrdPrgrsMntrFllwOnHdr | _FollowOnDocHdr | $projection.SalesOrder = _FollowOnDocHdr.SalesOrder |
| [1..*] | I_RFM_MaSaDoSlsOrdItmAggrg | _AggregatedScheduleLine | $projection.SalesOrder = _AggregatedScheduleLine.SalesDocument |
| [0..1] | I_DeliveryPriority | _DeliveryPriority | $projection.DeliveryPriority = _DeliveryPriority.DeliveryPriority |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.viewType | #CONSUMPTION | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| Metadata.allowExtensions | true | view | |
| EndUserText.label | Sales Order | view |
Fields (142)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SalesOrder | SalesOrder | SD Document | |
| SDDocumentCategory | SDDocumentCategory | Document Cat. | ||
| SoldToParty | SoldToParty | Sold-to Party | ||
| RequestedDeliveryDate | RequestedDeliveryDate | Requested Delivery Date | ||
| SalesDocumentType | SalesDocumentType | Sales Doc. Type | ||
| SalesDocumentTypeName | ||||
| SalesOrganization | SalesOrganization | Sales Organization | ||
| DistributionChannel | DistributionChannel | RefDistCh-Cust/Mat. | ||
| OrganizationDivision | OrganizationDivision | Org. Division | ||
| SalesGroup | SalesGroup | Sales Group | ||
| SalesOffice | SalesOffice | Sales Office | ||
| SalesDistrict | SalesDistrict | Sales District | ||
| CustomerGroup | CustomerGroup | Customer Group | ||
| CustomerPriceGroup | CustomerPriceGroup | CustPrice Group | ||
| CreatedByUser | CreatedByUser | User Name | ||
| CreationDate | CreationDate | Time Stamp | ||
| FashionCancelDate | FashionCancelDate | |||
| PricingDate | PricingDate | Pricing Date | ||
| SalesDocumentDate | SalesDocumentDate | Document Date | ||
| TotalNetAmount | TotalNetAmount | Total Net Amount | ||
| TransactionCurrency | TransactionCurrency | Transaction Currency | ||
| SDDocumentReason | SDDocumentReason | Order Reason | ||
| CustomerPurchaseOrderType | CustomerPurchaseOrderType | |||
| CustomerPurchaseOrderDate | CustomerPurchaseOrderDate | Purchase Order Date | ||
| PurchaseOrderByCustomer | PurchaseOrderByCustomer | Purchase Order Number | ||
| ShipToParty | ShipToParty | Ship-To Party (obsolete) | ||
| ShippingType | ShippingType | Shipping Type | ||
| ShippingCondition | ShippingCondition | Shipping Conditions | ||
| DeliveryBlockReason | DeliveryBlockReason | Delivery Block | ||
| DepartmentClassificationByCust | DepartmentClassificationByCust | |||
| IncotermsClassification | IncotermsClassification | Incoterms | ||
| IncotermsLocation1 | IncotermsLocation1 | Inco. Location1 | ||
| CustomerPaymentTerms | CustomerPaymentTerms | Pyt Terms | ||
| BillingDocumentDate | BillingDocumentDate | Billing Date | ||
| HeaderBillingBlockReason | HeaderBillingBlockReason | Billing Block | ||
| CreditControlArea | CreditControlArea | Credit Control Area | ||
| OverallSDProcessStatus | OverallSDProcessStatus | |||
| OverallSDDocumentRejectionSts | OverallSDDocumentRejectionSts | |||
| OverallTotalDeliveryStatus | OverallTotalDeliveryStatus | |||
| OverallOrdReltdBillgStatus | OverallOrdReltdBillgStatus | |||
| TotalCreditCheckStatus | TotalCreditCheckStatus | |||
| TotalBlockStatus | TotalBlockStatus | |||
| OverallPricingIncompletionSts | OverallPricingIncompletionSts | |||
| HdrGeneralIncompletionStatus | HdrGeneralIncompletionStatus | |||
| HeaderDelivIncompletionStatus | HeaderDelivIncompletionStatus | |||
| HeaderBillgIncompletionStatus | HeaderBillgIncompletionStatus | |||
| OvrlItmGeneralIncompletionSts | OvrlItmGeneralIncompletionSts | |||
| OvrlItmDelivIncompletionSts | OvrlItmDelivIncompletionSts | |||
| OvrlItmBillingIncompletionSts | OvrlItmBillingIncompletionSts | |||
| AdditionalCustomerGroup1 | AdditionalCustomerGroup1 | Customer Grp 1 | ||
| AdditionalCustomerGroup2 | AdditionalCustomerGroup2 | Customer Grp 2 | ||
| AdditionalCustomerGroup3 | AdditionalCustomerGroup3 | Customer Grp 3 | ||
| AdditionalCustomerGroup4 | AdditionalCustomerGroup4 | Customer Grp 4 | ||
| AdditionalCustomerGroup5 | AdditionalCustomerGroup5 | Customer Grp 5 | ||
| RetailAdditionalCustomerGrp6 | RetailAdditionalCustomerGrp6 | |||
| RetailAdditionalCustomerGrp7 | RetailAdditionalCustomerGrp7 | |||
| RetailAdditionalCustomerGrp8 | RetailAdditionalCustomerGrp8 | |||
| RetailAdditionalCustomerGrp9 | RetailAdditionalCustomerGrp9 | |||
| RetailAdditionalCustomerGrp10 | RetailAdditionalCustomerGrp10 | |||
| CustomerConditionGroup1 | CustomerConditionGroup1 | Condition grp 1 | ||
| CustomerConditionGroup2 | CustomerConditionGroup2 | Condition grp 2 | ||
| CustomerConditionGroup3 | CustomerConditionGroup3 | Condition grp 3 | ||
| CustomerConditionGroup4 | CustomerConditionGroup4 | Condition grp 4 | ||
| CustomerConditionGroup5 | CustomerConditionGroup5 | Condition grp 5 | ||
| SitnNumberOfInstances | SitnNumberOfInstances | |||
| RequirementDocumentNumber | RequirementDocumentNumber | |||
| FormattedSalesDocumentItem | FormattedSalesDocumentItem | |||
| ConfdReqdRqmtQtyRatioPct | 0 | |||
| DlvrdReqdRqmtQtyRatioPct | 0 | |||
| FulfillmentProcessPhase | ||||
| FulfillmentProcessPhaseDesc | ||||
| RFMBillingQtyFlfmtPct | ||||
| RFMDlvrdQtyFlfmtPct | ||||
| RFMSupplyQtyFlfmtPct | ||||
| InventorySpecialStockType | ||||
| FirstDeliveryDate | ||||
| Material | ||||
| ProductGroup | ||||
| Plant | ||||
| ShippingPoint | ||||
| DeliveryPriority | ||||
| ProductSeasonYear | ||||
| ProductSeason | ||||
| ProductCollection | ||||
| ProductTheme | ||||
| _AdditionalCustomerGroup1 | _AdditionalCustomerGroup1 | |||
| _AdditionalCustomerGroup2 | _AdditionalCustomerGroup2 | |||
| _AdditionalCustomerGroup3 | _AdditionalCustomerGroup3 | |||
| _AdditionalCustomerGroup4 | _AdditionalCustomerGroup4 | |||
| _AdditionalCustomerGroup5 | _AdditionalCustomerGroup5 | |||
| _AggregatedScheduleLine | _AggregatedScheduleLine | |||
| _ContactPersonStdDepartment | _ContactPersonStdDepartment | |||
| _CreatedByUser | _CreatedByUser | |||
| _CreditControlArea | _CreditControlArea | |||
| _CustomerGroup | _CustomerGroup | |||
| _CustomerPaymentTerms | _CustomerPaymentTerms | |||
| _CustomerPriceGroup | _CustomerPriceGroup | |||
| _CustomerPurchaseOrderType | _CustomerPurchaseOrderType | |||
| _DeliveryBlockReason | _DeliveryBlockReason | |||
| _DistributionChannel | _DistributionChannel | |||
| _EngagementProjectItem | _EngagementProjectItem | |||
| _FollowOnDocHdr | _FollowOnDocHdr | |||
| _HdrGeneralIncompletionStatus | _HdrGeneralIncompletionStatus | |||
| _HeaderBillgIncompletionStatus | _HeaderBillgIncompletionStatus | |||
| _HeaderBillingBlockReason | _HeaderBillingBlockReason | |||
| _HeaderDelivIncompletionStatus | _HeaderDelivIncompletionStatus | |||
| _IncotermsClassification | _IncotermsClassification | |||
| _ItemBasic | _ItemBasic | |||
| _OrganizationDivision | _OrganizationDivision | |||
| _OverallOrdReltdBillgStatus | _OverallOrdReltdBillgStatus | |||
| _OverallPricingIncompletionSts | _OverallPricingIncompletionSts | |||
| _OverallSDDocumentRejectionSts | _OverallSDDocumentRejectionSts | |||
| _OverallSDProcessStatus | _OverallSDProcessStatus | |||
| _OverallTotalDeliveryStatus | _OverallTotalDeliveryStatus | |||
| _OvrlItmBillingIncompletionSts | _OvrlItmBillingIncompletionSts | |||
| _OvrlItmDelivIncompletionSts | _OvrlItmDelivIncompletionSts | |||
| _OvrlItmGeneralIncompletionSts | _OvrlItmGeneralIncompletionSts | |||
| _PartFuncMarkFor | _PartFuncMarkFor | |||
| _RetailAddlCustGrp10 | _RetailAddlCustGrp10 | |||
| _RetailAddlCustGrp6 | _RetailAddlCustGrp6 | |||
| _RetailAddlCustGrp7 | _RetailAddlCustGrp7 | |||
| _RetailAddlCustGrp8 | _RetailAddlCustGrp8 | |||
| _RetailAddlCustGrp9 | _RetailAddlCustGrp9 | |||
| _SalesArea | _SalesArea | |||
| _SalesDistrict | _SalesDistrict | |||
| _SalesDocumentType | _SalesDocumentType | |||
| _SalesGroup | _SalesGroup | |||
| _SalesOffice | _SalesOffice | |||
| _SalesOrganization | _SalesOrganization | |||
| _SDDocumentCategory | _SDDocumentCategory | |||
| _SDDocumentReason | _SDDocumentReason | |||
| _ShippingCondition | _ShippingCondition | |||
| _ShippingType | _ShippingType | |||
| _ShipToParty | _ShipToParty | |||
| _SoldToParty | _SoldToParty | |||
| _TotalBlockStatus | _TotalBlockStatus | |||
| _TotalCreditCheckStatus | _TotalCreditCheckStatus | |||
| _TransactionCurrency | _TransactionCurrency | |||
| _Item | _Item | |||
| _GnrcItem | _GnrcItem | |||
| _DeliveryPriority | _DeliveryPriority | |||
| _SupHdr | _SupHdr |
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 C_RFM_SlsOrdPrgrsMntrHdr.
-- 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 C_RFM_SlsOrdPrgrsMntrHdr AS
SELECT
SalesOrder,
SDDocumentCategory,
SoldToParty,
RequestedDeliveryDate,
SalesDocumentType,
_SalesDocumentType._Text[1:Language=$session.system_language].SalesDocumentTypeName AS SalesDocumentTypeName,
SalesOrganization,
DistributionChannel,
OrganizationDivision,
SalesGroup,
SalesOffice,
SalesDistrict,
CustomerGroup,
CustomerPriceGroup,
CreatedByUser,
CreationDate,
FashionCancelDate,
PricingDate,
SalesDocumentDate,
TotalNetAmount,
TransactionCurrency,
SDDocumentReason,
CustomerPurchaseOrderType,
CustomerPurchaseOrderDate,
PurchaseOrderByCustomer,
ShipToParty,
ShippingType,
ShippingCondition,
DeliveryBlockReason,
DepartmentClassificationByCust,
IncotermsClassification,
IncotermsLocation1,
CustomerPaymentTerms,
BillingDocumentDate,
HeaderBillingBlockReason,
CreditControlArea,
OverallSDProcessStatus,
OverallSDDocumentRejectionSts,
OverallTotalDeliveryStatus,
OverallOrdReltdBillgStatus,
TotalCreditCheckStatus,
TotalBlockStatus,
OverallPricingIncompletionSts,
HdrGeneralIncompletionStatus,
HeaderDelivIncompletionStatus,
HeaderBillgIncompletionStatus,
OvrlItmGeneralIncompletionSts,
OvrlItmDelivIncompletionSts,
OvrlItmBillingIncompletionSts,
AdditionalCustomerGroup1,
AdditionalCustomerGroup2,
AdditionalCustomerGroup3,
AdditionalCustomerGroup4,
AdditionalCustomerGroup5,
RetailAdditionalCustomerGrp6,
RetailAdditionalCustomerGrp7,
RetailAdditionalCustomerGrp8,
RetailAdditionalCustomerGrp9,
RetailAdditionalCustomerGrp10,
CustomerConditionGroup1,
CustomerConditionGroup2,
CustomerConditionGroup3,
CustomerConditionGroup4,
CustomerConditionGroup5,
SitnNumberOfInstances,
RequirementDocumentNumber,
FormattedSalesDocumentItem,
0 AS ConfdReqdRqmtQtyRatioPct,
0 AS DlvrdReqdRqmtQtyRatioPct,
cast( '' as rfm_so_prgrs_flfmt_proc_phse ) AS FulfillmentProcessPhase,
cast( '' as char30 ) AS FulfillmentProcessPhaseDesc,
cast( 0 as arun_prop_subgroup) AS RFMBillingQtyFlfmtPct,
cast( 0 as arun_prop_subgroup) AS RFMDlvrdQtyFlfmtPct,
cast( 0 as arun_prop_subgroup) AS RFMSupplyQtyFlfmtPct,
cast('' as sobkz ) AS InventorySpecialStockType,
cast ('00000000' as eindt ) AS FirstDeliveryDate,
cast('' as matnr) AS Material,
cast ( '' as productgroup ) AS ProductGroup,
cast ( '' as werks_d ) AS Plant,
cast ( '' as vstel ) AS ShippingPoint,
cast ( '' as lprio ) AS DeliveryPriority,
cast ( '' as fsh_saisj ) AS ProductSeasonYear,
cast ( '' as fsh_saiso ) AS ProductSeason,
cast ( '' as fsh_collection ) AS ProductCollection,
cast ( '' as fsh_theme ) AS ProductTheme
FROM I_RFM_SlsOrdPrgrsMntrHdr
LEFT OUTER JOIN C_RFM_SlsOrdPrgrsMntrItm AS _Item ON SalesOrder = _Item.SalesOrder -- association [1..*]
LEFT OUTER JOIN C_RFM_SlsOrdPrgrsMntrGnrcItm AS _GnrcItem ON SalesOrder = _GnrcItem.SalesOrder -- association [0..*]
LEFT OUTER JOIN C_RFM_SlsOrdPrgrsMntrSupHdr AS _SupHdr ON SalesOrder = _SupHdr.SalesOrder -- association [0..*]
LEFT OUTER JOIN C_RFM_SlsOrdPrgrsMntrFllwOnHdr AS _FollowOnDocHdr ON SalesOrder = _FollowOnDocHdr.SalesOrder -- association [0..*]
LEFT OUTER JOIN I_RFM_MaSaDoSlsOrdItmAggrg AS _AggregatedScheduleLine ON SalesOrder = _AggregatedScheduleLine.SalesDocument -- association [1..*]
LEFT OUTER JOIN I_DeliveryPriority AS _DeliveryPriority ON DeliveryPriority = _DeliveryPriority.DeliveryPriority -- association [0..1]
;
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