A_PersonnelCompensationElement

DDL: A_PERSONNELCOMPENSATIONELEMENT Type: view_entity COMPOSITE

Personnel Compensation Element

A_PersonnelCompensationElement is a Composite CDS View that provides data about "Personnel Compensation Element" in SAP S/4HANA. It reads from 1 data source (I_PersSettlmtDoc) and exposes 30 fields with key field PersonnelSettlementDocument. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_PersSettlmtDoc I_PersSettlmtDoc from

Associations (2)

CardinalityTargetAliasCondition
[1..1] E_SettlmtMgmtDoc _Extension $projection.PersonnelSettlementDocument = _Extension.SettlmtMgmtDoc
[0..*] A_PersCompnElmntCostAssgmt _PersCompnElmntCostAssgmt

Annotations (13)

NameValueLevelField
EndUserText.label Personnel Compensation Element view
AccessControl.authorizationCheck #MANDATORY view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.compositionRoot true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #PUBLIC_REMOTE_API view
AbapCatalog.extensibility.extensible true view
AbapCatalog.extensibility.elementSuffix SMH view
AbapCatalog.extensibility.quota.maximumFields 170 view
AbapCatalog.extensibility.quota.maximumBytes 3400 view

Fields (30)

KeyFieldSource TableSource FieldDescription
KEY PersonnelSettlementDocument PersonnelSettlementDocument Personnel Settlement Document
SettlmtDocType SettlmtDocType Settlement Document Type
SettlmtDocCat SettlmtDocCat Settlement Document Category
CompanyCode CompanyCode Receiver Company Code
CompanyCodeCountry _CompanyCode Country Venue: Ctry/Reg
CompanyCodeCountryISOCode
CountryThreeDigitISOCode
PersonWorkAgreement PersonWorkAgreement Personnel No.
PersonWorkAgreementExternalID
SettlmtCompensationReason SettlmtCompensationReason Compensation Reason
SettlmtCompnVar SettlmtCompnVar Compensation Variant
PostingDate PostingDate Posting Date for GR
DocumentDate DocumentDate Journal Entry Date
ActualSettlmtDate ActualSettlmtDate Actual Settl. Date
TotalNetAmount TotalNetAmount Total Net Amount
PersSettlmtDocCurrency PersSettlmtDocCurrency Doc. Currency
PersSettlmtDocCurrencyISOCode _PersSettlmtDocCurrency CurrencyISOCode Document Currency
DocumentReferenceID DocumentReferenceID Reference
AssignmentReference AssignmentReference Assignment Reference
PaymentReference PaymentReference Payment Reference
PersSettlmtDocIsReversed PersSettlmtDocIsReversed Document Is Reversed
RvsdPersSettlmtDoc RvsdPersSettlmtDoc Reversed Document
JournalEntryCreationDate JournalEntryCreationDate Journal Entry Creation Date
JournalEntryCreationTime JournalEntryCreationTime Journal Entry Creation Time
SalesOrganization SalesOrganization Sales Organization
DistributionChannel DistributionChannel RefDistCh-Cust/Mat.
Division Division Internal Division ID
AuthorizationGroup _PersonWorkAgreement AuthorizationGroup AuthorizGroup
PersonnelCostCenter PersonnelCostCenter Worker Cost Center
_PersCompnElmntCostAssgmt _PersCompnElmntCostAssgmt

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_PersonnelCompensationElement.
-- 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_PersonnelCompensationElement AS
SELECT
  PersonnelSettlementDocument,
  SettlmtDocType,
  SettlmtDocCat,
  CompanyCode,
  _CompanyCode.Country AS CompanyCodeCountry,
  _CompanyCode._Country.CountryThreeLetterISOCode AS CompanyCodeCountryISOCode,
  _CompanyCode._Country.CountryThreeDigitISOCode AS CountryThreeDigitISOCode,
  PersonWorkAgreement,
  _PersonWorkAgreement._PersonWorkAgrmtToExternalID[1:companycode = CompanyCode].PersonWorkAgreementExternalID AS PersonWorkAgreementExternalID,
  SettlmtCompensationReason,
  SettlmtCompnVar,
  PostingDate,
  DocumentDate,
  ActualSettlmtDate,
  TotalNetAmount,
  PersSettlmtDocCurrency,
  _PersSettlmtDocCurrency.CurrencyISOCode AS PersSettlmtDocCurrencyISOCode,
  DocumentReferenceID,
  AssignmentReference,
  PaymentReference,
  PersSettlmtDocIsReversed,
  RvsdPersSettlmtDoc,
  JournalEntryCreationDate,
  JournalEntryCreationTime,
  SalesOrganization,
  DistributionChannel,
  Division,
  _PersonWorkAgreement.AuthorizationGroup AS AuthorizationGroup,
  PersonnelCostCenter
FROM I_PersSettlmtDoc
LEFT OUTER JOIN E_SettlmtMgmtDoc AS _Extension ON PersonnelSettlementDocument = _Extension.SettlmtMgmtDoc  -- association [1..1]
LEFT OUTER JOIN A_PersCompnElmntCostAssgmt AS _PersCompnElmntCostAssgmt ON /* condition not available in parsed metadata */  -- association [0..*]
;