R_ReservationDocumentSearch

DDL: R_RESERVATIONDOCUMENTSEARCH SQL: RRESVNDOCSRCH Type: view COMPOSITE

Reservation Document Search

R_ReservationDocumentSearch is a Composite CDS View that provides data about "Reservation Document Search" in SAP S/4HANA. It reads from 1 data source (I_ReservationDocumentHeader) and exposes 34 fields with key field Reservation. It has 5 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_ReservationDocumentHeader I_ReservationDocumentHeader from

Associations (5)

CardinalityTargetAliasCondition
[0..1] I_UserContactCard _CreatedByUser $projection.UserID = _CreatedByUser.ContactCardID
[0..1] I_UserContactCard _LastChangedByUser $projection.LastChangedByUser = _LastChangedByUser.ContactCardID
[0..1] I_Plant _IssuingOrReceivingPlant $projection.IssuingOrReceivingPlant = _IssuingOrReceivingPlant.Plant
[0..1] I_StorageLocation _IssuingOrReceivingStorageLoc $projection.IssuingOrReceivingStorageLoc = _IssuingOrReceivingStorageLoc.StorageLocation and $projection.IssuingOrReceivingPlant = _IssuingOrReceivingStorageLoc.Plant
[1..1] E_ReservationDocument _Extension $projection.Reservation = _Extension.Reservation

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName RRESVNDOCSRCH view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Reservation Document Search view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.representativeKey Reservation view
Metadata.ignorePropagatedAnnotations true view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view

Fields (34)

KeyFieldSource TableSource FieldDescription
KEY Reservation Reservation
GoodsMovementType GoodsMovementType
ReservationOrigin ReservationOrigin
ResvnVerificationCompanyCode ResvnVerificationCompanyCode
OrderID OrderID
CostCenter CostCenter
ProfitCenter ProfitCenter
ControllingArea ControllingArea
GoodsRecipientName GoodsRecipientName
ReservationDate ReservationDate
IsCheckedAgainstFactoryCal IsCheckedAgainstFactoryCal
Customer Customer
WBSElementInternalID
WBSElement _WBSElementBasicData WBSElementExternalID
SalesOrder SalesOrder
AssetNumber AssetNumber
IssuingOrReceivingPlant IssuingOrReceivingPlant
IssuingOrReceivingStorageLoc IssuingOrReceivingStorageLoc
UserID UserID
CreationDateTime CreationDateTime
LastChangedByUser LastChangedByUser
LastChangeDateTime LastChangeDateTime
_ReservationDocumentItem _ReservationDocumentItem
_ControllingArea _ControllingArea
_CostCenter _CostCenter
_Customer _Customer
_GoodsMovementType _GoodsMovementType
_VerificationCompanyCode _VerificationCompanyCode
_Order _Order
_WBSElementBasicData _WBSElementBasicData
_CreatedByUser _CreatedByUser
_LastChangedByUser _LastChangedByUser
_IssuingOrReceivingPlant _IssuingOrReceivingPlant
_IssuingOrReceivingStorageLoc _IssuingOrReceivingStorageLoc
@AbapCatalog.sqlViewName: 'RRESVNDOCSRCH'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Reservation Document Search'

@ClientHandling.algorithm: #SESSION_VARIABLE

@ObjectModel: {
    usageType: {
        sizeCategory: #L,
        serviceQuality: #C,
        dataClass:#TRANSACTIONAL
    },
    semanticKey: ['Reservation'],
    representativeKey: 'Reservation'
}

@Metadata.ignorePropagatedAnnotations: true

@VDM.viewType: #COMPOSITE
@VDM.lifecycle.contract.type: #SAP_INTERNAL_API
@AccessControl.privilegedAssociations: [ '_CreatedByUser', '_LastChangedByUser' ]

define view R_ReservationDocumentSearch
  as select from I_ReservationDocumentHeader

  association [0..1] to I_UserContactCard         as _CreatedByUser                on  $projection.UserID = _CreatedByUser.ContactCardID

  association [0..1] to I_UserContactCard         as _LastChangedByUser            on  $projection.LastChangedByUser = _LastChangedByUser.ContactCardID

  association [0..1] to I_Plant                   as _IssuingOrReceivingPlant      on  $projection.IssuingOrReceivingPlant = _IssuingOrReceivingPlant.Plant

  association [0..1] to I_StorageLocation         as _IssuingOrReceivingStorageLoc on  $projection.IssuingOrReceivingStorageLoc = _IssuingOrReceivingStorageLoc.StorageLocation
                                                                                   and $projection.IssuingOrReceivingPlant      = _IssuingOrReceivingStorageLoc.Plant
  //Extension

  association [1..1] to E_ReservationDocument     as _Extension                    on  $projection.Reservation = _Extension.Reservation

{
  key Reservation,
      GoodsMovementType                                           as GoodsMovementType,
      ReservationOrigin,
      ResvnVerificationCompanyCode,
      OrderID,
      CostCenter,
      ProfitCenter,
      ControllingArea,
      GoodsRecipientName,
      ReservationDate,
      IsCheckedAgainstFactoryCal,
      Customer,
      cast (WBSElementInternalID as ps_s4_pspnr preserving type ) as WBSElementInternalID,
      _WBSElementBasicData.WBSElementExternalID                   as WBSElement,
      SalesOrder,
      AssetNumber,
      IssuingOrReceivingPlant,
      IssuingOrReceivingStorageLoc,
      @Semantics.user.createdBy: true
      UserID,
      @Semantics.systemDateTime.createdAt: true
      CreationDateTime,
      @Semantics.user.lastChangedBy: true
      LastChangedByUser,
      @Semantics.systemDateTime.lastChangedAt: true
      LastChangeDateTime,

      /* Associations */
      _ReservationDocumentItem,
      _ControllingArea,
      _CostCenter,
      _Customer,
      _GoodsMovementType,
      _VerificationCompanyCode,
      _Order,
      _WBSElementBasicData,
      _CreatedByUser,
      _LastChangedByUser,
      _IssuingOrReceivingPlant,
      _IssuingOrReceivingStorageLoc
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_RESERVATIONDOCUMENTHEADER",
"I_WBSELEMENTBASICDATA"
],
"ASSOCIATED":
[
"E_RESERVATIONDOCUMENT",
"I_COMPANYCODE",
"I_CONTROLLINGAREA",
"I_COSTCENTER",
"I_CUSTOMER",
"I_GOODSMOVEMENTTYPE",
"I_LOGISTICSORDER",
"I_PLANT",
"I_RESERVATIONDOCUMENTITEM",
"I_STORAGELOCATION",
"I_USERCONTACTCARD",
"I_WBSELEMENTBASICDATA"
],
"BASE":
[
"I_RESERVATIONDOCUMENTHEADER"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/