cancel
Showing results for 
Search instead for 
Did you mean: 

How to format the weight

Former Member
0 Kudos

Hi All,

How to format the weight as per the Language.

For example if weight is 83.260(It means eight three kilo and two hundered sixy gram), which is when you see on the screen field. I need to display it in desired format.

How can I format it for example for DE and Other language like

83.260,00

and for EN it should be

83,260.00

Is there a function module for this.

I have tried using SET COUNTRY 'DE' or SET COUNTRY 'EN'

Thanks,

Mark

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

This message was moderated.

Former Member
0 Kudos

Hi,

Try like this.

DATA: v_lang TYPE tcp0c-langu,

v_cntry TYPE tcp0c-country,

v_mod TYPE tcp0c-modifier.

GET LOCALE LANGUAGE v_lang COUNTRY v_cntry MODIFIER v_mod.

SET LOCALE LANGUAGE 'E' COUNTRY V_cntry.

"do the formating for weight here."

SET LOCALE LANGUAGE v_lang COUNTRY V_cntry.

Use same logic for DE also.

Regards

Sandeep Reddy