cancel
Showing results for 
Search instead for 
Did you mean: 

Internal error (4029) occurred [Message 131-183] on Delete Row

andy_bolton
Explorer
0 Kudos

I have created a UDO (for a user defined document table with two document lines tables). I have then created a form to manage these with a matrix for each line table, but when I activate (and select) the right click 'Delete Row' menu option for a line on one of the matrices, all the lines are deleted from that matrix and I get the following message;

Internal error (4029) occurred [Message 131-183]

Anyone got any ideas?

Accepted Solutions (0)

Answers (1)

Answers (1)

andy_bolton
Explorer
0 Kudos

I probably should say that I am using the following:

SAP Business One 2007 A (8.00.181) SP: 00 PL: 46

Former Member
0 Kudos

Hi,

check with this code sample

in menu event before action true

If pVal.MenuUID = "1293" Then

objForm = gApplication.Forms.ActiveForm

If objForm.Mode = SAPbouiCOM.BoFormMode.fm_ADD_MODE Then

Else

BubbleEvent = False

objMain.objApplication.SetStatusBarMessage("Cannot Delete The Row once Added", SAPbouiCOM.BoMessageTime.bmt_Short, True)

End If

End If

and for the matrix use visual row count where ever ur using in item event

For intloop1 As Integer = 1 To objMatrix.VisualRowCount

If objMatrix.Columns.Item("V_0").Cells.Item(intloop1).Specific.String = "" Then

If intloop1 = objMatrix.VisualRowCount Then

Else

BubbleEvent = False

objMain.objApplication.SetStatusBarMessage("Invalid ItemCode [Message 131-75]", SAPbouiCOM.BoMessageTime.bmt_Short, True)

objForm.Freeze(False)

Exit Sub

End If

End If

Next

End If

andy_bolton
Explorer
0 Kudos

Thanks for the response. This is not realy what I am looking for. I need to be able to dellete rows for new and existing documents, so dont want to set the bubbleevent off as you have suggested.

I have managed to sort this out by using a conbination of FlushToDataSource() and LoadFromDataSource() depenign on the form mode.

Edited by: Andy Bolton on Sep 7, 2009 2:47 PM