R_SalesContractItemTP
Sales Contract Item - TP
R_SalesContractItemTP is a Transactional CDS View that provides data about "Sales Contract Item - TP" in SAP S/4HANA. It reads from 1 data source (I_SalesContractItem) and exposes 150 fields with key fields SalesContract, SalesContractItem. It has 10 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_SalesContractItem | SalesContractItem | from |
Associations (10)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_SlsDocItemEnhancedFields | _ItemEnhancedFields | $projection.SalesContract = _ItemEnhancedFields.SalesDocument and $projection.SalesContractItem = _ItemEnhancedFields.SalesDocumentItem |
| [0..1] | I_SalesDocumentItemCategory | _HigherLevelItemCategory | $projection.HigherLevelItemCategory = _HigherLevelItemCategory.SalesDocumentItemCategory |
| [0..1] | I_ProductPricingGroup | _ProductPricingGroup | $projection.MaterialPricingGroup = _ProductPricingGroup.ProductPricingGroup |
| [0..1] | I_ControllingArea | _ControllingArea | $projection.ControllingArea = _ControllingArea.ControllingArea |
| [0..1] | I_WBSElementByExternalID | _WBSElementExternalID | $projection.WBSElementExternalID = _WBSElementExternalID.WBSElementExternalID |
| [1] | E_SalesDocumentItemBasic | _Extension | $projection.SalesContract = _Extension.SalesDocument and $projection.SalesContractItem = _Extension.SalesDocumentItem |
| [0..*] | R_SalesContractItemPartnerTP | _ItemPartner | |
| [0..*] | R_SalesContractItemTextTP | _ItemText | |
| [0..*] | R_SlsContrItemPricingElementTP | _ItemPricingElement | |
| [0..1] | R_SlsContractItemBillingPlanTP | _ItemBillingPlan | |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| VDM.viewType | #TRANSACTIONAL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Sales Contract Item - TP | view |
Fields (150)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SalesContract | SalesContract | Sales Document | |
| KEY | SalesContractItem | SalesContractItem | Item | |
| SalesContractItemCategory | SalesContractItemCategory | Item Category | ||
| SalesDocumentItemType | SalesDocumentItemType | |||
| CreatedByUser | CreatedByUser | User Name | ||
| CreationDate | CreationDate | Time Stamp | ||
| CreationTime | CreationTime | Time of Change | ||
| LastChangeDate | LastChangeDate | Time Stamp | ||
| Division | Division | Internal Division ID | ||
| Product | Product | Product Sold | ||
| ProductGroup | ProductGroup | Product Sold Group | ||
| MaterialByCustomer | MaterialByCustomer | Customer Mat. | ||
| Batch | Batch | Lot No. | ||
| MaterialPricingGroup | ||||
| Plant | Plant | Valuation Area | ||
| StorageLocation | StorageLocation | StorageLocation | ||
| SalesContractItemText | SalesContractItemText | Item Descr. | ||
| PurchaseOrderByCustomer | PurchaseOrderByCustomer | Purchase Order Number | ||
| OrderQuantity | OrderQuantity | Quantity | ||
| OrderQuantityUnit | OrderQuantityUnit | Sales Unit | ||
| TargetQuantity | TargetQuantity | Target Quantity | ||
| TargetQuantityUnit | TargetQuantityUnit | Target Qty UoM | ||
| RequestedQuantity | RequestedQuantity | Requested Quantity | ||
| ReferenceSDDocument | ReferenceSDDocument | Reference Doc. | ||
| RequestedQuantityUnit | RequestedQuantityUnit | Requested Quantity Unit | ||
| RequestedQuantityInBaseUnit | RequestedQuantityInBaseUnit | Requested Qty | ||
| BaseUnit | BaseUnit | Unit of Measure | ||
| OutlineAgreementTargetAmount | OutlineAgreementTargetAmount | |||
| SalesContractReleasedAmount | SalesContractReleasedAmount | |||
| ItemGrossWeight | ItemGrossWeight | Gross Weight | ||
| ItemNetWeight | ItemNetWeight | Net Weight | ||
| ItemWeightUnit | ItemWeightUnit | Unit of Weight | ||
| ItemVolume | ItemVolume | Volume | ||
| ItemVolumeUnit | ItemVolumeUnit | Volume Unit | ||
| CustomerGroup | CustomerGroup | Customer Group | ||
| SalesDocumentRjcnReason | SalesDocumentRjcnReason | RejectionReason | ||
| ServicesRenderedDate | ServicesRenderedDate | Services Rendered Date | ||
| NetAmount | NetAmount | Stated Amount | ||
| TransactionCurrency | TransactionCurrency | Transaction Currency | ||
| PricingDate | PricingDate | Pricing Date | ||
| NetPriceAmount | NetPriceAmount | Net Price | ||
| NetPriceQuantity | NetPriceQuantity | Price Unit | ||
| NetPriceQuantityUnit | NetPriceQuantityUnit | SettlmtPrcUnit | ||
| TaxAmount | TaxAmount | Tax Amt in Rptg Crcy | ||
| CostAmount | CostAmount | |||
| ShippingType | ShippingType | Shipping Type | ||
| ShippingPoint | ShippingPoint | Shipping Point | ||
| IncotermsClassification | IncotermsClassification | Incoterms | ||
| IncotermsTransferLocation | IncotermsTransferLocation | Incoterms 2 | ||
| IncotermsLocation1 | IncotermsLocation1 | Inco. Location1 | ||
| IncotermsLocation2 | IncotermsLocation2 | Inco. Location2 | ||
| IncotermsVersion | IncotermsVersion | Inco. Version | ||
| Route | Route | Vehicle route | ||
| CustomerPriceGroup | CustomerPriceGroup | CustPrice Group | ||
| ItemBillingBlockReason | ItemBillingBlockReason | Billing Block | ||
| BillingDocumentDate | BillingDocumentDate | Billing Date | ||
| BillingPlan | BillingPlan | Bill. Plan No. | ||
| CustomerPaymentTerms | CustomerPaymentTerms | Pyt Terms | ||
| PaymentMethod | PaymentMethod | Pymt Meth. | ||
| FixedValueDate | FixedValueDate | Fixed Val. Date | ||
| BusinessArea | BusinessArea | Business Area | ||
| ControllingArea | ControllingArea | Controlling Area | ||
| ProfitCenter | ProfitCenter | Profit Center | ||
| MatlAccountAssignmentGroup | MatlAccountAssignmentGroup | |||
| WBSElementInternalID | WBSElementInternalID | WBS Internal ID | ||
| WBSElementExternalID | _WBSElementBasicData_2 | WBSElementExternalID | WBS Element External ID | |
| SDPricingProcedure | _SalesContract | SDPricingProcedure | Pric. Procedure | |
| ItemCategoryGroup | _ItemEnhancedFields | ItemCategoryGroup | Item Cat. Group | |
| SDDocumentItemUsage | _ItemEnhancedFields | SDDocumentItemUsage | ||
| HigherLevelItemCategory | ||||
| BillingBlockStatus | BillingBlockStatus | |||
| SDProcessStatus | SDProcessStatus | |||
| ItemGeneralIncompletionStatus | ItemGeneralIncompletionStatus | |||
| ItemBillingIncompletionStatus | ItemBillingIncompletionStatus | |||
| PricingIncompletionStatus | PricingIncompletionStatus | |||
| ItemDeliveryIncompletionStatus | ItemDeliveryIncompletionStatus | |||
| SDDocumentRejectionStatus | SDDocumentRejectionStatus | |||
| TotalSDDocReferenceStatus | TotalSDDocReferenceStatus | |||
| SDDocReferenceStatus | SDDocReferenceStatus | |||
| ContractItemDownPaymentStatus | ContractItemDownPaymentStatus | |||
| ChmlCmplncStatus | ChmlCmplncStatus | |||
| DangerousGoodsStatus | DangerousGoodsStatus | |||
| SafetyDataSheetStatus | SafetyDataSheetStatus | |||
| TrdCmplncEmbargoSts | TrdCmplncEmbargoSts | Embargo Status | ||
| TrdCmplncSnctndListChkSts | TrdCmplncSnctndListChkSts | Screening Status | ||
| OvrlTrdCmplncLegalCtrlChkSts | OvrlTrdCmplncLegalCtrlChkSts | |||
| SalesContractType | _SalesContract | SalesContractType | ||
| OrganizationDivision | _SalesContract | OrganizationDivision | Org. Division | |
| SalesOrganization | _SalesContract | SalesOrganization | Sales Organization | |
| DistributionChannel | _SalesContract | DistributionChannel | RefDistCh-Cust/Mat. | |
| _SalesContract | _SalesContract | |||
| _Partner | _Partner | |||
| _ItemCategory | _ItemCategory | |||
| _CreatedByUser | _CreatedByUser | |||
| _Division | _Division | |||
| _Product | _Product | |||
| _ShippingType | _ShippingType | |||
| _Route | _Route | |||
| _CustomerPriceGroup | _CustomerPriceGroup | |||
| _Plant | _Plant | |||
| _BillingBlockStatus | _BillingBlockStatus | |||
| _StorageLocation | _StorageLocation | |||
| _BaseUnit | _BaseUnit | |||
| _OrderQuantityUnit | _OrderQuantityUnit | |||
| _TargetQuantityUnit | _TargetQuantityUnit | |||
| _RequestedQuantityUnit | _RequestedQuantityUnit | |||
| _ItemWeightUnit | _ItemWeightUnit | |||
| _ItemVolumeUnit | _ItemVolumeUnit | |||
| _ContractItemDownPaymentStatus | _ContractItemDownPaymentStatus | |||
| _NetPriceQuantityUnit | _NetPriceQuantityUnit | |||
| _TransactionCurrency | _TransactionCurrency | |||
| _ShippingPoint | _ShippingPoint | |||
| _IncotermsClassification | _IncotermsClassification | |||
| _IncotermsVersion | _IncotermsVersion | |||
| _CustomerPaymentTerms | _CustomerPaymentTerms | |||
| _SalesDocumentRjcnReason | _SalesDocumentRjcnReason | |||
| _BusinessArea | _BusinessArea | |||
| _ProductGroup | _ProductGroup | |||
| _ItemBillingBlockReason | _ItemBillingBlockReason | |||
| _SDProcessStatus | _SDProcessStatus | |||
| _SDDocumentRejectionStatus | _SDDocumentRejectionStatus | |||
| _ItemGeneralIncompletionStatus | _ItemGeneralIncompletionStatus | |||
| _ItemBillingIncompletionStatus | _ItemBillingIncompletionStatus | |||
| _PricingIncompletionStatus | _PricingIncompletionStatus | |||
| _ItemDelivIncompletionSts | _ItemDelivIncompletionSts | |||
| _TotalSDDocReferenceStatus | _TotalSDDocReferenceStatus | |||
| _SDDocReferenceStatus | _SDDocReferenceStatus | |||
| _ProductPricingGroup | _ProductPricingGroup | |||
| _ReferenceSDDocument | _ReferenceSDDocument | |||
| _ChmlCmplncStatus | _ChmlCmplncStatus | |||
| _DangerousGoodsStatus | _DangerousGoodsStatus | |||
| _SafetyDataSheetStatus | _SafetyDataSheetStatus | |||
| _TrdCmplncEmbargoSts | _TrdCmplncEmbargoSts | |||
| _TrdCmplncSnctndListChkSts | _TrdCmplncSnctndListChkSts | |||
| _OvrlTrdCmplncLegalCtrlChkSts | _OvrlTrdCmplncLegalCtrlChkSts | |||
| _HigherLevelItemCategory | _HigherLevelItemCategory | |||
| _MatlAccountAssignmentGroup | _MatlAccountAssignmentGroup | |||
| _WBSElementBasicData_2 | _WBSElementBasicData_2 | |||
| _WBSElementExternalID | _WBSElementExternalID | |||
| _ItemCategoryGroup | _ItemEnhancedFields | _ItemCategoryGroup | ||
| _SDDocumentItemUsage | _ItemEnhancedFields | _SDDocumentItemUsage | ||
| _ItemBillingPlan | _ItemBillingPlan | |||
| _ItemPartner | _ItemPartner | |||
| _ItemText | _ItemText | |||
| _ItemPricingElement | _ItemPricingElement | |||
| _BusinessAreaText | _BusinessAreaText | |||
| _CustomerGroup | _CustomerGroup | |||
| _ShippingPointText | _ShippingPointText | |||
| _SDPricingProcedure | _SalesContract | _SDPricingProcedure | ||
| _ControllingArea | _ControllingArea |
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 R_SalesContractItemTP.
-- 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 R_SalesContractItemTP AS
SELECT
SalesContract,
SalesContractItem,
SalesContractItemCategory,
SalesDocumentItemType,
CreatedByUser,
CreationDate,
CreationTime,
LastChangeDate,
Division,
Product,
ProductGroup,
MaterialByCustomer,
Batch,
cast (MaterialPricingGroup as productpricinggroup preserving type ) AS MaterialPricingGroup,
Plant,
StorageLocation,
SalesContractItemText,
PurchaseOrderByCustomer,
OrderQuantity,
OrderQuantityUnit,
TargetQuantity,
TargetQuantityUnit,
RequestedQuantity,
ReferenceSDDocument,
RequestedQuantityUnit,
RequestedQuantityInBaseUnit,
BaseUnit,
OutlineAgreementTargetAmount,
SalesContractReleasedAmount,
ItemGrossWeight,
ItemNetWeight,
ItemWeightUnit,
ItemVolume,
ItemVolumeUnit,
CustomerGroup,
SalesDocumentRjcnReason,
ServicesRenderedDate,
NetAmount,
TransactionCurrency,
PricingDate,
NetPriceAmount,
NetPriceQuantity,
NetPriceQuantityUnit,
TaxAmount,
CostAmount,
ShippingType,
ShippingPoint,
IncotermsClassification,
IncotermsTransferLocation,
IncotermsLocation1,
IncotermsLocation2,
IncotermsVersion,
Route,
CustomerPriceGroup,
ItemBillingBlockReason,
BillingDocumentDate,
BillingPlan,
CustomerPaymentTerms,
PaymentMethod,
FixedValueDate,
BusinessArea,
ControllingArea,
ProfitCenter,
MatlAccountAssignmentGroup,
WBSElementInternalID,
_WBSElementBasicData_2.WBSElementExternalID AS WBSElementExternalID,
_SalesContract.SDPricingProcedure AS SDPricingProcedure,
_ItemEnhancedFields.ItemCategoryGroup AS ItemCategoryGroup,
_ItemEnhancedFields.SDDocumentItemUsage AS SDDocumentItemUsage,
SalesContractItem._HigherLevelItem.SalesContractItemCategory AS HigherLevelItemCategory,
BillingBlockStatus,
SDProcessStatus,
ItemGeneralIncompletionStatus,
ItemBillingIncompletionStatus,
PricingIncompletionStatus,
ItemDeliveryIncompletionStatus,
SDDocumentRejectionStatus,
TotalSDDocReferenceStatus,
SDDocReferenceStatus,
ContractItemDownPaymentStatus,
ChmlCmplncStatus,
DangerousGoodsStatus,
SafetyDataSheetStatus,
TrdCmplncEmbargoSts,
TrdCmplncSnctndListChkSts,
OvrlTrdCmplncLegalCtrlChkSts,
_SalesContract.SalesContractType AS SalesContractType,
_SalesContract.OrganizationDivision AS OrganizationDivision,
_SalesContract.SalesOrganization AS SalesOrganization,
_SalesContract.DistributionChannel AS DistributionChannel,
_ItemEnhancedFields._ItemCategoryGroup AS _ItemCategoryGroup,
_ItemEnhancedFields._SDDocumentItemUsage AS _SDDocumentItemUsage,
_SalesContract._SDPricingProcedure AS _SDPricingProcedure
FROM I_SalesContractItem AS SalesContractItem
LEFT OUTER JOIN I_SlsDocItemEnhancedFields AS _ItemEnhancedFields ON SalesContract = _ItemEnhancedFields.SalesDocument AND SalesContractItem = _ItemEnhancedFields.SalesDocumentItem -- association [0..1]
LEFT OUTER JOIN I_SalesDocumentItemCategory AS _HigherLevelItemCategory ON HigherLevelItemCategory = _HigherLevelItemCategory.SalesDocumentItemCategory -- association [0..1]
LEFT OUTER JOIN I_ProductPricingGroup AS _ProductPricingGroup ON MaterialPricingGroup = _ProductPricingGroup.ProductPricingGroup -- association [0..1]
LEFT OUTER JOIN I_ControllingArea AS _ControllingArea ON ControllingArea = _ControllingArea.ControllingArea -- association [0..1]
LEFT OUTER JOIN I_WBSElementByExternalID AS _WBSElementExternalID ON WBSElementExternalID = _WBSElementExternalID.WBSElementExternalID -- association [0..1]
LEFT OUTER JOIN E_SalesDocumentItemBasic AS _Extension ON SalesContract = _Extension.SalesDocument AND SalesContractItem = _Extension.SalesDocumentItem -- association [1]
LEFT OUTER JOIN R_SalesContractItemPartnerTP AS _ItemPartner ON /* condition not available in parsed metadata */ -- association [0..*]
LEFT OUTER JOIN R_SalesContractItemTextTP AS _ItemText ON /* condition not available in parsed metadata */ -- association [0..*]
LEFT OUTER JOIN R_SlsContrItemPricingElementTP AS _ItemPricingElement ON /* condition not available in parsed metadata */ -- association [0..*]
LEFT OUTER JOIN R_SlsContractItemBillingPlanTP AS _ItemBillingPlan ON /* condition not available in parsed metadata */ -- 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