A_CAInvcgDocChargeAndDiscount

DDL: A_CAINVCGDOCCHARGEANDDISCOUNT Type: view_entity CONSUMPTION Package: FCI_ODATA_API_INVDOC

Invoicing Document Charge And Discount

A_CAInvcgDocChargeAndDiscount is a Consumption CDS View that provides data about "Invoicing Document Charge And Discount" in SAP S/4HANA. It reads from 1 data source (I_CAInvcgDocChargeAndDiscount) and exposes 13 fields with key fields CAInvoicingDocument, CADocumentNumber, CABPItemNumber. It has 1 association to related views. It is exposed through 1 OData service (API_CAINVOICINGDOCUMENT). Part of development package FCI_ODATA_API_INVDOC.

Data Sources (1)

SourceAliasJoin Type
I_CAInvcgDocChargeAndDiscount I_CAInvcgDocChargeAndDiscount from

Associations (1)

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

Annotations (9)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Invoicing Document Charge And Discount 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 CAInvcgDocChargeAndDiscount_Type view

OData Services (1)

ServiceBindingVersionContractRelease
API_CAINVOICINGDOCUMENT API_CAINVOICINGDOCUMENT V4 C2 C1

Fields (13)

KeyFieldSource TableSource FieldDescription
KEY CAInvoicingDocument CAInvoicingDocument Invoic. Doc.
KEY CADocumentNumber CADocumentNumber Document Number
KEY CABPItemNumber CABPItemNumber Item
CAInvcgChargeAndDiscountKey CAInvcgChargeAndDiscountKey Chrge/Disc. Key
CAInvcgIsChargeOrDiscount CAInvcgIsChargeOrDiscount Chrge/Disc. Ind
CACreditWorthiness CACreditWorthiness FI-CA Creditwth
CAItemPeriodStartDate CAItemPeriodStartDate Start Item Per.
CAItemPeriodEndDate CAItemPeriodEndDate End of Item Per
TransactionCurrency TransactionCurrency Transaction Currency
CAInvcgChrgAndDiscBaseAmount CAInvcgChrgAndDiscBaseAmount Base Amount
CAInvcgChrgAndDiscAmount CAInvcgChrgAndDiscAmount Charge/Discount
CAInvcgChrgAndDiscIsExisting CAInvcgChrgAndDiscIsExisting Individ.History
_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_CAInvcgDocChargeAndDiscount.
-- 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_CAInvcgDocChargeAndDiscount AS
SELECT
  CAInvoicingDocument,
  CADocumentNumber,
  CABPItemNumber,
  CAInvcgChargeAndDiscountKey,
  CAInvcgIsChargeOrDiscount,
  CACreditWorthiness,
  CAItemPeriodStartDate,
  CAItemPeriodEndDate,
  TransactionCurrency,
  CAInvcgChrgAndDiscBaseAmount,
  CAInvcgChrgAndDiscAmount,
  CAInvcgChrgAndDiscIsExisting
FROM I_CAInvcgDocChargeAndDiscount
LEFT OUTER JOIN A_CAInvcgDocument AS _CAInvcgDocument ON CAInvoicingDocument = _CAInvcgDocument.CAInvoicingDocument  -- association [1..1]
;