‎2007 Jul 31 8:08 AM
Hi,
I am working on abdc program where i am trying to upload a numerical value 293,00 .In the program i have written the code as REPLACE ',' WITH '.' INTO v_wrbtr.I have declared v_wrbtr(13) type c.When i try to process the session in the o/p i am getting error as 'enter numeric value'.when i remove '.' and 00 from 293.00 i am not getting any error.How can i upload this value without removing '.' from output?Similarly i want to upload 1 293,00
1.293,00
1293.00 Can anyone help me solve this problem?
Regards,
Hema
‎2007 Jul 31 8:17 AM
Hema,
To upload different values, please go to user profile and change the decimals accordingly.
This way, you will not het this error. Please go to System->User Profile-> Own Data, go to defaults tab and manipulate the decimal notation according to your inputs.
Pls reward if useful.
Thanks
Ganesh.S
‎2007 Jul 31 8:32 AM
Hi,
Three test cases are working.But I am not able to upload one test case 1.293,00 .Could u pls tell me how to upload this data?
Regards,
Hema
‎2007 Jul 31 8:35 AM
Hema,
I am sorry but which country uses this. There are kinds of decimal notations that you can use or default it to use the country settings which your Functional consultant should be able to help you with.
Pls reward all useful answers. Glad to know that 3 cases worked.
Thanks
Ganesh.S
‎2007 Jul 31 8:38 AM
Please try to select the first decimail notation that u see. This should work as far as I know.
‎2007 Jul 31 8:45 AM
hi ,
Below is the sample code which will work for all scenarios.
change it accordingly as per your requirement.
DATA:c_dot(1) TYPE c VALUE '.',
c_keep(1) TYPE c VALUE 'X',
c_y(1) TYPE c VALUE 'Y',
c_space(1) TYPE c VALUE ' ',
c_comma(1) TYPE c VALUE ',',
g_dig01(20) TYPE c,
g_fra02(20) TYPE c,
g_dcpfm TYPE XUDCPFM .
SELECT SINGLE dcpfm FROM usr01
INTO (g_dcpfm)
WHERE bname = sy-uname.
IF NOT OPERATION-PLIFZ IS INITIAL.
SPLIT OPERATION-PLIFZ AT c_dot INTO g_dig01 g_fra02
CASE g_dcpfm.
WHEN c_space.
CONCATENATE g_dig01 g_fra02 INTO OPERATION-PLIFZ SEP
WHEN c_keep.
CONCATENATE g_dig01 g_fra02 INTO OPERATION-PLIFZ SEP
WHEN c_y.
CONCATENATE g_dig01 g_fra02 INTO OPERATION-PLIFZ SEP
ENDCASE.
ENDIF.
CLEAR:g_dig01,
g_fra02.
if not OPERATION-PLIFZ is initial.
IBIPTLOP-PLIFZ = OPERATION-PLIFZ.
endif.
Regards,
Srinivas