I_DRAFTADMINISTRATIVEDATA

CDS View

Draft Administration Data

I_DRAFTADMINISTRATIVEDATA is a CDS View in S/4HANA. Draft Administration Data. It contains 14 fields. 48 CDS views read from this table.

CDS Views using this table (48)

ViewTypeJoinVDMDescription
C_DraftAdministrativeData view from CONSUMPTION Draft Administrative Data
I_ABOPVariantDraft view inner BASIC BOP Variant Draft
I_AbopVariantSegmentDraft view inner BASIC ABOP Variant Segments Draft
I_ActiveCostElementWithDraft view left_outer COMPOSITE Active Cost Element With Draft Info
I_ActiveGLAcctInCOAListItem view left_outer COMPOSITE active GL in COA with draft information
I_ActiveGLAcctInCoCodeListItem view left_outer COMPOSITE company code list item data
I_BOMHeaderDraft view inner BASIC Billof material header draft data
I_Bomwhereused view left_outer COMPOSITE Interface view for single level where used list
I_DFS_UniversalAssignmentUnion view inner COMPOSITE Intf. View for Assignment Union
I_FrcElmntOrgExtRelshpWithDrft view inner COMPOSITE Interface view for the External Relationship with Draft
I_FrcElmntOrgRelshpWithDrft view inner COMPOSITE Interface view for the org relationship with draft
I_FrcElmntToAccountAssgmtUnion view inner COMPOSITE Interface View of FE To Account Assignment with Union
I_FrcElmntToCtrlgRelshpUnion view inner COMPOSITE Interface View of FE to Profit Cost Center Group Union
I_FrcElmntToOpExerRelshpUnion view inner COMPOSITE Interface view for Operation/Exercise relshp with union
I_FrcElmntToPosExtRelshpUnion view inner COMPOSITE Interface View of FE To Pos Ext Relshp With Union
I_FrcElmntToPosRelshpUnion view inner COMPOSITE Interface View of FE To Pos Structure Relshp With Union
I_FrcElmntToProfitCostCtrUnion view inner COMPOSITE Interface View of FE CostCtr With Union
I_FrcElmntToWBSElmntUnion view inner COMPOSITE Interface View of FE to additional WBS Element with Union
P_Billofmaterialitemwd view inner COMPOSITE
P_Billofmaterialwd view inner COMPOSITE
P_ProccatalogcalldetailsWD view inner COMPOSITE
P_ProccatalogcallstructWD view inner COMPOSITE
P_ProductDescriptionWD view inner COMPOSITE
P_Productmlaccountwd view inner COMPOSITE
P_Productplantprocurementwd view inner COMPOSITE
P_Productplantqtmanagement view inner COMPOSITE
P_Productplantsaleswd view inner COMPOSITE
P_Productplantstoragewd view inner COMPOSITE
P_Productplanttextwd view inner COMPOSITE
P_ProductPlantWD view inner COMPOSITE
P_Productprocurementwd view inner COMPOSITE
P_Productqmwd view inner COMPOSITE
P_Productsalesdeliveryposwd view inner COMPOSITE
P_ProductSalesDeliveryWD view inner COMPOSITE
P_ProductSalesWD view inner COMPOSITE
P_ProductStorageLocationWD view inner COMPOSITE
P_ProductStorageWD view inner COMPOSITE
P_Productsuppliereanwd view inner COMPOSITE
P_ProductSupplyPlanningWD view inner COMPOSITE
P_Producttextswd view inner COMPOSITE
P_Productunitofmeasuretextwd view inner COMPOSITE
P_Productunitomeasureeanwd view inner COMPOSITE
P_ProductUnitsOfMeasureWD view inner COMPOSITE
P_ProductValuationWD view inner COMPOSITE
P_ProductWD view inner COMPOSITE
P_ProductWorkSchedulingWD view inner COMPOSITE
P_PurchaseContractWithDraft view inner COMPOSITE
P_PurOrdMaintDraftAdminData view from CONSUMPTION

Fields (14)

