I_CommsnContrTargetAgreement

DDL: I_COMMSNCONTRTARGETAGREEMENT Type: view_entity BASIC

Target Agreement

I_CommsnContrTargetAgreement is a Basic CDS View that provides data about "Target Agreement" in SAP S/4HANA. It reads from 1 data source (cacs_tgagr) and exposes 9 fields with key fields CommissionApplication, CommissionContract, CommissionStandardAgreement, CommissionContractAgreement, CommsnContractAgreementVersion.

Data Sources (1)

SourceAliasJoin Type
cacs_tgagr cacs_tgagr from

Annotations (7)

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

Fields (9)

KeyFieldSource TableSource FieldDescription
KEY CommissionApplication appl Rep. Model
KEY CommissionContract ctrtbu_id Contract Number
KEY CommissionStandardAgreement stcagr_id StdAgrmt No.
KEY CommissionContractAgreement Counter Ind.TgtAgmts
KEY CommsnContractAgreementVersion version XML Vers.
CommsnContrAgreementIsLocked agrlock Lock Indicator
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_CommsnContrTargetAgreement.
-- 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_CommsnContrTargetAgreement AS
SELECT
  appl AS CommissionApplication,
  ctrtbu_id AS CommissionContract,
  stcagr_id AS CommissionStandardAgreement,
  cast( tgtagr_id as cacs_agrmt_id ) AS CommissionContractAgreement,
  version AS CommsnContractAgreementVersion,
  agrlock AS CommsnContrAgreementIsLocked,
  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_tgagr
;