‎2006 Jul 26 3:30 PM
hi friends,
iam developing BDC for FB50. everything posting to screen except <b>document date</b> and <b>amount</b>. i came to know that is not matching . how to solve this problem.
urgent.
chandu
‎2006 Jul 26 3:35 PM
may be the date format and the decimal separator in the amount are not accepted , try to capture the error messages or run it with A mode and check out the error
‎2006 Jul 26 3:36 PM
You must make sure that you date is in the correct format. For example, if your format is MM/DD/YY, then you must pass the date in this format. Also, for the qty field, try moving to a smaller charcter field and then pass this field to the BDC coding.
You can use this function module to format the date for you.
data: bdc_datum(10) type c.
call function 'CONVERT_DATE_TO_EXTERNAL'
exporting
date_internal = sy-datum
importing
date_external = bdc_datum.Use a smaller field for the qty. Define a field like below and use it in the BDC coding. Of course you meed to move the value to this field.
Data: BDC_QTY(10) type c.Regards,
Rich Heilman
‎2006 Jul 26 3:39 PM
Hi,
1)<b>document date</b>
Do it in the way Rich has mentioned.
2)<b>amount</b>
Goto to the Domain of the Screen element field and see the output length. Then declare a character variable of that length and assign the amount value to this field.
It should work fine after this corrections.
Regards,
AS