cancel
Showing results for 
Search instead for 
Did you mean: 

smartforms

Former Member
0 Kudos

Moved to correct forum by moderator. Please use a more meaningful subject line in future.

Hi Guru's

i retrieved the value in text from sales order item text.

item text value is integer and my text is character . i want to calculate sum of that retrieved value .

i try following code.

data: r type i.

move text to r.

rells = rells + r.

but it not work properly.

regards.

sam.

Edited by: Matt on Nov 12, 2008 9:32 AM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi,

use thr tool LOOP in smartfrom....there is one tab called "CALCULATIONS".....here choose operation as Total....give you field name...and give the target field name.....then drag & drop that target field where you want to display...

Arunima

Former Member
0 Kudos

hi

thanks for reply but my text is character calculation does not allowed calculate character value.

regards

sam.

Former Member
0 Kudos

hello,

in smartfomrs we have three node form attributes,interface,globad defination

in global defination u need to maintain the currency fields in that currency tab.then it works i think so,

thanuk u,

santhosh

Former Member
0 Kudos

hello Sam,

did you use the tool "LOOP"???there is no prob for character...but after summing the target field must be integer type.....

Arunima

Former Member
0 Kudos

Calculate the total and take the total value in integer only, after your calculation assign the total value to the corresponding field.

Try following code.

data: 
  r type i,
  total type i.

Loop at table
 r = table-vtxt.
 total = r + total.
endloop.

Regards,

Mahi.

Edited by: Maheswari Chegu on Nov 12, 2008 7:46 AM

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Try this code.

Data: x type string value '1',

r type i,

tot type i value 2.

move x to r.

tot = tot + r.

write tot.

Former Member
0 Kudos

Hi *sam *,

You can assign directly but not by using move to, then your problem may solved.

Regards,

Mahi