hi, i have a problem with oDocument Object in field FolioNumber.
Falló la actualización del Documento: -5002,Cannot insert value in the 'Folio Number' field.
I work with SBO 2007 PL 03.
Dim oDoc As SAPbobsCOM.Documents
oDoc = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices)
oDoc.GetByKey(oEditTextDocEntry.Value)
oDoc.FolioNumber = CType(oEditText.Value, Integer)
oDoc.Update()
Dim nErr As Integer
Dim ErrMsg As String
Call oCompany.GetLastError(nErr, ErrMsg)
If (0 <> nErr) Then
SBO_Application.MessageBox("Falló la actualización del Documento: " + Str(nErr) + "," + ErrMsg)
End If
-
-
Extract from SDK help:
Description
Sets or returns the additional number for a printed document.
(field name: FolioNum).
Property type
Read-write property
Syntax
Visual Basic
Public Property FolioNumber() As Long
Remarks
Country-specific field for Mexico and Chile.
my country is Chile.
thanks.
Jorge
-
-
additional information
for A/P Invoice (OPCH table) its working fine, but
A/R Invoice (OINV table) isn't working.