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: 

Modifying char field as per currency and user settings

Former Member
0 Kudos

Hi

I'm doing something like this


* lv_quant is a charatcer type field
* lv_qty and lv_qoh are currency type fields

          WRITE  lv_qty       TO   lv_quant CURRENCY lv_waers.
          MOVE   lv_quant     TO   lv_qoh.
          CLEAR  lv_quant.

Now to move a char field to a number field we need to have it in the format 12345.67 or 1234567 strictly.

How do I ensure that for all user settings (decimal notations and thousand separators) and currencies I always have lv_quant in the above format?

Thanks

Pushpraj

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi pushparaj ,

If you want it in the second format i.e with out any separators then try using no-grouping which removes all the separators for type I if your using it or you can go for no-sign also to avoid the symbols in between .

Hope it helps!

Much Regards ,

Amuktha .

2 REPLIES 2

Former Member
0 Kudos

Hi,

For decimal notations and thousand separators you use country as you using currency it will automaticaly come in output.

Former Member
0 Kudos

Hi pushparaj ,

If you want it in the second format i.e with out any separators then try using no-grouping which removes all the separators for type I if your using it or you can go for no-sign also to avoid the symbols in between .

Hope it helps!

Much Regards ,

Amuktha .