C_SlsDocReltdBillgDocItm

DDL: C_SLSDOCRELTDBILLGDOCITM SQL: CSDRELTBILDOCITM Type: view CONSUMPTION

C_SlsDocReltdBillgDocItm is a Consumption CDS View in SAP S/4HANA. It reads from 4 data sources (I_SDDocumentMultiLevelProcFlow, I_SDDocumentMultiLevelProcFlow, I_BillingDocumentItem, I_BillingDocumentItem) and exposes 31 fields with key fields DocRelationshipUUID, BillingDocument, BillingDocumentItem, BillingDocument, BillingDocumentItem.

Data Sources (4)

SourceAliasJoin Type
I_SDDocumentMultiLevelProcFlow _ProcessFlow inner
I_SDDocumentMultiLevelProcFlow _ProcessFlow inner
I_BillingDocumentItem BillingDocumentItem from
I_BillingDocumentItem BillingDocumentItem union_all

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName CSDRELTBILDOCITM view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view

Fields (31)

KeyFieldSource TableSource FieldDescription
KEY DocRelationshipUUID I_SDDocumentMultiLevelProcFlow DocRelationshipUUID SM Doc Rel UUID
KEY BillingDocument I_BillingDocumentItem BillingDocument SD Document
KEY BillingDocumentItem I_BillingDocumentItem BillingDocumentItem Item
SalesDocument I_SDDocumentMultiLevelProcFlow PrecedingDocument SD Sched. Agmt
SalesDocumentItem I_SDDocumentMultiLevelProcFlow PrecedingDocumentItem Subsequent Item
BillingQuantity I_BillingDocumentItem BillingQuantity Invoiced Qty
BillingQuantityUnit I_BillingDocumentItem BillingQuantityUnit Sales Unit
BillingDocumentType
BillingDocumentDate
OverallBillingStatus
ItemNetAmountOfBillingDoc I_BillingDocumentItem NetAmount Stated Amount
TransactionCurrency I_BillingDocumentItem TransactionCurrency Transaction Currency
_OverallBillingStatus
_BillingDocumentType
SalesOrganization I_BillingDocumentItem SalesOrganization Sales Organization
DocRelationshipUUID SM Doc Rel UUID
KEY BillingDocument I_BillingDocumentItem BillingDocument SD Document
KEY BillingDocumentItem I_BillingDocumentItem BillingDocumentItem Item
SalesDocument I_SDDocumentMultiLevelProcFlow SubsequentDocument SD Sched. Agmt
SalesDocumentItem I_SDDocumentMultiLevelProcFlow SubsequentDocumentItem Subsequent Item
BillingQuantity I_BillingDocumentItem BillingQuantity Invoiced Qty
BillingQuantityUnit I_BillingDocumentItem BillingQuantityUnit Sales Unit
BillingDocumentType
BillingDocumentDate
OverallBillingStatus
ItemNetAmountOfBillingDoc I_BillingDocumentItem NetAmount Stated Amount
TransactionCurrency I_BillingDocumentItem TransactionCurrency Transaction Currency
_OverallBillingStatus
_BillingDocumentType
SalesOrganization I_BillingDocumentItem SalesOrganization Sales Organization
_BillingDocument _BillingDocument

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_SlsDocReltdBillgDocItm.
-- 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: CSDRELTBILDOCITM

CREATE VIEW C_SlsDocReltdBillgDocItm AS
SELECT
  _ProcessFlow.DocRelationshipUUID AS DocRelationshipUUID,
  BillingDocumentItem.BillingDocument AS BillingDocument,
  BillingDocumentItem.BillingDocumentItem AS BillingDocumentItem,
  _ProcessFlow.PrecedingDocument AS SalesDocument,
  _ProcessFlow.PrecedingDocumentItem AS SalesDocumentItem,
  BillingDocumentItem.BillingQuantity AS BillingQuantity,
  BillingDocumentItem.BillingQuantityUnit AS BillingQuantityUnit,
  BillingDocumentItem._BillingDocument.BillingDocumentType AS BillingDocumentType,
  BillingDocumentItem._BillingDocument.BillingDocumentDate AS BillingDocumentDate,
  BillingDocumentItem._BillingDocument.OverallBillingStatus AS OverallBillingStatus,
  BillingDocumentItem.NetAmount AS ItemNetAmountOfBillingDoc,
  BillingDocumentItem.TransactionCurrency AS TransactionCurrency,
  BillingDocumentItem._BillingDocument._OverallBillingStatus AS _OverallBillingStatus,
  BillingDocumentItem._BillingDocument._BillingDocumentType AS _BillingDocumentType,
  BillingDocumentItem.SalesOrganization AS SalesOrganization
FROM I_BillingDocumentItem AS BillingDocumentItem
INNER JOIN I_SDDocumentMultiLevelProcFlow AS _ProcessFlow ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): I_BillingDocumentItem
;