on 09-08-2014 9:09 AM
hi ,
while creating BP through Addon web Service
(10001) Business partner already exits in sap check once ..
But it is not created in SAP
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Siva,
Did you check in SAP if it already exists?
What is your data and code?
Regards
Ad
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
100 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.