Skip to Content
0
Former Member
Jul 23, 2010 at 02:39 PM

BAPI Not checking Vendor existance (BAPI_VENDOR_EXISTENCECHECK)

95 Views

Hi all.

My BDC will created and update the vendor. code is

Check the vendor existance using BAPI_VENDOR_EXISTENCECHECK.

IF VENDOR exist.

Update the VENDOR.

ELSE.

Create VENDOR.

ENDIF.

But the problem is, in case of update record come very next one of the creation of same record.

For the first record BAPI giving vendor doesn't exist and creating, it is fine but

For second one BAPI is giving vendor doesn't exist but the same is exist.

data

(1000091098 ''''''''' 1st record'

1000091098 ''''''''''') 2nd record

I can't use the select statement instead of BAPI.

Why the BAPI is getting fails to do. i am using commit work after BDC also.

Regards,

Sri