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- Currency

Former Member
0 Likes
1,237

Hi Guys!!

I desclared the amount field as TYPE P decimals 2,but while excuting BDC am gettinan error msg stating that Input must be in the format __.___.___.__~,__.

Its taking up the value if i remove the decimals.

Is there any solution to give the amount as in the local file (like 46.16,100.123 etc)

Warm Regards,

Mohandoss P

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,095

Hey u can also try whether the currency format for your profile is set as in the same way you are trying to enter the value.

U can navigate by:

SYSTEM>>USER PROFILE>>OWN DATA

and change the currency format and see if it helps..

Thanx,

Navin.

Hi Guys!!

I desclared the amount field as TYPE P decimals 2,but while excuting BDC am gettinan error msg stating that Input must be in the format __.___.___.__~,__.

Its taking up the value if i remove the decimals.

Is there any solution to give the amount as in the local file (like 46.16,100.123 etc)

Warm Regards,

Mohandoss P

8 REPLIES 8
Read only

Former Member
0 Likes
1,095

hi,

do this way ...


data : v_dmbtr like bseg-dmbtr.

write : '1345566.23'  to v_dmbtr.

Use v_dmbtr to your BDC code which has the required format..

Regards,

Santosh

Read only

Former Member
0 Likes
1,095

Yes, change the decimal notation in the user settings (temporarily) to the format to use the decimal point instead of ','.

Regards,

John.

Read only

Former Member
0 Likes
1,096

Hey u can also try whether the currency format for your profile is set as in the same way you are trying to enter the value.

U can navigate by:

SYSTEM>>USER PROFILE>>OWN DATA

and change the currency format and see if it helps..

Thanx,

Navin.

Read only

prince_isaac
Active Participant
0 Likes
1,095

hie Mohan

u can also declare a char field of same length as your amount field and use that char variable in your bdc. Also condense the char field before you use it to make sure there are no spaces.

data: my_amount(13).

my_amount = bseg-wrbtr.

condense my_amount no-gaps.

PERFORM bdc_field USING 'FKKZPLST-BETRZ(01)'

my_amount.

reward points if helpfull

IsaacPrince

Read only

Former Member
0 Likes
1,095

Mohan,

In BDC amount field should be type c.

Amit.

Read only

Former Member
0 Likes
1,095

Hi Mohan,

Declare the amount field with the type C(len) , it should not create any problem.

Thanks,

Keerthi.

Read only

Former Member
0 Likes
1,095

Hi,

Declare the amount field as type C(with required lengtyh),

It should not create any problem.

Thanks,

Keerthi.

Read only

Former Member
0 Likes
1,095

Hi Mohan,

Create one new variable of type c and pass the amount field to this newly created character field. Then use the new variable in your BDC.

Rgds,

Bujji