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

regarding Smartforms

Former Member
0 Likes
482

Hi Experts,

i want to do Sum of prices at the end of field. How can i do this in Smartforms? give me examples showing procedure to explain this?

Thanks

3 REPLIES 3
Read only

Former Member
0 Likes
458

see sap example programs.

SF*

SF_EXAMPLE_01

Read only

0 Likes
458

hi ,

In table........goto Calculation Tab..........

give.........

operation------sum

field name -


that u want to sum like itab-lfimg

tareget fields name----


slfimg(specify this in global data)

Time -


when u want(after loop,before loop..........)

And at Footer specify........-slfimg(specify this in global data) field.......

Reward points if helpful........

Regards,

Imran

Read only

Former Member
0 Likes
458

Hi

For Totals and subtotals - Check the link...

You can use the PROGRAM LINES node to calculate the page totals in Table node.

Table Node has three sections:

Header: (Triggered once in the beginning of a page)

Create a Program lines node to reset the value of TOTAL to 0.

Main Area (For each row of internal table)

Create a Program lines node to add the Value to TOTAL

Footer (Triggered once in the End of a page)

Display the TOTAL

Note: 1) You can declare the TOTAL variable in the GLOBAL Definitions under GLOBAL DATA.

2) In the PROGRAM lines always pass the TOTAL in both INPUT and OUTPUT parameters

<b>Reward points for useful Answers</b>

Regards

Anji