Application Development 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: 

Need to move numeric value to Packed decimal.

Former Member
0 Kudos
268

Hi,

I am working on one exit related to VA01.

My requirement below.

v_value is type Numeric and its value is Example 1. i.e. V_VALUE = 1.

and I am trying to move V_VALUE to standard field i.e of type packed decimals 3 it's V_KWMENGE.

I have written the following line of code to move.

V_KWMENGE = V_VALUE.

but what happening in V_KWMENGE = 0.001 storing. It should show me like V_KWMENGE = 1.000 .

Please help out me ...

Thanks in advance.

1 REPLY 1

Former Member
0 Kudos
51

HI

After moving the value...just multiply with 1000.

Since in this case u have three decimals.

V_KWMENGE = V_VALUE.

V_KWMENGE = V_KWMENGE * 1000.

Regards,

Raghu.