P_GRIRPROCESS

CDS View

P_GRIRPROCESS is a CDS View in S/4HANA. It contains 41 fields. 2 CDS views read from this table.

CDS Views using this table (2)

ViewTypeJoinVDMDescription
I_GRIRProcess view_entity from TRANSACTIONAL GR/IR Process
I_GRIRProcessBasic view_entity from BASIC GR IR Process Basic

Fields (41)

KeyField CDS FieldsUsed in Views
KEY CompanyCode CompanyCode 2
KEY PurchasingDocument PurchasingDocument 2
KEY PurchasingDocumentItem PurchasingDocumentItem 2
_CompanyCode _CompanyCode 2
_GRIRClrgProcPrpsdPriority _GRIRClrgProcPrpsdPriority 2
_GRIRProcessPriority _GRIRProcessPriority 2
_GRIRProcessPrpsdRootCause _GRIRProcessPrpsdRootCause 2
_GRIRProcessRootCause _GRIRProcessRootCause 2
_GRIRProcessStatus _GRIRProcessStatus 2
_GRIRPrpsdStatus _GRIRPrpsdStatus 2
_PurchasingDocument _PurchasingDocument 2
_PurchasingDocumentItem _PurchasingDocumentItem 2
GRIRClearingProcessPriority GRIRClearingProcessPriority 2
GRIRClearingProcessRootCause GRIRClearingProcessRootCause 2
GRIRClearingProcessStatus GRIRClearingProcessStatus 2
GRIRClrgProcessPrpsdRootCause GRIRClrgProcessPrpsdRootCause 2
GRIRClrgProcessPrpsdStatus GRIRClrgProcessPrpsdStatus 2
GRIRClrgProcPrpsdPriority GRIRClrgProcPrpsdPriority 2
GRIRProcPrpslLastChangeDteTime GRIRProcPrpslLastChangeDteTime 2
GRIRProposedPrioMaxClProblty GRIRProposedPrioMaxClProblty 2
GRIRProposedStatusMaxClProblty GRIRProposedStatusMaxClProblty 2
GRIRPrpsdRootCauseMaxClProblty GRIRPrpsdRootCauseMaxClProblty 2
HasNote HasNote 2
LastChangeDate LastChangeDate 2
LastChangeDateTime LastChangeDateTime 2
LastChangedByUser LastChangedByUser 2
Note Note 2
ProposedResponsiblePerson ProposedResponsiblePerson 2
PrpsdRespDeptMaxClProbability PrpsdRespDeptMaxClProbability 2
PrpsdResponsibleDepartment PrpsdResponsibleDepartment 2
PrpsdRespPersonMaxClassProblty PrpsdRespPersonMaxClassProblty 2
ResponsibleDepartment ResponsibleDepartment 2
ResponsiblePerson GRIRClrgProcessResponsibleUser,ResponsiblePerson 2
SystemMessageIdentification SystemMessageIdentification 2
SystemMessageNumber SystemMessageNumber 2
SystemMessageText SystemMessageText 2
SystemMessageType SystemMessageType 2
SystemMessageVariable1 SystemMessageVariable1 2
SystemMessageVariable2 SystemMessageVariable2 2
SystemMessageVariable3 SystemMessageVariable3 2
SystemMessageVariable4 SystemMessageVariable4 2
@AbapCatalog.preserveKey: true
@AbapCatalog.sqlViewName: 'PFIGRIRPROCESS'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.viewType: #BASIC
@VDM.private:true
@ObjectModel.representativeKey: 'PurchasingDocumentItem'
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog.buffering.status: #NOT_ALLOWED
@Metadata.ignorePropagatedAnnotations: true 

@Search.searchable: false
@ObjectModel.compositionRoot: true
@ObjectModel.entityChangeStateId: 'GRIRClearingProcessStatus'

define view P_GRIRProcess as select from fins_grirproc

association[1]      to I_CompanyCode             as _CompanyCode               on $projection.CompanyCode                   = _CompanyCode.CompanyCode
association[1]      to I_PurchasingDocument      as _PurchasingDocument        on $projection.PurchasingDocument            = _PurchasingDocument.PurchasingDocument
association[1]      to I_PurchasingDocumentItem  as _PurchasingDocumentItem    on $projection.PurchasingDocument            = _PurchasingDocumentItem.PurchasingDocument and
                                                                                  $projection.PurchasingDocumentItem        = _PurchasingDocumentItem.PurchasingDocumentItem 
