Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Smartform issue

ramkumar007
Participant
0 Likes
1,790

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.

1 ACCEPTED SOLUTION
Read only

ramkumar007
Participant
0 Likes
1,751

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

6 REPLIES 6
Read only

Former Member
0 Likes
1,751

This message was moderated.

Read only

Former Member
0 Likes
1,751

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.

Read only

former_member209120
Active Contributor
0 Likes
1,751

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

Read only

ramkumar007
Participant
0 Likes
1,751

HI

  I need each page subtotal .

Thanks & Regards

Ram

Read only

venkat_aileni
Contributor
0 Likes
1,751

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

Read only

ramkumar007
Participant
0 Likes
1,752

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