A_SalesContractItemText

DDL: A_SALESCONTRACTITEMTEXT Type: view COMPOSITE

Item Text

A_SalesContractItemText is a Composite CDS View that provides data about "Item Text" in SAP S/4HANA. It reads from 2 data sources (P_SalesDocumentItemText, I_SalesDocumentBasic) and exposes 11 fields with key fields SalesContract, SalesContractItem, Language, LongTextID. It has 2 associations to related views.

Data Sources (2)

SourceAliasJoin Type
P_SalesDocumentItemText P_SalesDocumentItemText from
I_SalesDocumentBasic SalesDocumentBasic inner

Associations (2)

CardinalityTargetAliasCondition
[1..1] A_SalesContract _SalesContract _SalesContract.SalesContract = $projection.SalesContract
[1..1] A_SalesContractItem _SalesContractItem $projection.SalesContract = _SalesContractItem.SalesContract and $projection.SalesContractItem = _SalesContractItem.SalesContractItem

Annotations (15)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Item Text view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #PUBLIC_REMOTE_API view
AbapCatalog.sqlViewName ASCITEXT view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #MANDATORY view
ObjectModel.updateEnabled true view
ObjectModel.deleteEnabled true view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.dataCategory #TEXT view
Metadata.ignorePropagatedAnnotations true view
AbapCatalog.preserveKey true view

Fields (11)

KeyFieldSource TableSource FieldDescription
KEY SalesContract
KEY SalesContractItem
KEY Language SalesContractItemText Language Report Text Language
KEY LongTextID SalesContractItemText LongTextID Text ID
LongText SalesContractItemText LongText Text Name
SalesContractType I_SalesDocumentBasic SalesDocumentType Sales Doc. Type
OrganizationDivision I_SalesDocumentBasic OrganizationDivision Org. Division
SalesOrganization I_SalesDocumentBasic SalesOrganization Sales Organization
DistributionChannel I_SalesDocumentBasic DistributionChannel RefDistCh-Cust/Mat.
_SalesContract _SalesContract
_SalesContractItem _SalesContractItem

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 A_SalesContractItemText.
-- 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 A_SalesContractItemText AS
SELECT
  cast(SalesDocumentBasic.SalesDocument as sales_contract preserving type) AS SalesContract,
  cast(SalesContractItemText.SalesDocumentItem as sales_contract_item preserving type) AS SalesContractItem,
  SalesContractItemText.Language AS Language,
  SalesContractItemText.LongTextID AS LongTextID,
  SalesContractItemText.LongText AS LongText,
  SalesDocumentBasic.SalesDocumentType AS SalesContractType,
  SalesDocumentBasic.OrganizationDivision AS OrganizationDivision,
  SalesDocumentBasic.SalesOrganization AS SalesOrganization,
  SalesDocumentBasic.DistributionChannel AS DistributionChannel
FROM P_SalesDocumentItemText
INNER JOIN I_SalesDocumentBasic AS SalesDocumentBasic ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN A_SalesContract AS _SalesContract ON _SalesContract.SalesContract = SalesContract  -- association [1..1]
LEFT OUTER JOIN A_SalesContractItem AS _SalesContractItem ON SalesContract = _SalesContractItem.SalesContract AND SalesContractItem = _SalesContractItem.SalesContractItem  -- association [1..1]
;