ABAP CDS Input Parameteres ile ilgili kod.

Ön koşullar

1. ABAP CDS yaratma
2. SAP EPM

Senaryo

Satış siparişlerini müşteri parametresiyle filtreleyebilen rapor.

ABAP CDS Kodu

@AbapCatalog.sqlViewName: 'ZZXB_V_INPUT'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Input parametresi alan CDS örneği'
define view zzxb_cdsv_input_parameters
    with parameters customer : abap.char( 80 )
    as 
    select from snwd_so as so 
        inner join snwd_bpa as bpa
                on so.buyer_guid = bpa.node_key    
{
    so.so_id as orderID,
    $parameters.customer as customer_name,
    so.gross_amount,
    so.currency_code
}
where bpa.company_name = $parameters.customer