2013 Nov 21 8:24 AM
Hi,
I create a total and subtotal in my smartform but the total was worng.
it's take that extra value in next row value .
how to i control it.
pls help me that issue
Thanks
Ram.
2013 Nov 21 9:40 AM
Hi friends ,
finally i find out the solution .
The solution is create a program line and put a "clear " statement for which field you want .
Thnaks and Regards
Ram
2013 Nov 21 8:35 AM
2013 Nov 21 8:41 AM
Hi Ram,
How exactly have you done this totaling.
Either you can do the totaling in the loop of main table and display subtotals as and when required. You can use calculation in main table loop for final totals.
Regards,
DN.
2013 Nov 21 8:46 AM
Hi Ramkumar K
Try like this
For more information see this wiki page
http://wiki.scn.sap.com/wiki/display/ABAP/Subtotal+In+SAP+SMARTFORMS
2013 Nov 21 9:06 AM
2013 Nov 21 9:35 AM
Hello Ram-
Follow below approach:
For grand total you can directly use Operation:SUM Total available in Calculations tab under Tale.
For Sub-total:
Under your Table-> Main Area -> Text Cell -> Create a Program Line with below code:
CLEAR: lv_value.
gv_sub_total = gv_sub_total + wa_itab-val2.
lv_value = wa_itab-val2.
And before displaying your sub-total you have to subtract lv_value from gv_sub_total.
-Venkat
2013 Nov 21 9:40 AM
Hi friends ,
finally i find out the solution .
The solution is create a program line and put a "clear " statement for which field you want .
Thnaks and Regards
Ram