Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

Sum of payment amount

$
0
0

Hi All,

 

I am getting an extract from BSAK and for one payment number (AUGBL), I need to display the sum of  all amounts (WRBTR) . Right now I am doing this:

 

LOOP AT LT_PAYR INTO W_PAYR.

 

     W_OUTPUT-PaymentNumber = W_PAYR-AUGBL.

W_OUTPUT-PaymentTotal = W_PAYR-DMBTR.

w_output-discountduedate1 = W_PAYR-ZFBDT + W_PAYR-ZBD1T .

.

.

.

.

Append w_ouput to it_output.

ENDLOOP.

 

This gives me amount separately not as total.

 

I tried collect but didnt change anything.

 

Can someone advice me how to achieve this.

 

Thanks!




Viewing all articles
Browse latest Browse all 8332

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>