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

Type conflict problem in Custom BAPI

Former Member
0 Likes
392

Dear All,

We have created a Custom BAPI to show article number , it's current price and moving avg price for a given date of range. This BAPI will be called from another VB software. The FM is working fine but when we try to call it from se38 , in order to test, then the program gets dump showing that, Type conflict when calling a function module (field length). In the function module interface, you can specify only fields of a specific type and length under "DATE1". Although the currently specified field. "DAT1" is the correct type, its length is incorrect.

Here DAT1 is the parameter value that I am passing to the FM and DATE1 is the import parameter of FM. Plz tell me why I am getting this dump.

With regards,

Rosaline.

1 REPLY 1
Read only

Former Member
0 Likes
357

Hello,

seems that the definiton of DATE1 in SAP is different to the definition of your DAT1-field in VB.

You could check, if the DATE1-Parameter in SAP is of the type DATS - then your would have to supply a date

in form of 8 chars YYYYMMDD.

Regards Wolfgang