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

Former Member
0 Likes
340

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

3 REPLIES 3
Read only

Former Member
0 Likes
314

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

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
314

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

Read only

Former Member
0 Likes
314

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