07 OIA With Aggregation Function
07 OIA With Aggregation Function
data(lo_timer) = cl_abap_runtime=>create_hr_timer( ).
data(t1) = lo_timer->get_runtime( ).
ENDSELECT.
*Takt 2 developements
select bp_id, company_name, sum( item~gross_amount ) as gross_amount,
item~currency_code as currency_code
from snwd_so_inv_item as item inner join
snwd_so_inv_head as head on item~parent_key = head~node_key
inner join snwd_bpa as bpa
on bpa~node_key = head~buyer_guid where head~payment_status = ''
group by bp_id, company_name, item~currency_code
into @data(ls_amt).
ENDSELECT.
loop at lt_days into ls_days.
ENDLOOP.
data(t2) = lo_timer->get_runtime( ).
data(times) = ( t2 - t1 ) / 1000.