KeyField CDS FieldsUsed in Views
KEY DraftEntityType DraftEntityType 1
KEY DraftUUID DraftUUID 1
CreatedByUser CreatedByUser 1
CreatedByUserDescription CreatedByUserDescription 1
CreationDateTime CreationDateTime 1
DraftAccessType DraftAccessType 1
DraftIsProcessedByMe DraftIsProcessedByMe 3
EnqueueStartDateTime EnqueueStartDateTime 1
InProcessByUser InProcessByUser 4
InProcessByUserDescription InProcessByUserDescription 4
LastChangeDateTime LastChangeDateTime 1
LastChangedByUser LastChangedByUser 1
LastChangedByUserDescription LastChangedByUserDescription 1
ProcessingStartDateTime ProcessingStartDateTime 1
@AbapCatalog.sqlViewName: 'SDRAFT_ADMIN_CDS'
@AbapCatalog.compiler.compareFilter: true

@ClientHandling.type:              #CLIENT_DEPENDENT
@AccessControl.authorizationCheck: #PRIVILEGED_ONLY

@EndUserText.label: 'Draft Administration Data'
@AccessControl.privilegedAssociations: ['DraftAdministrativeUser']

@Search.searchable: true

define view I_DraftAdministrativeData
  as select from           sdraft_admin

    left outer to one join usr21 as CreatedByUserDesc     on CreatedByUserDesc.bname = sdraft_admin.created_by

    left outer to one join usr21 as LastChangedByUserDesc on LastChangedByUserDesc.bname = sdraft_admin.last_changed_by

    left outer to one join usr21 as InProcessByUserDesc   on InProcessByUserDesc.bname = sdraft_admin.in_process_by

    association [0..*] to I_DraftAdministrativeUser as DraftAdministrativeUser on  $projection.DraftUUID       = DraftAdministrativeUser.DraftUUID
                                                                               and $projection.DraftEntityType = DraftAdministrativeUser.DraftEntityType
{
      @UI.hidden
  key sdraft_admin.draft_key        as DraftUUID,

      @UI.hidden
  key sdraft_admin.draft_entity     as DraftEntityType,
      
      @Consumption.filter.selectionType: #INTERVAL
      sdraft_admin.created_at       as CreationDateTime,

      @ObjectModel.text.element: [ 'CreatedByUserDescription' ]
      @Search: { defaultSearchElement: true, fuzzinessThreshold: 0.8, ranking: #HIGH }
      @Consumption.valueHelpDefinition: [{ entity: { name: 'I_DraftAdministrativeUserVH', element: 'UserID' } } ]
      sdraft_admin.created_by       as CreatedByUser,
      
      @Consumption.filter.selectionType: #INTERVAL
      sdraft_admin.last_changed_at  as LastChangeDateTime,

      @ObjectModel.text.element: [ 'LastChangedByUserDescription' ]
      @Search: { defaultSearchElement: true, fuzzinessThreshold: 0.8, ranking: #HIGH }
      @Consumption.valueHelpDefinition: [{ entity: { name: 'I_DraftAdministrativeUserVH', element: 'UserID' } } ]
      sdraft_admin.last_changed_by  as LastChangedByUser,

      @UI.hidden
      sdraft_admin.access_type      as DraftAccessType,

      @UI.hidden
      sdraft_admin.in_process_since as ProcessingStartDateTime,

      @UI.hidden
      @ObjectModel.text.element: [ 'InProcessByUserDescription' ]
      @Search: { defaultSearchElement: true, fuzzinessThreshold: 0.8, ranking: #HIGH }
      sdraft_admin.in_process_by    as InProcessByUser,

      @UI.hidden
      sdraft_admin.kept_by_user     as DraftIsKeptByUser,

      @UI.hidden
      sdraft_admin.enqueue_since    as EnqueueStartDateTime,

      @UI.hidden
      cast ( case $session.user
               when sdraft_admin.created_by
                 then 'X'
                 else ' '
               end as sdraft_created_by_me preserving type
           )                        as DraftIsCreatedByMe,

      @UI.hidden
      cast ( case $session.user
               when sdraft_admin.last_changed_by
                 then 'X'
                 else ' '
             end as sdraft_last_changed_by_me preserving type
           )                        as DraftIsLastChangedByMe,

      @UI.hidden
      cast ( case $session.user
               when sdraft_admin.in_process_by
                 then 'X'
                 else ' '
             end as sdraft_in_process_by_me preserving type
           )                        as DraftIsProcessedByMe,

      @UI.hidden
      @Search: { defaultSearchElement: true, fuzzinessThreshold: 0.8, ranking: #HIGH }
      cast ( CreatedByUserDesc.techdesc
               as sdraft_created_by_desc preserving type
           )                        as CreatedByUserDescription,

      @UI.hidden
      @Search: { defaultSearchElement: true, fuzzinessThreshold: 0.8, ranking: #HIGH }
      cast ( LastChangedByUserDesc.techdesc
                as sdraft_last_changed_by_desc preserving type
           )                        as LastChangedByUserDescription,

      @UI.hidden
      @Search: { defaultSearchElement: true, fuzzinessThreshold: 0.8, ranking: #HIGH }
      cast ( InProcessByUserDesc.techdesc
                as sdraft_in_process_by_desc preserving type
           )                        as InProcessByUserDescription,

      DraftAdministrativeUser

}
union all

select from              sdraft_admin_cc

  left outer to one join usr21 as CreatedByUserDesc     on CreatedByUserDesc.bname = sdraft_admin_cc.created_by

  left outer to one join usr21 as LastChangedByUserDesc on LastChangedByUserDesc.bname = sdraft_admin_cc.last_changed_by

  left outer to one join usr21 as InProcessByUserDesc   on InProcessByUserDesc.bname = sdraft_admin_cc.in_process_by

  association [0..*] to I_DraftAdministrativeUser as DraftAdministrativeUser on  $projection.DraftUUID       = DraftAdministrativeUser.DraftUUID
                                                                             and $projection.DraftEntityType = DraftAdministrativeUser.DraftEntityType
  
{
  key sdraft_admin_cc.draft_key        as DraftUUID,

  key sdraft_admin_cc.draft_entity     as DraftEntityType,

      sdraft_admin_cc.created_at       as CreationDateTime,

      sdraft_admin_cc.created_by       as CreatedByUser,

      sdraft_admin_cc.last_changed_at  as LastChangeDateTime,

      sdraft_admin_cc.last_changed_by  as LastChangedByUser,

      sdraft_admin_cc.access_type      as DraftAccessType,

      sdraft_admin_cc.in_process_since as ProcessingStartDateTime,

      sdraft_admin_cc.in_process_by    as InProcessByUser,

      sdraft_admin_cc.kept_by_user     as DraftIsKeptByUser,

      sdraft_admin_cc.enqueue_since    as EnqueueStartDateTime,

      cast ( case $session.user
               when sdraft_admin_cc.created_by
                 then 'X'
                 else ' '
               end as sdraft_created_by_me preserving type
           )                           as DraftIsCreatedByMe,

      cast ( case $session.user
               when sdraft_admin_cc.last_changed_by
                 then 'X'
                 else ' '
             end as sdraft_last_changed_by_me preserving type
           )                           as DraftIsLastChangedByMe,

      cast ( case $session.user
               when sdraft_admin_cc.in_process_by
                 then 'X'
                 else ' '
             end as sdraft_in_process_by_me preserving type
           )                           as DraftIsProcessedByMe,

      cast ( CreatedByUserDesc.techdesc
               as sdraft_created_by_desc preserving type
           )                           as CreatedByUserDescription,

      cast ( LastChangedByUserDesc.techdesc
                as sdraft_last_changed_by_desc preserving type
           )                           as LastChangedByUserDescription,

      cast ( InProcessByUserDesc.techdesc
                as sdraft_in_process_by_desc preserving type
           )                           as InProcessByUserDescription,

      DraftAdministrativeUser
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"SDRAFT_ADMIN",
"SDRAFT_ADMIN_CC",
"T000",
"USR21"
],
"ASSOCIATED":
[
"I_DRAFTADMINISTRATIVEUSER"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/