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: 

To convert 20 char field value in amount (CURR 11(length ) 2(decimal))

Former Member
0 Kudos

HI

I want FM or logic to convert 20 char field value in amount (CURR 11(length ) 2(decimal)) in SRM server .

there is FM "HRCM_STRING_TO_AMOUNT_CONVERT" in R/3 what for the way I want , but cannot you as it is not here In SRM server .

let me know how can I achive this

thanks in advance

Kakoli

1 ACCEPTED SOLUTION

Sandra_Rossi
Active Contributor
0 Kudos

Just do a "little" conversion by yourself, so that to use the following statement :

packed = alpha

alpha must be in format with dot only (no comma) and trailing minus sign, like "9999999.9999-"

use abap statements TRANSLATE, REPLACE, etc.

2 REPLIES 2

Sandra_Rossi
Active Contributor
0 Kudos

Just do a "little" conversion by yourself, so that to use the following statement :

packed = alpha

alpha must be in format with dot only (no comma) and trailing minus sign, like "9999999.9999-"

use abap statements TRANSLATE, REPLACE, etc.

Former Member
0 Kudos

as I cant find sdt Fm in SRM ,so solved it by Replace and condence , and used SUSR_GET_USER_DEFAULTs to fetch the user decimal format ,then writen the code accodingly to remove ',' from the char field . with no ',' it user to convert in currency field at its own