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

ALV List Subtotals and Totals using FM REUSE_ALV_BLOCK_LIST_APPEND

$
0
0

Hello Experts,

 

I have a requirement to display multiple tables so I used FM REUSE_ALV_BLOCK_LIST_APPEND.

 

Now I need to calculate the subtotals and totals but it doesn't work.

 

This is the fieldcatalog for the column I want to sum up

 

  ls_fieldcat-col_pos = 6.

  ls_fieldcat-fieldname = 'TNUM'.

  ls_fieldcat-seltext_m = 'Total Number'.

  ls_fieldcat-do_sum = 'X'.

  APPEND ls_fieldcat TO p_lt_fieldcat. CLEAR ls_fieldcat.

 

I tried using the same fieldcatalog in FM REUSE_ALV_LIST_DISPLAY and it gives me the total value.

Is this also possible for FM FM REUSE_ALV_BLOCK_LIST_APPEND ? If yes then am I missing anything to be passed on to that FM?

 

If you have any sample programs using FM FM REUSE_ALV_BLOCK_LIST_APPEND with subtotals and totals please share...It will be highly appreciated.

 

Please help. Thanks!

 

Regards,

Charm


Viewing all articles
Browse latest Browse all 8332

Trending Articles



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