association[0..1]   to I_GRIRProcessStatus       as _GRIRProcessStatus         on $projection.GRIRClearingProcessStatus     = _GRIRProcessStatus.GRIRClearingProcessStatus
association[0..1]   to I_GRIRProcessStatus       as _GRIRPrpsdStatus           on $projection.GRIRClrgProcessPrpsdStatus    = _GRIRPrpsdStatus.GRIRClearingProcessStatus
association[1]      to I_GRIRProcessPriority     as _GRIRProcessPriority       on $projection.GRIRClearingProcessPriority   = _GRIRProcessPriority.GRIRClearingProcessPriority
association[1]      to I_GRIRProcessPriority     as _GRIRClrgProcPrpsdPriority on $projection.GRIRClrgProcPrpsdPriority     = _GRIRClrgProcPrpsdPriority.GRIRClearingProcessPriority
association[0..1]   to I_GRIRProcessRootCause    as _GRIRProcessRootCause      on $projection.GRIRClearingProcessRootCause  = _GRIRProcessRootCause.GRIRClearingProcessRootCause
association[0..1]   to I_GRIRProcessRootCause    as _GRIRProcessPrpsdRootCause on $projection.GRIRClrgProcessPrpsdRootCause = _GRIRProcessPrpsdRootCause.GRIRClearingProcessRootCause

{
    @ObjectModel.foreignKey.association: '_CompanyCode'
    key fins_grirproc.companycode                as CompanyCode,
    @ObjectModel.foreignKey.association: '_PurchasingDocument'
    key fins_grirproc.purchasingdocument         as PurchasingDocument,
    key fins_grirproc.purchasingdocumentitem     as PurchasingDocumentItem,
    fins_grirproc.lastchangedatetime             as LastChangeDateTime,
    fins_grirproc.lastchangedbyuser              as LastChangedByUser,
    fins_grirproc.responsibledepartment          as ResponsibleDepartment,
    fins_grirproc.responsibleperson              as ResponsiblePerson,
    fins_grirproc.grirclearingprocessstatus      as GRIRClearingProcessStatus,
    fins_grirproc.grirclearingprocesspriority    as GRIRClearingProcessPriority,
    fins_grirproc.hasnote                        as HasNote,
    fins_grirproc.note                           as Note,
    fins_grirproc.systemmessageidentification    as SystemMessageIdentification,
    fins_grirproc.systemmessagetype              as SystemMessageType,
    fins_grirproc.systemmessagenumber            as SystemMessageNumber,
    fins_grirproc.systemmessagevariable1         as SystemMessageVariable1,
    fins_grirproc.systemmessagevariable2         as SystemMessageVariable2,
    fins_grirproc.systemmessagevariable3         as SystemMessageVariable3,
    fins_grirproc.systemmessagevariable4         as SystemMessageVariable4,
    fins_grirproc.systemmessagetext              as SystemMessageText,
    fins_grirproc.grirclearingprocessrootcause   as GRIRClearingProcessRootCause,
    fins_grirproc.prpsdresponsibledepartment     as PrpsdResponsibleDepartment,
    fins_grirproc.proposedresponsibleperson      as ProposedResponsiblePerson,
    fins_grirproc.grirclrgprocessprpsdstatus     as GRIRClrgProcessPrpsdStatus,
    fins_grirproc.grirclrgprocprpsdpriority      as GRIRClrgProcPrpsdPriority,
    fins_grirproc.grirclrgprocessprpsdrootcause  as GRIRClrgProcessPrpsdRootCause,    
    fins_grirproc.prpsdrespdeptmaxclprobability  as PrpsdRespDeptMaxClProbability,
    fins_grirproc.prpsdresppersonmaxclassproblty as PrpsdRespPersonMaxClassProblty,
    fins_grirproc.grirproposedstatusmaxclproblty as GRIRProposedStatusMaxClProblty,
    fins_grirproc.grirproposedpriomaxclproblty   as GRIRProposedPrioMaxClProblty,
    fins_grirproc.grirprpsdrootcausemaxclproblty as GRIRPrpsdRootCauseMaxClProblty,
    fins_grirproc.grirprocprpsllastchangedtetime as GRIRProcPrpslLastChangeDteTime,
    

    case 
        when fins_grirproc.lastchangedatetime <> 0
            then cast( cast( substring( cast( fins_grirproc.lastchangedatetime as abap.char(17) ), 1, 8 ) as abap.dats ) as fis_aufaedat preserving type)
        else
            cast( cast( '00000000' as abap.dats ) as fis_aufaedat preserving type)
    end as LastChangeDate,
   
    
    
    _CompanyCode,
    _PurchasingDocument,
    _PurchasingDocumentItem,
    _GRIRProcessStatus,
    _GRIRPrpsdStatus,
    _GRIRProcessPriority,
    _GRIRClrgProcPrpsdPriority,
    _GRIRProcessRootCause,
    _GRIRProcessPrpsdRootCause
}