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

COMMA MOVE

Former Member
0 Likes
776

I WANT TO USE COMMAND MOVE TO COLLECT SUM

(LIKE SUM = SUM + V_ZXXX.)

ANY IDEAS?

6 REPLIES 6
Read only

Former Member
0 Likes
738

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_ZXXX

you can use

ADD V_ZXXX to SUM.

which is cretainly more readable and english-like.

Regards,

Anand Mandalika.

Read only

0 Likes
738

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

Read only

0 Likes
738

declare sum as in driver program.

data: sum type p decimal 2.

Read only

0 Likes
738

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

Read only

0 Likes
738

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.

Read only

Former Member
0 Likes
738

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.