CASTING and SUB STRING In CDS Views

@AbapCatalog.sqlViewName: 'ZVW_MM_PR_PRO_ST'

@AbapCatalog.compiler.compareFilter: true

@AbapCatalog.preserveKey: true

@AccessControl.authorizationCheck: #CHECK

@EndUserText.label: 'PR Procurement Status'

define view ZVW_MM_PR_PROC_STATUS as select from /dci/glb_prhead as a

                            

{

    cast(a.document_id as abap.char( 10 )) as PR_Num,

    substring(a.plcsta, 3, 4) as status

}

 

Output: 

Comments

Popular posts from this blog

CDS Views: Table Functions with Example

Passing Dynamic Variables to SO10 TEXT

Adobe Form/PDF Form Introduction