Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8332

Re: ABAP ALV - Totalling using 2 different currency FIELDS

$
0
0

Hi A J,


Please add the following code.....

 

CLEAR wa_cat.

  wa_cat-fieldname = 'TOT_AMT'.

  wa_cat-col_pos = '7'.

  wa_cat-scrtext_l = 'Grand Total in Transactional Curr.'.

  wa_cat-scrtext_m = wa_cat-scrtext_l.

  wa_cat-scrtext_s = wa_cat-scrtext_l.

  wa_cat-reptext   = wa_cat-scrtext_l.

  wa_cat-do_sum    = 'X'.

   wa_cat-cfieldname = 'WAERS'.

  APPEND wa_cat TO gt_cat_tot

 

 

  CLEAR wa_cat.

  wa_cat-fieldname = 'WAERS'.

  wa_cat-reptext   = 'Transactional Curr. Key'.

  wa_cat-scrtext_l = 'Transactional Curr. Key'.

  wa_cat-scrtext_m = 'Transactional Curr. Key'.

  wa_cat-scrtext_s = 'Transactional Curr. Key'.

  APPEND wa_cat TO gt_cat_tot.

 

 

 

  CLEAR wa_cat.

  wa_cat-fieldname = 'LOCAL_CURR'.

  wa_cat-reptext   = 'Local Curr. Key'.

  wa_cat-scrtext_l = 'Local Curr. Key'.

  wa_cat-scrtext_m = 'Local Curr. Key'.

  wa_cat-scrtext_s = 'Local Curr. Key'.

  APPEND wa_cat TO gt_cat_tot.

 

 

 

  CLEAR wa_cat.

  wa_cat-fieldname = 'TOT_LOC_AMT'.

  wa_cat-col_pos = '14'.

  wa_cat-scrtext_l = 'Grand Total in Local Curr.'.

  wa_cat-scrtext_m = wa_cat-scrtext_l.

  wa_cat-scrtext_s = wa_cat-scrtext_l.

  wa_cat-reptext   = wa_cat-scrtext_l.

  wa_cat-do_sum    = 'X'.

wa_cat-cfieldname = 'LOCAL_CURR'.

  APPEND wa_cat TO gt_cat_tot.


Viewing all articles
Browse latest Browse all 8332

Trending Articles



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