cancel
Showing results for 
Search instead for 
Did you mean: 

Error Documents Obj. -5002,Cannot insert value in the 'Folio Number' fiel

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

former_member185703
Active Contributor
0 Kudos

Hello Jorge,

I suspect that you don't have a customer in Ramp-Up for 2007?

If you would have - you just can report the issue (that definitely sounds like a bug - essentially when the same works in the B1 application... - can you confirm?) to SAP Support.

Regards,

Frank

Former Member
0 Kudos

Thank you Frank, I think the same, I create a new messge.

Regards, Jorge

Answers (0)