C_FldLogsPrdcssrDocRemote

DDL: C_FLDLOGSPRDCSSRDOCREMOTE SQL: CFLPREDOC_R Type: view CONSUMPTION

Field Logistics Predecessor Documents

C_FldLogsPrdcssrDocRemote is a Consumption CDS View that provides data about "Field Logistics Predecessor Documents" in SAP S/4HANA.

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName CFLPREDOC_R view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.sizeCategory #L view
EndUserText.label Field Logistics Predecessor Documents view
VDM.viewType #CONSUMPTION view
ObjectModel.resultSet.sizeCategory #XS view
Metadata.allowExtensions true view

Fields (14)

KeyFieldSource TableSource FieldDescription
KEY PurchasingDocument _Remote PurchasingDocument
KEY PurchasingDocumentItem _Remote PurchasingDocumentItem
KEY DeliveryDocument
KEY DeliveryDocumentItem
KEY FldLogsSuplrItemUUID _Remote FldLogsSuplrItemUUID
OutboundDeliveryendasInboundDelivery
PurchasingDocumentendasPurchaseOrder
MaintenanceOrder
Project _Remote Project
ProjectDemand _Remote ProjectDemand
ProjectDemandName _Remote ProjectDemandName
ProjectDescription _Remote ProjectDescription
EWMInboundDelivery _Remote EWMInboundDelivery
EWMInboundDeliveryItem _Remote EWMInboundDeliveryItem
@AbapCatalog.sqlViewName: 'CFLPREDOC_R'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@AccessControl.personalData.blocking : #REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType: {
  serviceQuality: #D,
  dataClass: #TRANSACTIONAL,
  sizeCategory: #L
}
@EndUserText.label: 'Field Logistics Predecessor Documents'
@VDM.viewType: #CONSUMPTION
@ObjectModel: {
  resultSet.sizeCategory: #XS
}
@Metadata.allowExtensions: true
define view C_FldLogsPrdcssrDocRemote
  as select distinct from I_FldLogsPrdcssrDocRemote as _Remote
{
  key      _Remote.PurchasingDocument,
  key      _Remote.PurchasingDocumentItem,

  key      coalesce( ltrim(_Remote.OutboundDelivery, '0'), ' ' )         as DeliveryDocument,
  key      coalesce( _Remote.OutboundDeliveryItem, '000000' )            as DeliveryDocumentItem,
  key      _Remote.FldLogsSuplrItemUUID,

           case
            when _Remote.PurchasingDocumentSubtype = 'T'
              then    _Remote.ReferenceDocument
            else _Remote.PurchaseRequisition end                         as PurchaseRequisition,

           case
            when _Remote.PurchasingDocumentSubtype = 'T'
              then _Remote.PurchaseRequisition end                       as ReferenceDocument,

           case
            when _Remote.PurchasingDocumentSubtype = 'T'
              then _Remote.StockTransportOrder end                       as StockTransportOrder,
           case
            when _Remote.PurchasingDocumentSubtype = 'T'
              then _Remote.MaterialDocument end                          as FldLogsMatlDocAtRmte,
           case
            when _Remote.PurchasingDocumentSubtype = 'T' 
            or _Remote.FldLogsSuplrItemUUID <> hextobin( '00000000000000000000000000000000')
              then _Remote.DeliveryDocument
            else _Remote.OutboundDelivery end                            as InboundDelivery,
           case
            when _Remote.PurchasingDocumentSubtype = 'T'
              then _Remote.PurchaseOrder
            else _Remote.PurchasingDocument end                          as PurchaseOrder,
           coalesce( ltrim(_Remote.MaintenanceOrder,'0'), ltrim(_Order.MaintenanceOrder,'0') ) as MaintenanceOrder,
           @ObjectModel : { text.element: ['ProjectDescription'] }
           _Remote.Project,
           @ObjectModel : { text.element: ['ProjectDemandName'] }
           _Remote.ProjectDemand,
           _Remote.ProjectDemandName,
           _Remote.ProjectDescription,
           //EWM Inbound Delivery Details

           _Remote.EWMInboundDelivery,
           _Remote.EWMInboundDeliveryItem
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_FLDLOGSPRDCSSRDOCREMOTE",
"I_FLDLOGSPROCRCPTMAINTORD"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/