Hi you all!!. I'm trying to add a BP from Vb.Net. I've followed all steps defined on the SDK. I've added the required fields:
Dim vBP As SAPbobsCOM.BusinessPartners
vBP = Conexion.Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oBusinessPartners) (Conexion.Company is a class managing the connection to SB1)
vBP.CardName = txt_NuevoIC.text
vBP.CardType = SAPBobsCOM.BoCardTypes.cLid
vBP.CardCode = Generar_CardCode()
Dim ernum as Interger = vBP.Add()
Dim erText as Text =""
if ernum<>0 then -------------->Error
When I perform the ADD instruction I get error -4002: "To generate this document, first define the numbering series in the Administration module"
I've already defined the series for this documents (clients and providers). There're not authorization problems cause mine is a super user and has been granted access to everywhere
First thought was to define manually the series number, using:
vBP.Series = 46 (The number of my series)
But the only thing I receive is a giant error of MEMORY!!...and says it couldn't find the source code ¿¿??
I'll really appreciate the help
Thanks in advance!!!