2008 Aug 08 11:03 AM
hello
here is my problem
say i have an amount of 8,765.43, some times in sap this value is comming as 8.765,43
i mean to say its displaying . in the place of , and , in the palce of .
now if my value is displayed like 8.765,43 how can i change this to original format 8,765.43
please do not give answers considering only this value
this is just an example
ram
2008 Aug 08 11:13 AM
Hi,
DATA : lv_dcpfm TYPE xudcpfm.
SELECT SINGLE dcpfm FROM usr01 INTO lv_dcpfm
WHERE bname = sy-uname.
DATA lv_amt_formt(17) TYPE c value '8.765,43'.
IF lv_dcpfm = 'X'.
REPLACE ALL OCCURRENCES OF ',' IN:
lv_amt_formt WITH '' .
ELSEIF lv_dcpfm = ''.
REPLACE ALL OCCURRENCES OF '.' IN:
lv_amt_formt WITH '' .
REPLACE ALL OCCURRENCES OF ',' IN:
lv_amt_formt WITH '.' .
ENDIF.
Regards,
Durai.V
hello
here is my problem
say i have an amount of 8,765.43, some times in sap this value is comming as 8.765,43
i mean to say its displaying . in the place of , and , in the palce of .
now if my value is displayed like 8.765,43 how can i change this to original format 8,765.43
please do not give answers considering only this value
this is just an example
ram
2008 Aug 08 11:05 AM
Hi Ram,
take a look at SU01 with your username. on the defaults tab, check which decimal notation is selected.
regards,
Peter
2008 Aug 08 11:13 AM
Hi,
DATA : lv_dcpfm TYPE xudcpfm.
SELECT SINGLE dcpfm FROM usr01 INTO lv_dcpfm
WHERE bname = sy-uname.
DATA lv_amt_formt(17) TYPE c value '8.765,43'.
IF lv_dcpfm = 'X'.
REPLACE ALL OCCURRENCES OF ',' IN:
lv_amt_formt WITH '' .
ELSEIF lv_dcpfm = ''.
REPLACE ALL OCCURRENCES OF '.' IN:
lv_amt_formt WITH '' .
REPLACE ALL OCCURRENCES OF ',' IN:
lv_amt_formt WITH '.' .
ENDIF.
Regards,
Durai.V
2008 Aug 08 11:26 AM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |