Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Hanatize code

0 Likes
999

Hi experts,


Could you please help me hanatize the below code. Any ideas would be awesome. Thanks in advance.

  SELECT DISTINCT m~ebeln
                  m~ebelp
                  e~netwr
    FROM eket AS m
   INNER JOIN ekpo AS e
      ON m~ebeln = e~ebeln
     AND m~ebelp = e~ebelp
    INTO (l_ebeln, l_ebelp, l_netwr)
   WHERE m~banfn = xs_banf-banfn
     AND m~bnfpo = xs_banf-bnfpo.

    xs_banf-ekpo_netwr = xs_banf-ekpo_netwr + l_netwr.
  ENDSELECT.
2 REPLIES 2
Read only

matt
Active Contributor
925

The solution is just normal ABAP using SUM. Why hanatize it?

Read only

0 Likes
925

Hi Matthew,

What i am looking for is a way to move the operation in select statement so that the operation happens in database rather than application server.