Skip to Content
avatar image
Former Member

while creating BP through Addon web Service

hi ,

while creating BP through Addon web Service

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

But it is not created in SAP

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Sep 08, 2014 at 08:24 AM

    Hi Siva,

    Did you check in SAP if it already exists?

    What is your data and code?

    Regards

    Ad

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 08, 2014 at 08:49 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 10, 2014 at 10:48 AM

    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

    Add comment
    10|10000 characters needed characters exceeded