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 printing total

Former Member
0 Likes
776

HI all ,

Please help me in the issue , In my smartform i am priint total value of the line items . but its totaling the line items of the last page only but not the one from page 1 . can you please suggest me possible solution

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
751

Hi,

You can do this by declaring a Global variable and incrementing it for each new item.Do not clear it.

Add the Global variable into Input and Output variables column in the Program lines / Initialisation Node.

loop at it_tab1.

at new item.

GV_total = Gv_total + 1.

endat.

endif.

You can use it at end.

Regards,

KC

HI all ,

Please help me in the issue , In my smartform i am priint total value of the line items . but its totaling the line items of the last page only but not the one from page 1 . can you please suggest me possible solution

3 REPLIES 3
Read only

Former Member
0 Likes
752

Hi,

You can do this by declaring a Global variable and incrementing it for each new item.Do not clear it.

Add the Global variable into Input and Output variables column in the Program lines / Initialisation Node.

loop at it_tab1.

at new item.

GV_total = Gv_total + 1.

endat.

endif.

You can use it at end.

Regards,

KC

Read only

0 Likes
751

Hi,

Thanks for the answer , I am not clearing at end of the page but still its clearing at end of the page . Please suggest

Read only

Former Member
0 Likes
751

answerrd