Application Development and Automation 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: 
Read only

bdc program

Former Member
0 Likes
664

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

5 REPLIES 5
Read only

Former Member
0 Likes
634

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

Read only

0 Likes
634

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

Read only

0 Likes
634

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

Read only

0 Likes
634

Please try to select the first decimail notation that u see. This should work as far as I know.

Read only

Former Member
634

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