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

Re: SUM not working with at end of and at last control breaks.

$
0
0

Hello Allwyn,

 

Reason why you are not getting the total is found.

 

in the below block you should clear c_lv_atend not c_lv_atnew .

 

WRITE: / 'AT ENDOF'.

CLEAR:c_lv_atnew.   <------ here change it to CLEAR:c_lv_atend

LOOP AT ITEKPO INTO WAEKPO.

TEMP = WAEKPO.

AT END OF EBELN.

WRITE: / SY-TABIX, WAEKPO-EBELN, TEMP-NETWR.

c_lv_atEND = c_lv_atend + TEMP-netwr.

ENDAT.

ENDLOOP.

 

See below Screen shot, it worked for me.

 

2-25-2014 11-13-22 PM.jpg

 

Regards,

Thanga


Viewing all articles
Browse latest Browse all 8578

Trending Articles



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