Deprecated
This CDS view is deprecated in S/4HANA. Use I_CAInvcgDocChargeAndDiscount instead. View all deprecated CDS views →

I_CAInvcgDocDiscount

DDL: I_CAINVCGDOCDISCOUNT Type: view_entity BASIC

Fakturierungsbeleg Zu- und Abschläge

I_CAInvcgDocDiscount is a Basic CDS View that provides data about "Fakturierungsbeleg Zu- und Abschläge" in SAP S/4HANA. It reads from 1 data source (dfkkinvdoc_c) and exposes 12 fields with key fields CAInvoicingDocument, CADocumentNumber, CABPItemNumber.

Data Sources (1)

SourceAliasJoin Type
dfkkinvdoc_c dfkkinvdoc_c from

Annotations (9)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Fakturierungsbeleg Zu- und Abschläge view
VDM.viewType #BASIC view
VDM.lifecycle.status #DEPRECATED view
VDM.lifecycle.successor I_CAInvcgDocChargeAndDiscount view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
Metadata.ignorePropagatedAnnotations true view

Fields (12)

KeyFieldSource TableSource FieldDescription
KEY CAInvoicingDocument invdocno Invoic. Doc.
KEY CADocumentNumber opbel Reopen
KEY CABPItemNumber opupk Item
CAInvcgChargeAndDiscountKey chgkey Chrge/Disc. Key
CAInvcgIsChargeOrDiscount chgdisc Chrge/Disc. Ind
CACreditWorthiness bonit FI-CA Creditwth
CAItemPeriodStartDate date_from Validity Start Date
CAItemPeriodEndDate date_to Validity End Date
TransactionCurrency waers Transaction Currency
CAInvcgChrgAndDiscBaseAmount basamt Base Amount
CAInvcgChrgAndDiscAmount chgamt Charge/Discount
CAInvcgChrgAndDiscIsExisting chghist Individ.History

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 I_CAInvcgDocDiscount.
-- 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 I_CAInvcgDocDiscount AS
SELECT
  invdocno AS CAInvoicingDocument,
  opbel AS CADocumentNumber,
  opupk AS CABPItemNumber,
  chgkey AS CAInvcgChargeAndDiscountKey,
  chgdisc AS CAInvcgIsChargeOrDiscount,
  bonit AS CACreditWorthiness,
  date_from AS CAItemPeriodStartDate,
  date_to AS CAItemPeriodEndDate,
  waers AS TransactionCurrency,
  basamt AS CAInvcgChrgAndDiscBaseAmount,
  chgamt AS CAInvcgChrgAndDiscAmount,
  chghist AS CAInvcgChrgAndDiscIsExisting
FROM dfkkinvdoc_c
;