I_TransportationOrderBP

DDL: I_TRANSPORTATIONORDERBP Type: view_entity BASIC

Transportation Order: Business Partners

I_TransportationOrderBP is a Basic CDS View that provides data about "Transportation Order: Business Partners" in SAP S/4HANA. It reads from 1 data source (/scmtms/d_torpty) and exposes 11 fields with key field TransportationOrderBusPartUUID. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
/scmtms/d_torpty /scmtms/d_torpty from

Associations (3)

CardinalityTargetAliasCondition
[1..1] I_TransportationOrder _TransportationOrder $projection.TransportationOrderUUID = _TransportationOrder.TransportationOrderUUID
[0..1] I_BusinessPartner _BusinessPartner $projection.BusinessPartner = _BusinessPartner.BusinessPartner
[0..1] I_PartnerFunction _PartnerFunction $projection.BusinessPartnerRole = _PartnerFunction.PartnerFunction

Annotations (8)

NameValueLevelField
EndUserText.label Transportation Order: Business Partners view
ObjectModel.representativeKey TransportationOrderBusPartUUID view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #BASIC view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
Metadata.ignorePropagatedAnnotations true view

Fields (11)

KeyFieldSource TableSource FieldDescription
KEY TransportationOrderBusPartUUID db_key UUID
RefTransportationOrderUUID UUID
TransportationOrderUUID UUID
BusinessPartner Party Identifier
BusinessPartnerUUID UUID Internal
BusinessPartnerRole Partner Functn
AddressID address_id Address ID
AddressIDType
_TransportationOrder _TransportationOrder
_BusinessPartner _BusinessPartner
_PartnerFunction _PartnerFunction

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_TransportationOrderBP.
-- 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_TransportationOrderBP AS
SELECT
  db_key AS TransportationOrderBusPartUUID,
  cast(root_key as /scmtms/vdm_tor_db_key preserving type) AS RefTransportationOrderUUID,
  cast(parent_key as /scmtms/vdm_tor_db_key preserving type) AS TransportationOrderUUID,
  cast(party_id as /scmtms/pty_consignee preserving type) AS BusinessPartner,
  cast(party_uuid as bu_partner_guid preserving type) AS BusinessPartnerUUID,
  cast(party_rco as /scmtms/vdm_partner_function preserving type ) AS BusinessPartnerRole,
  address_id AS AddressID,
  substring( address_id, 3, 3) AS AddressIDType
FROM /scmtms/d_torpty
LEFT OUTER JOIN I_TransportationOrder AS _TransportationOrder ON TransportationOrderUUID = _TransportationOrder.TransportationOrderUUID  -- association [1..1]
LEFT OUTER JOIN I_BusinessPartner AS _BusinessPartner ON BusinessPartner = _BusinessPartner.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN I_PartnerFunction AS _PartnerFunction ON BusinessPartnerRole = _PartnerFunction.PartnerFunction  -- association [0..1]
;