P_PersonWorkAgrmtToExternalID

DDL: P_PERSONWORKAGRMTTOEXTERNALID SQL: PPERWKAGREXT Type: view COMPOSITE

P_PersonWorkAgrmtToExternalID is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_PersonWorkAgreementOrgAss, I_PersonWorkAgrmtToECId) and exposes 4 fields with key fields PersonWorkAgreement, CompanyCode. It has 1 association to related views.

Data Sources (2)

SourceAliasJoin Type
I_PersonWorkAgreementOrgAss PA0001_ForAuthorization inner
I_PersonWorkAgrmtToECId PA0105 left_outer

Associations (1)

CardinalityTargetAliasCondition
[1] I_CompanyCode _CompanyCode PA0001.CompanyCode = _CompanyCode.CompanyCode

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName PPERWKAGREXT view
VDM.viewType #COMPOSITE view
VDM.private true view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.representativeKey PersonWorkAgreement view
AbapCatalog.preserveKey true view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY PersonWorkAgreement PA0001 HCMPersonnelNumber Personnel No.
KEY CompanyCode PA0001 CompanyCode Receiver Company Code
PersonWorkAgrmtAuthznGrpg I_PersonWorkAgreementOrgAss HCMOrganizationalKey Org.key
_CompanyCode _CompanyCode

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 P_PersonWorkAgrmtToExternalID.
-- 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.
-- SQL view name: PPERWKAGREXT

CREATE VIEW P_PersonWorkAgrmtToExternalID AS
SELECT
  PA0001.HCMPersonnelNumber AS PersonWorkAgreement,
  PA0001.CompanyCode AS CompanyCode,
  PA0001_ForAuthorization.HCMOrganizationalKey AS PersonWorkAgrmtAuthznGrpg
INNER JOIN I_PersonWorkAgreementOrgAss AS PA0001_ForAuthorization ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_PersonWorkAgrmtToECId AS PA0105 ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON PA0001.CompanyCode = _CompanyCode.CompanyCode  -- association [1]
;