on 11-12-2008 6:32 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi *sam *,
You can assign directly but not by using move to, then your problem may solved.
Regards,
Mahi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.