cancel
Showing results for 
Search instead for 
Did you mean: 

Value conversion according to User default

hitesh2
Participant
0 Kudos

Hi,

I have a Problem in a BDC. I am trying to populate pick quantity filed in my BDC ( Tcode VL02N ) the BDC works fine for a particular user default setting( NNN,NNN.NN ). But is the same program is used by some other user whose Default settings are different ( NNN.NNN,NN ) BDC fails .

I need to convert the value based on user default before passing it to the field in BDC.

pl. suggest me the solution .

Thanks.

Hitesh

Accepted Solutions (1)

Accepted Solutions (1)

former_member188685
Active Contributor
0 Kudos

Hi Hitesh,

you can check the user setting from table USR01. using the field <b>DCPFM</b> "decimal notation, you can find the setting for a user and based on that you can proceed.

Regards

vijay

Answers (2)

Answers (2)

Former Member
0 Kudos

hi hitesh ,

goto table usr01 and get the decimal point format

(usr01-dcpfm) then check the value range and write a routine to handle that decimal notation.

plz reward if satisfied

regards

ganesh

Former Member
0 Kudos

Hi

Try to use the WRITE command before transfering the value to BDC table

DATA: QUANTITY(20) TYPE C.

WRITE <QUANTITY> UNIT <UNIT> TO QUANTITY.

<BDC>-VALUE = QUANTITY.

APPEND <BDC>.

In this way the WRITE statament'll write the quantity in the format according to user default parameters.

Max