I_CommsnContrRtntnAgreement

DDL: I_COMMSNCONTRRTNTNAGREEMENT Type: view_entity BASIC

Retention Agreement

I_CommsnContrRtntnAgreement is a Basic CDS View that provides data about "Retention Agreement" in SAP S/4HANA. It reads from 1 data source (cacs_retagr) and exposes 12 fields with key fields CommissionApplication, CommissionContract, CommissionContractAgreement, CommsnContractAgreementVersion.

Data Sources (1)

SourceAliasJoin Type
cacs_retagr cacs_retagr from

Annotations (7)

NameValueLevelField
EndUserText.label Retention Agreement view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #BASIC view
ObjectModel.sapObjectNodeType.name CommsnContrRetentionAgreement view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view

Fields (12)

KeyFieldSource TableSource FieldDescription
KEY CommissionApplication appl Rep. Model
KEY CommissionContract ctrtbu_id Contract Number
KEY CommissionContractAgreement Retent.Agrmt No
KEY CommsnContractAgreementVersion version XML Vers.
CommsnContrAgreementRule Retention Rule
CommissionContractCurrency
CommsnAgrmtMaxRetentionAmount max_amnt Max. Retention Amnt
CommsnAgrmtRetentionPercent percent Retention Percent
CommsnContrRtntnThldAmount threshold Upper Threshold (%)
CommsnAgrmtEffctvFrmDteTme Effective from
CommsnAgrmtEffctvToDteTme Effective Until
CommissionVersionIsInvalid flg_cancel_vers Invalid Version

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_CommsnContrRtntnAgreement.
-- 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_CommsnContrRtntnAgreement AS
SELECT
  appl AS CommissionApplication,
  ctrtbu_id AS CommissionContract,
  cast( retagr_id as cacs_agrmt_id ) AS CommissionContractAgreement,
  version AS CommsnContractAgreementVersion,
  cast( retru_id as cacs_agr_rule_id ) AS CommsnContrAgreementRule,
  cast( '' as cacsconcurr ) AS CommissionContractCurrency,
  max_amnt AS CommsnAgrmtMaxRetentionAmount,
  percent AS CommsnAgrmtRetentionPercent,
  threshold AS CommsnContrRtntnThldAmount,
  cast( busi_begin as cacs_agrmt_efffrom ) AS CommsnAgrmtEffctvFrmDteTme,
  cast( busi_end as cacs_agrmt_effto ) AS CommsnAgrmtEffctvToDteTme,
  flg_cancel_vers AS CommissionVersionIsInvalid
FROM cacs_retagr
;