Window Expressions in ABAP SQL -Open SQL Enhancement ABAP on HANA - Part 14
*&---------------------------------------------------------------------* *& Report zr_opensql_23_widow_expression *&---------------------------------------------------------------------* *& *&---------------------------------------------------------------------* REPORT zr_opensql_23_widow_expression. SELECT FROM vbak FIELDS vbeln AS so, kunnr AS cust_id, waerk AS curre, netwr AS net_amt, SUM( netwr ) OVER( PARTITION BY kunnr ORDER BY netwr *ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW * ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ROWS BETWEEN 2 PRECEDING AND 2 FOLLOWING ...