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

Regarding Curreny Field Conversion in BDC Programming

Former Member
0 Likes
432

Hi,

While using <b>BDC</b> Methodology if encounter Currency Fields then do we need to do any conversions.

Can anybody tell me the exact way of deeling with Currency Codes.

Thanks in advance.

Thanks & Regards,

Prasad.

1 ACCEPTED SOLUTION
Read only

Manohar2u
Active Contributor
0 Likes
407

Hi Prasad,

While loading currency field we should look into user's default setting in USR* table. Then based on that you should convert the incoming value into respective decimal seperator format.

Example if the values coming is 10.00. Then if we need to load into ',' seperated setting the replace '.' with ','.

Hope this is clear.

Regds

Manohar

3 REPLIES 3
Read only

Manohar2u
Active Contributor
0 Likes
408

Hi Prasad,

While loading currency field we should look into user's default setting in USR* table. Then based on that you should convert the incoming value into respective decimal seperator format.

Example if the values coming is 10.00. Then if we need to load into ',' seperated setting the replace '.' with ','.

Hope this is clear.

Regds

Manohar

Read only

Former Member
0 Likes
407

goto system->user profile->own data and check the default tab strip and examine the decimal format ther ..m/c dependent ..

another way use currency field as

w_curr_field(12),

reward points if it helps

gunjan

Read only

Former Member
0 Likes
407

Hi

I thin the easier way is to use WRITE statament, infact this command convert the output format of currency field automatically.

So it only needs a char data to transfer the currency field:

DATA VA_AMOUNT(20) TYPE C.

WRITE <AMOUNT> CURRENCY <CURRENCY> TO VA_AMOUNT.

Now you can use VA_AMOUNT to transfer the amount to BDC.

Max