Skip to Content
Former Member
Feb 28, 2007 at 05:54 PM

Retrieve one BP Card from DB



I'm slowly trying to figure out the whole SDK thing and what I am trying to do is be able to pull 1 conact from the SAP DB via the DI API.

I've taken the GetObjectKeyBySingleValue() example from the SDK and trying to make it work for me.

Does this look right?

oRecordSet = oSBObob.GetObjectKeyBySingleValue(SAPbobsCOM.BoObjectTypes.oBusinessPartners, "CardName", txtName.txt, 2)

I am trying to do a search for company names using LIKE and it always returns 0 for the record set.

I am connected to a test database that has a couple of thousand customers in it and I am searching for a company that I know is in it because SAP shows me it.