I_ConAcctPrtnInvcgChrgAndDisc

DDL: I_CONACCTPRTNINVCGCHRGANDDISC Type: view_entity BASIC Package: FKKV

Contr Acct Partner Invcg Charge and Disc

I_ConAcctPrtnInvcgChrgAndDisc (Basic)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Public Edition with built-in and side-by-side extension capabilities.

ContrAcctPrtnInvcgChrgAndDisc · Contract Accounting

I_ConAcctPrtnInvcgChrgAndDisc is a Basic CDS View that provides data about "Contr Acct Partner Invcg Charge and Disc" in SAP S/4HANA. It reads from 1 data source (fkkvkp_chgdisc) and exposes 11 fields with key fields ContractAccount, BusinessPartner, CAInvcgChargeAndDiscountKey, CAInvcgChrgAndDiscKeyStartDate. It has 5 associations to related views. Part of development package FKKV.

SAP Help Documentation

CategoryCDS Views for Master Data
Purpose
This CDS view retrieves charge and discount keys. Charge and discount keys are used in the invoicing functions Charges and Discounts and Individual Charges and Discounts . These invoicing functions support the calculation of charges or discounts on a base amount and the posting of these charges and discounts in Contract Accounting . This CDS view provides the data to answer the business question: Which charge and discount key values are available in the system? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .

Prerequisites
Authorizations The SAP_A4C_BC_DEV_TST_FICA_PC ( Development - API Test - Contract Accounting ) business catalog needs to be assigned to a user to be able to use this CDS view. Configuration You define charge and discount keys in the Define Key for Charges and Discounts configuration activity.

View on SAP Help Portal →

SAP API Hub

CategoryBasic
StateC1
Line of BusinessContract Accounting
Application ComponentFI-CA-2CL
CapabilitiesData Source for Defining CDS Entities,Association Target for Defining CDS Entities,Data Source in SQL Select
Extensible (Key User)No
Extensible (Developer)No
Release State (Key User)Released
Release State (Developer)Released
PackageContract Accounting for SAP S/4HANA Cloud Public Edition
Description <p>This CDS view retrieves charge and discount keys.</p> <p>Charge and discount keys are used in the invoicing functions Charges and Discounts and Individual Charges and Discounts. These invoicing functions support the calculation of charges or discounts on a base amount and the posting of these charges and discounts in Contract Accounting.</p> <p>This CDS view provides the data to answer the business question: Which charge and discount key values are available in the system?</p> <p>To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views.</p>

Documentation

Data Sources (1)

SourceAliasJoin Type
fkkvkp_chgdisc fkkvkp_chgdisc from

Associations (5)

CardinalityTargetAliasCondition
[1..1] I_BusinessPartner _BusinessPartner $projection.BusinessPartner = _BusinessPartner.BusinessPartner
[1..1] I_CAApplicationArea _CAApplicationArea $projection.CAApplicationArea = _CAApplicationArea.CAApplicationArea
[1..1] I_CAInvcgChrgAndDiscKey _CAInvcgChrgAndDiscKey $projection.CAInvcgChargeAndDiscountKey = _CAInvcgChrgAndDiscKey.CAInvcgChargeAndDiscountKey and _CAInvcgChrgAndDiscKey.CAApplicationArea = 'C'
[1..1] I_ContractAccountHeader _ContractAccount $projection.ContractAccount = _ContractAccount.ContractAccount
[1..1] I_ContractAccountPartner _ContractAccountPartner $projection.BusinessPartner = _ContractAccountPartner.BusinessPartner and $projection.ContractAccount = _ContractAccountPartner.ContractAccount

Annotations (12)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #REQUIRED view
Analytics.technicalName ICONACCTPARTICD view
EndUserText.label Contr Acct Partner Invcg Charge and Disc view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.modelingPattern #NONE view
ObjectModel.representativeKey CAInvcgChargeAndDiscountKey view
ObjectModel.sapObjectNodeType.name ContrAcctPrtnInvcgChrgAndDisc view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #XL view
VDM.viewType #BASIC view

Fields (11)

KeyFieldSource TableSource FieldDescription
KEY ContractAccount vkont Contract Account Number
KEY BusinessPartner gpart Business Partner Number
KEY CAInvcgChargeAndDiscountKey chgkey Charge and Discount Key
KEY CAInvcgChrgAndDiscKeyStartDate date_from Valid-From Date for Charge and Discount Key
CAInvcgChrgAndDiscKeyEndDate date_to Valid-To Date for Charge and Discount Key
CAApplicationArea Application Area
_BusinessPartner _BusinessPartner
_CAApplicationArea _CAApplicationArea
_CAInvcgChrgAndDiscKey _CAInvcgChrgAndDiscKey
_ContractAccount _ContractAccount
_ContractAccountPartner _ContractAccountPartner

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_ConAcctPrtnInvcgChrgAndDisc.
-- 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_ConAcctPrtnInvcgChrgAndDisc AS
SELECT
  vkont AS ContractAccount,
  gpart AS BusinessPartner,
  chgkey AS CAInvcgChargeAndDiscountKey,
  date_from AS CAInvcgChrgAndDiscKeyStartDate,
  date_to AS CAInvcgChrgAndDiscKeyEndDate,
  cast( 'C' as applk_kk preserving type ) AS CAApplicationArea
FROM fkkvkp_chgdisc
LEFT OUTER JOIN I_BusinessPartner AS _BusinessPartner ON BusinessPartner = _BusinessPartner.BusinessPartner  -- association [1..1]
LEFT OUTER JOIN I_CAApplicationArea AS _CAApplicationArea ON CAApplicationArea = _CAApplicationArea.CAApplicationArea  -- association [1..1]
LEFT OUTER JOIN I_CAInvcgChrgAndDiscKey AS _CAInvcgChrgAndDiscKey ON CAInvcgChargeAndDiscountKey = _CAInvcgChrgAndDiscKey.CAInvcgChargeAndDiscountKey AND _CAInvcgChrgAndDiscKey.CAApplicationArea = 'C'  -- association [1..1]
LEFT OUTER JOIN I_ContractAccountHeader AS _ContractAccount ON ContractAccount = _ContractAccount.ContractAccount  -- association [1..1]
LEFT OUTER JOIN I_ContractAccountPartner AS _ContractAccountPartner ON BusinessPartner = _ContractAccountPartner.BusinessPartner AND ContractAccount = _ContractAccountPartner.ContractAccount  -- association [1..1]
;