on 02-24-2007 3:12 AM
Hi,
I have some fields in a table view. one of them is Type P decimals 2.
I get the output like 0,00 and not 0.00.
the problem is that I want to display the second format and not the first and I have no idea how to set it up.
also, when I try reading the values from the screen into the table again (I am working on stateless mode simple BSP) then I get a conversion dump since this is not a number like.
Thanks,
Itay
CHeck out this..String to Decimal...
data: s type string.
data: p type p decimals 2.
s = '1,765,654.25'.
call function 'HRCM_STRING_TO_AMOUNT_CONVERT'
exporting
string = s
decimal_separator = '.'
thousands_separator = ','
importing
betrg = p
exceptions
convert_error = 1
others = 2.
Raja T
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raja,
this function will do the trick but also a simple REPLACE.
but for this I will have to look on the field type and start doing manipulations.
I prefer to refrain from doing that. simple is best.
per my other note, it will be best to find where the defaults for the SU05 internet user are stored.
Thanks.
BTW,
you are doing on hell of a good job in the forum!
I really appreciate your contribution.
Itay
If i am not wrong..YOu can create the User name alias via SU01 for internet user( I read somewhere..)...If you can do then you can mention the Default parameters via SU01.
And one more thing, Internet users can be created via SU01 also..
Hope this will help you...
But you can't expect all the user to have the settings..So i would suggest you to handle thro the program to avoid the Dumps..
<i>* Reward each useful answer</i>
Raja T
Message was edited by:
Raja Thangamani
I think, you user profile needs to be changed..
Goto menu system>user profile>own data--> Default tab...THere it might be defined as 1,23 format..change the format in user profile & check..
Raja T
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks.
I know that the definitions are in the user profiles but what I forgot to mention is:
I am using an internet user (transaction SU05) user type KNA1.
That user does not have a SU01 profile thus I have no idea where it is taking the definitions from. I guess there is some default in SAP... somewhere...
User | Count |
---|---|
81 | |
24 | |
11 | |
9 | |
7 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.