cancel
Showing results for 
Search instead for 
Did you mean: 

SMARTFORM& SUM Statement doubts

Former Member
0 Kudos

hi friends,

1.i am using sum statment to add net amount.here i have 5 materials

two with minus sign [10.00,20.00,05.00-,30.00,10.00-]

my result should be 45.00.but minus amount is getting subtracted

twice i get 30.00 has result

plz if anyone have any idea wat will be wrong

regards

soorya

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hi soorya,

just like this,

in samrtforms global definations u can define one field for total, go to currency/quantity tab and define reference field for that,

go to itab loop in smartforms,

on calculations tab just define u field and select total after the loop check box,

save and activate then it works properly.

regards points if useful,

regards,

seshu.

Former Member
0 Kudos

hi soorya,

Instead of using SUM statement...do one thing define a global variable in smartform...

and go on adding the net amount with each materials net amnt value...

u must have used a loop node in ur smartforms i suppose...

so just insert program lines in ur loop node...

the code will be...in smartform

before this...

CLEAR gv_net_amnt.

LOOP node.

Program lines will be ...

gv_net_amnt = gv_net_amnt + net amnt field.

ENDLOOP.

hope this will surely help u out...

please reward points in case usefull...

Regards,

prashant