I_RFM_SlsOrdPrgrsMntrHdr
Sales Order header details
I_RFM_SlsOrdPrgrsMntrHdr is a Composite CDS View that provides data about "Sales Order header details" in SAP S/4HANA. It reads from 1 data source (I_RFM_SalesDocument) and exposes 118 fields with key field SalesOrder. It has 2 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_RFM_SalesDocument | Header | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_SitnInstceIndicator | _SitnInstceIndicator | $projection.SalesOrder = _SitnInstceIndicator.SitnInstceAnchorObjectKey and _SitnInstceIndicator.SitnDefAnchorObject = 'SalesOrder' |
| [0..1] | C_SalesDocumentUserVH | _CreatedByUser | $projection.CreatedByUser = _CreatedByUser.UserID |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #COMPOSITE | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AbapCatalog.sqlViewName | IRFMSOPMHDR | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ObjectModel.compositionRoot | true | view | |
| ObjectModel.representativeKey | SalesOrder | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| EndUserText.label | Sales Order header details | view |
Fields (118)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SalesOrder | SalesDocument | SD Document | |
| SDDocumentCategory | SDDocumentCategory | Document Cat. | ||
| RequestedDeliveryDate | RequestedDeliveryDate | Requested Delivery Date | ||
| SoldToParty | SoldToParty | Sold-to Party | ||
| SalesDocumentType | SalesDocumentType | Sales Doc. Type | ||
| 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 | Cancel Date | ||
| PricingDate | PricingDate | Pricing Date | ||
| SalesDocumentDate | SalesDocumentDate | Document Date | ||
| TotalNetAmount | TotalNetAmount | Total Net Amount | ||
| TransactionCurrency | TransactionCurrency | Transaction Currency | ||
| SDDocumentReason | SDDocumentReason | Order Reason | ||
| CustomerPurchaseOrderType | CustomerPurchaseOrderType | Pur. Ord. Type | ||
| 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 | Department | ||
| 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 | Overall Status | ||
| OverallSDDocumentRejectionSts | OverallSDDocumentRejectionSts | Rejection Sts | ||
| OverallTotalDeliveryStatus | OverallTotalDeliveryStatus | Ovrl Deliv. Sts | ||
| OverallOrdReltdBillgStatus | OverallOrdReltdBillgStatus | Ord.Rel.BillgSt | ||
| TotalCreditCheckStatus | TotalCreditCheckStatus | OverallCredStat | ||
| TotalBlockStatus | TotalBlockStatus | Ovrl Block Sts | ||
| OverallPricingIncompletionSts | OverallPricingIncompletionSts | Pricing – Item | ||
| HdrGeneralIncompletionStatus | HdrGeneralIncompletionStatus | Overall Header | ||
| HeaderDelivIncompletionStatus | HeaderDelivIncompletionStatus | Delivery – Item | ||
| HeaderBillgIncompletionStatus | HeaderBillgIncompletionStatus | Billing Doc. | ||
| OvrlItmGeneralIncompletionSts | OvrlItmGeneralIncompletionSts | All Items | ||
| OvrlItmDelivIncompletionSts | OvrlItmDelivIncompletionSts | Deliv–All Itms | ||
| OvrlItmBillingIncompletionSts | OvrlItmBillingIncompletionSts | Billg–All Items | ||
| 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 | Customer Grp 6 | ||
| RetailAdditionalCustomerGrp7 | RetailAdditionalCustomerGrp7 | Customer Grp 7 | ||
| RetailAdditionalCustomerGrp8 | RetailAdditionalCustomerGrp8 | Customer Grp 8 | ||
| RetailAdditionalCustomerGrp9 | RetailAdditionalCustomerGrp9 | Customer Grp 9 | ||
| RetailAdditionalCustomerGrp10 | RetailAdditionalCustomerGrp10 | Customer Grp 10 | ||
| 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 | _SitnInstceIndicator | SitnNumberOfInstances | ||
| FormattedSalesDocumentItem | ||||
| RequirementDocumentNumber | ||||
| _AdditionalCustomerGroup1 | _AdditionalCustomerGroup1 | |||
| _AdditionalCustomerGroup2 | _AdditionalCustomerGroup2 | |||
| _AdditionalCustomerGroup3 | _AdditionalCustomerGroup3 | |||
| _AdditionalCustomerGroup4 | _AdditionalCustomerGroup4 | |||
| _AdditionalCustomerGroup5 | _AdditionalCustomerGroup5 | |||
| _ContactPersonStdDepartment | _ContactPersonStdDepartment | |||
| _CreatedByUser | _CreatedByUser | |||
| _CreditControlArea | _CreditControlArea | |||
| _CreditControlAreaText | _CreditControlAreaText | |||
| _CustomerGroup | _CustomerGroup | |||
| _CustomerPaymentTerms | _CustomerPaymentTerms | |||
| _CustomerPriceGroup | _CustomerPriceGroup | |||
| _CustomerPurchaseOrderType | _CustomerPurchaseOrderType | |||
| _DeliveryBlockReason | _DeliveryBlockReason | |||
| _DistributionChannel | _DistributionChannel | |||
| _EngagementProjectItem | _EngagementProjectItem | |||
| _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 |
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 I_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 I_RFM_SlsOrdPrgrsMntrHdr AS
SELECT
SalesDocument AS SalesOrder,
SDDocumentCategory,
RequestedDeliveryDate,
SoldToParty,
SalesDocumentType,
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,
_SitnInstceIndicator.SitnNumberOfInstances AS SitnNumberOfInstances,
concat( Header.SalesDocument,concat( '/', '000000' ) ) AS FormattedSalesDocumentItem,
cast( Header.SalesDocument as arun_aufn ) AS RequirementDocumentNumber
FROM I_RFM_SalesDocument AS Header
LEFT OUTER JOIN I_SitnInstceIndicator AS _SitnInstceIndicator ON SalesOrder = _SitnInstceIndicator.SitnInstceAnchorObjectKey AND _SitnInstceIndicator.SitnDefAnchorObject = 'SalesOrder' -- association [0..1]
LEFT OUTER JOIN C_SalesDocumentUserVH AS _CreatedByUser ON CreatedByUser = _CreatedByUser.UserID -- 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