‎2006 Jun 26 8:35 AM
I WANT TO USE COMMAND MOVE TO COLLECT SUM
(LIKE SUM = SUM + V_ZXXX.)
ANY IDEAS?
‎2006 Jun 26 8:39 AM
Hi Liat,
I don't think i understood your question correctly. If you want to use a statement to do some addition,
Instead of
SUM = SUM + V_ZXXXyou can use
ADD V_ZXXX to SUM.which is cretainly more readable and english-like.
Regards,
Anand Mandalika.
‎2006 Jun 26 9:05 AM
i have problem
sum is not apear to me as 80.00 only as 80 (in smartform)
so i use move and i get it.
now i need to make sum, but the statment sum = ...
give me 80 without the .00
‎2006 Jun 26 9:07 AM
‎2006 Jun 26 9:07 AM
Hi,
declare the variable sum as p
the tested code:-
DATA: SUM type p decimals 2.
sum = 2 + 3.
WRITE:/ 'sum = ', sum.
Output 5.00
Sameena
‎2006 Jun 26 9:09 AM
Hi,
Is the problem still persists?
Wht is the Decimal notation in your user Profile ?
goto Trnx <b> SU01 </b> -> Defaults -> decimal notation to
<b> 1,234,567.89 </b>
Rgds,
Jothi.
Mark useful answers.
‎2006 Jun 26 8:44 AM
Cud you specify why you are particular in using 'MOVE' cmd.
LOOP AT COMPANIES INTO WA_COMPANIES.
AT FIRST.
SUM.
WRITE: 'Sum of all V_zxxx:',
55 WA_COMPANIES-v_zxxx.
ENDAT.
Rgds,
Jothi.