‎2007 Jul 12 3:31 PM
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
‎2007 Jul 12 3:36 PM
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
‎2007 Jul 12 3:48 PM
Hi,
While writing in BDC in loop write WRITE statement to convet it into screen field.
Reward if useful!
‎2007 Jul 12 4:16 PM
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
‎2007 Jul 12 4:38 PM
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
‎2007 Jul 12 4:44 PM
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