05-11-2006 3:15 PM
Guy's
i have one problem ,i have one field rf140-wrshb,
it's value in print program is 110.00 ,but when
it goes to form it become 110,00 ,when same value
i pass from form to print program to same field
it go for a dump,
for example 110.00 will become 110,00
and 1100.00 will become 1.100,00 ,
<b>Note:</b> user can go for any user setting ,
can some one give me permanent fix for this issue
05-11-2006 3:17 PM
Check
System->user profile->Own data -> defaults.
Or use SET country command.
OR use write to currency command statement before sapscript.
Setting the User Decimals Format
Your screen and layout sets decimals are affected by :-
OY01 - Country Global Parameters -> Double click on the country code
SU01 - Maintain users -> Click Defaultsbutton
In the Decimal format section.
regards
vinod
05-11-2006 3:19 PM
05-11-2006 3:19 PM
hi goto table
<b>usr01</b>and get the
default decimal setting <b>dcpfm</b> for the user
accordingly
change ur code
05-11-2006 3:36 PM
05-11-2006 3:42 PM
Hi Sanju,
You don't have to change any code in your program.
After longin to SAP Click ->
System -> User Profile -> Own Data . Here click the "Defaults" Tab. There you will see the Decimal notation Radio button. Change it to your format "1,234,567.89" ( Select the Radio Button Net to that).
Save this and rerun your program.
Thanks
Govind.
Message was edited by: Govindarajan Seenivasan
05-11-2006 3:46 PM
use this code in main program
select dcpfm
from usr01
into v_decimalformat
where bname = sy-uname.
case v_decimalformat.
when 'X'.
* Decimal point is period: N,NNN.NN
* modify ur decimal number into this format
when ' '.
*Decimal point is comma: N.NNN,NN
* modify ur decimal number into this format
when 'Y'.
*Decimal point is N NNN NNN,NN
* modify ur decimal number into this format
endcase.
after cheking the default format convert ur number into that format & send it to the script
hope i'm clear enuff
get back to me in case of any problem
05-11-2006 3:19 PM
YOu Char type variables wherever applicable.
<i><b>write rf140-wrshb to v_wrshb.</b></i>
TRansfer the char type variables only between the print program and the form.
REgards,
Ravi
05-11-2006 3:24 PM
go to <b>Systems->User Profile->Own Data</b>. Then click on <b>Defaults</b> Tab. There, you can change the decimal setting to the required format in the <b>Decimal Notation</b> list box.
Regards,
Aswin