Application Development 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: 

error

Former Member
0 Kudos

Hi Guys

Iam updating MR21 New price(verpr in mbew table) from BDC.

When value is coming into field,but its not updating bcz of currency length or other reason.

iam getting message its should be in this format etc.

my field also is like mbew-verpr.

Thanks in advance

5 REPLIES 5

LeonardoAraujo
Active Contributor
0 Kudos

Do a write to a tex field beforehand. It should automatically convert to the user format. If the user uses comma instead of decimal point, it should be addressed there.

Hope it helps,

Leonardo De Araujo

Former Member
0 Kudos

Hi,

While writing in BDC in loop write WRITE statement to convet it into screen field.

Reward if useful!

0 Kudos

HI Leo,prasad

Thanks for your suggestion

when iam moving to bdc-fval its coming normal value only..its not converting

Please suggest me .

here is my code

BDCDATA-FNAM = 'CKI_MR21_0250-NEWVALPR(01)'.

write wa_mbew-verpr to BDCDATA-FVAL .

Thanks

Former Member
0 Kudos

define that feild

type c (20)

then u won't get any error

for quantity and cost we have to declare like this only

other wise the error wil rise

former_member194669
Active Contributor
0 Kudos

Hi,

write wa_mbew-verpr currency <here u specify the currency key from table TCURX> to BDCDATA-FVAL

Please check the documentation for write syntax

Correct format for currency specified in the field w.

Treats the contents of f as a currency amount. The currency specified in w determines how many decimal places this amount should have.

The contents of w are used as a currency key for the table TCURX; if there is no entry for w, the system assumes that the currency amount has 2 decimal places.

aRs