R_CustReturnRelatedObjectTP

DDL: R_CUSTRETURNRELATEDOBJECTTP Type: view_entity TRANSACTIONAL Package: RAP_SD_SLS_RE

Returns Order Related Object - TP

R_CustReturnRelatedObjectTP is a Transactional CDS View that provides data about "Returns Order Related Object - TP" in SAP S/4HANA. It reads from 1 data source (I_CustomerReturnRelatedObject) and exposes 12 fields with key fields CustomerReturn, SDDocRelatedObjectSequenceNmbr. Part of development package RAP_SD_SLS_RE.

Data Sources (1)

SourceAliasJoin Type
I_CustomerReturnRelatedObject CustomerReturnRelatedObject from

Annotations (8)

NameValueLevelField
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
VDM.viewType #TRANSACTIONAL view
AccessControl.authorizationCheck #MANDATORY view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
Metadata.ignorePropagatedAnnotations true view
EndUserText.label Returns Order Related Object - TP view

Fields (12)

KeyFieldSource TableSource FieldDescription
KEY CustomerReturn I_CustomerReturnRelatedObject CustomerReturn
KEY SDDocRelatedObjectSequenceNmbr I_CustomerReturnRelatedObject SDDocRelatedObjectSequenceNmbr Sequence Number
SDDocumentRelatedObjectType I_CustomerReturnRelatedObject SDDocumentRelatedObjectType Related Object Type
SDDocRelatedObjectSystem
SDDocRelatedObjectReference1
SDDocRelatedObjectReference2
CustomerReturnType _CustomerReturn CustomerReturnType Sales Doc. Type
OrganizationDivision _CustomerReturn OrganizationDivision Org. Division
SalesOrganization _CustomerReturn SalesOrganization Sales Organization
DistributionChannel _CustomerReturn DistributionChannel RefDistCh-Cust/Mat.
_CustomerReturn _CustomerReturn
_SDDocumentRelatedObjectType _SDDocumentRelatedObjectType

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 R_CustReturnRelatedObjectTP.
-- 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 R_CustReturnRelatedObjectTP AS
SELECT
  CustomerReturnRelatedObject.CustomerReturn AS CustomerReturn,
  CustomerReturnRelatedObject.SDDocRelatedObjectSequenceNmbr AS SDDocRelatedObjectSequenceNmbr,
  CustomerReturnRelatedObject.SDDocumentRelatedObjectType AS SDDocumentRelatedObjectType,
  cast(CustomerReturnRelatedObject.SDDocRelatedObjectSystem as sd_related_object_system preserving type) AS SDDocRelatedObjectSystem,
  cast(CustomerReturnRelatedObject.SDDocRelatedObjectReference1 as sd_related_object_reference preserving type) AS SDDocRelatedObjectReference1,
  cast(CustomerReturnRelatedObject.SDDocRelatedObjectReference2 as sd_related_object_reference preserving type) AS SDDocRelatedObjectReference2,
  _CustomerReturn.CustomerReturnType AS CustomerReturnType,
  _CustomerReturn.OrganizationDivision AS OrganizationDivision,
  _CustomerReturn.SalesOrganization AS SalesOrganization,
  _CustomerReturn.DistributionChannel AS DistributionChannel
FROM I_CustomerReturnRelatedObject AS CustomerReturnRelatedObject
;