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

Moving character field data to Quantity field variable

Former Member
0 Likes
2,327

Hi,

I have a screen in which there is a charater field which holds the Quantity. for example 340,00

now i have to update the dictionary table field with this value, when iam assigning directly to the workarea it is giving dump as '340,00 cannot be interpret as number'.

I tried all the ways possible, however it is not solved...

plz help me with your inputs.

thanks in advance

Sunny.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,092

Hi Sunny,

delcare on variable with the packed decimal 2 and move your value to new variable.

solves your problem.

Thanks

4 REPLIES 4
Read only

Former Member
0 Likes
1,092

Hi..

Did you try using the MOVE statement...?..

Read only

Former Member
0 Likes
1,093

Hi Sunny,

delcare on variable with the packed decimal 2 and move your value to new variable.

solves your problem.

Thanks

Read only

Former Member
0 Likes
1,092

Hi,

try this...

GWA_INPUT_TABLE-VALUE - this is your character field

G_AMOUNT is your quantity or currency field.

SHIFT GWA_INPUT_TABLE-VALUE LEFT DELETING LEADING SPACE.

TRANSLATE GWA_INPUT_TABLE-VALUE USING ', '.

CONDENSE GWA_INPUT_TABLE-VALUE NO-GAPS.

G_AMOUNT = GWA_INPUT_TABLE-VALUE.

Regards,

Venkatesh

Read only

Former Member
0 Likes
1,092

hi,

use field symbols for conversion of charector to the quantity field.

field-symbol : <fs> type KTMNG .

data : v_a(5),

v_b type ktmng.

Move : v_a to <fs>,

<fs> to ktmng.

Regards,

Naresh.