ABAP CDS Arithmetic Casting ile ilgili kod.
Ön koşullar
1. ABAP CDS yaratma
2. SAP EPM
Senaryo
Satış siparişlerinin brüt tutarlarını ve indirimli tutarlarını gösteren rapor.
ABAP CDS Kodu
@AbapCatalog.sqlViewName: 'ZZXB_V_ART_CAST' @AbapCatalog.compiler.compareFilter: true @AccessControl.authorizationCheck: #CHECK @EndUserText.label: 'Arithmetic casting CDS örneği' define view zzxb_cdsv_arithmetic_casting as select from snwd_so as so inner join snwd_bpa as bpa on so.buyer_guid = bpa.node_key { key so.so_id as order_id, bpa.company_name as customer_name, so.gross_amount, cast( so.gross_amount as abap.fltp ) * 0.85 as discounted_amount }