cancel
Showing results for 
Search instead for 
Did you mean: 

while creating BP through Addon web Service

Former Member
0 Kudos

hi ,

while creating BP through Addon web Service

(10001) Business partner already exits in sap check once ..

But it is not created in SAP

Accepted Solutions (0)

Answers (3)

Answers (3)

pvsbprasad
Active Contributor
0 Kudos

Hi,

Dim nErr As Long

        Dim errMsg As String

        'Create the BusinessPartners object

        Dim vBP As SAPbobsCOM.BusinessPartners

        vBP = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oBusinessPartners) 'Calls BusinessPartners object

        'Set values of the BusinessPartners object's mandatory and optional properties

        vBP.CardCode = "HU1003" 'Mandatory property in the BusinessPartners object

        vBP.CardName = "ABCD"

        vBP.CardType = SAPbobsCOM.BoCardTypes.cCustomer

        vBP.SubjectToWithholdingTax = SAPbobsCOM.BoYesNoEnum.tNO

     

        If (0 <> vBP.Add()) Then

            MsgBox("Failed to add an business partner")

        Else

            Dim objCode As String

            MsgBox("Succeeded add a business parnter, new objcode=" + vBP.CardCode)

         End If

regards,

Prasad

Former Member
0 Kudos

Hi Siva,

It doesn't looks like a SAP error code (should be negative) neither an error message from any APIs...

Are you using a specific Library to create the object? If yes, are you able to verify what is happening Inside when creating a new BP?

Do exist specific check Inside the TransactionNotification stored procedure?

Regards,

Eric

Former Member
0 Kudos

i will check and update u

thank you

eric

AdKerremans
Active Contributor
0 Kudos

Hi Siva,

Did you check in SAP if it already exists?

What is your data and code?

Regards

Ad

Former Member
0 Kudos

ya check code is not created but item name is there

Ad

AdKerremans
Active Contributor
0 Kudos

Hi Siva,

You tell the BP is already in SAP, so the "error" is normal.

Creating the same BP-code  twice is not permitted.

Regards

Ad