P_SrvcMgmtRjcnReasonAssignment

DDL: P_SRVCMGMTRJCNREASONASSIGNMENT Type: view_entity COMPOSITE

P_SrvcMgmtRjcnReasonAssignment is a Composite CDS View in SAP S/4HANA. It reads from 7 data sources and exposes 7 fields with key fields ServiceDocumentType, SalesOrganization, ServiceDocumentRejectionReason, SalesOrganization, ServiceDocumentRejectionReason. It has 1 association to related views.

Data Sources (7)

Associations (1)

CardinalityTargetAliasCondition
[1..*] I_SalesDocumentRjcnReasonText _SalesDocumentRjcnReasonText $projection.ServiceDocumentRejectionReason = _SalesDocumentRjcnReasonText.SalesDocumentRjcnReason

Annotations (4)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
Metadata.ignorePropagatedAnnotations true view
VDM.private true view
VDM.viewType #COMPOSITE view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY ServiceDocumentType I_ServiceDocumentType ServiceDocumentType Transaction Type
KEY SalesOrganization I_ServiceDocumentType SalesOrganization Sales Organization
KEY ServiceDocumentRejectionReason I_SalesOrganization ServiceDocumentRejectionReason RejectionReason
ServiceDocumentType Transaction Type
KEY SalesOrganization I_SalesOrganization SalesOrganization Sales Organization
KEY ServiceDocumentRejectionReason I_SalesDocumentRjcnReason SalesDocumentRjcnReason RejectionReason
SrvcDocItemRejectionReasonText

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_SrvcMgmtRjcnReasonAssignment.
-- 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 P_SrvcMgmtRjcnReasonAssignment AS
SELECT
  a.ServiceDocumentType AS ServiceDocumentType,
  a.SalesOrganization AS SalesOrganization,
  b.ServiceDocumentRejectionReason AS ServiceDocumentRejectionReason,
  _SalesDocumentRjcnReasonText[1:Language=$session.system_language].SalesDocumentRjcnReasonName AS SrvcDocItemRejectionReasonText
FROM P_SrvcMgmtRjcnPrflAssignment AS a
LEFT OUTER JOIN I_SrvcRjcnRsnPrflRjcnReason AS b ON /* join condition not captured in parsed metadata */
CROSS JOIN I_SalesOrganization AS b
CROSS JOIN I_SalesDocumentRjcnReason AS c
LEFT OUTER JOIN I_SrvcMgmtRjcnPrflAssignment AS d ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_SrvcMgmtRjcnPrflAssignment AS e ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_SalesDocumentRjcnReasonText AS _SalesDocumentRjcnReasonText ON ServiceDocumentRejectionReason = _SalesDocumentRjcnReasonText.SalesDocumentRjcnReason  -- association [1..*]
-- UNION ALL with additional select branch(es): I_ServiceDocumentType
;