A_CAInvcgDocRelation

DDL: A_CAINVCGDOCRELATION Type: view_entity CONSUMPTION

Invoicing Document Relation

A_CAInvcgDocRelation is a Consumption CDS View that provides data about "Invoicing Document Relation" in SAP S/4HANA. It reads from 1 data source (I_CAInvcgDocRelation) and exposes 9 fields with key fields CAInvcgReferenceObject, CAReferenceObjectID, CAInvcgCreationDate, CAInvoicingDocument. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
I_CAInvcgDocRelation I_CAInvcgDocRelation from

Associations (1)

CardinalityTargetAliasCondition
[1..1] A_CAInvcgDocument _CAInvcgDocument $projection.CAInvoicingDocument = _CAInvcgDocument.CAInvoicingDocument

Annotations (9)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Invoicing Document Relation view
VDM.lifecycle.contract.type #PUBLIC_REMOTE_API view
VDM.viewType #CONSUMPTION view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
OData.entityType.name CAInvcgDocRelation_Type view

Fields (9)

KeyFieldSource TableSource FieldDescription
KEY CAInvcgReferenceObject CAInvcgReferenceObject Reference Obj.
KEY CAReferenceObjectID CAReferenceObjectID Reference ID
KEY CAInvcgCreationDate CAInvcgCreationDate Invoiced On
KEY CAInvoicingDocument CAInvoicingDocument Invoic. Doc.
CAInvcgIsDocumentPosted CAInvcgIsDocumentPosted Document Posted
CAInvcgIsDocumentSimulated CAInvcgIsDocumentSimulated Doc. Simulated
CAInvcgIsDocumentPreliminary CAInvcgIsDocumentPreliminary Preliminary Invoice
CAReferenceObjectAddlText CAReferenceObjectAddlText
_CAInvcgDocument _CAInvcgDocument

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_CAInvcgDocRelation.
-- 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_CAInvcgDocRelation AS
SELECT
  CAInvcgReferenceObject,
  CAReferenceObjectID,
  CAInvcgCreationDate,
  CAInvoicingDocument,
  CAInvcgIsDocumentPosted,
  CAInvcgIsDocumentSimulated,
  CAInvcgIsDocumentPreliminary,
  CAReferenceObjectAddlText
FROM I_CAInvcgDocRelation
LEFT OUTER JOIN A_CAInvcgDocument AS _CAInvcgDocument ON CAInvoicingDocument = _CAInvcgDocument.CAInvoicingDocument  -- association [1..1]
;