SAP ABAP - CDS View Convert TCURR Table Date Value

 

@AbapCatalog.sqlViewName: 'ZVTCURR'

@AbapCatalog.compiler.compareFilter: true

@AbapCatalog.preserveKey: true

@AccessControl.authorizationCheck: #NOT_REQUIRED

@EndUserText.label: 'CDS Exchange Rates'

define view ZCDS_TCURR as select from tcurr {

    key kurst,

    key fcurr,

    key tcurr,

    key gdatu,

    ukurs,

    ffact,

    tfact,

    cast( cast( ( 99999999 - cast( cast( gdatu as abap.numc( 8 ) ) as abap.int4 ) ) as abap.char( 11 ) ) as abap.dats ) as gdat1,  

    dats_add_days(cast( cast( ( 99999999 - cast( cast( gdatu as abap.numc( 8 ) ) as abap.int4 ) ) as abap.char( 11 ) ) as abap.dats ), -1, 'INITIAL' ) as gdat2

}



Comments

Popular posts from this blog

PHP MySql CRUD Dengan Konsep MVC

Laravel - Sistem Informasi Perpustakaan Sederhana Laravel

IT Asset Management Dengan PHP MySQL