P_ChmlCmplIsRawMat

DDL: P_CHMLCMPLISRAWMAT Type: view CONSUMPTION

P_ChmlCmplIsRawMat is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (I_ChmlCmplncInfo) and exposes 1 field with key field ChmlCmplncInfoUUID.

Data Sources (1)

SourceAliasJoin Type
I_ChmlCmplncInfo I_ChmlCmplncInfo from

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName PCCINFORAW view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
VDM.private true view

Fields (1)

KeyFieldSource TableSource FieldDescription
KEY ChmlCmplncInfoUUID ChmlCmplncInfoUUID
@AbapCatalog:
{
  sqlViewName: 'PCCINFORAW',
  compiler.compareFilter: true,
  preserveKey: true
}

--Access Control: Authorizations Checks
@AccessControl:
{
  authorizationCheck: #NOT_REQUIRED
}

--Client Handling of the view
@ClientHandling.algorithm: #SESSION_VARIABLE

--VDM view type
@VDM.viewType: #CONSUMPTION
@VDM.private: true

define view P_ChmlCmplIsRawMat
  as select from I_ChmlCmplncInfo
{

  key ChmlCmplncInfoUUID,
  
  cast( 
            case 
              when MaterialIsSourced = 'X' 
                and MaterialIsTransported = ''
                and MaterialIsSold = ''
                and MaterialIsProduced = ''
                
                then 'X'
             
              when MaterialIsSourced = '' 
                or MaterialIsTransported = 'X'
                or MaterialIsSold = 'X'
                or MaterialIsProduced = 'X'
                
                then ''
                   
            end as boole_d ) as ChmlCmplncInfoIsRawMatl
}