cancel
Showing results for 
Search instead for 
Did you mean: 

update udf in UI document lines

Former Member
0 Kudos

I created a Marketing Documents/Rows UDF as Text.

I created a popup form to edit the values for the Text Field, when I finish update and I press the update button and I get the following exception: "Form - Bad value"

example:

Dim oFrm As Form = oApp.Forms.Item("frmID")

Dim oMtx As Matrix = CType(oFrm.Items.Item("38").Specific, Matrix)

CType(oMtx.Columns.Item("U_MyField").Cells.Item(DocLine).Specific, EditText).Value = "test"

Is it even posible in the UI the change the value for an existing SAP object? or is it only in the matrix that exists this problem?

Message was edited by: Yuval Lerner

Accepted Solutions (1)

Accepted Solutions (1)

barend_morkel2
Active Contributor
0 Kudos

Yuval,

1. Make sure this UDF is visible in the matrix before running your code.

2.Try this code:

Dim oFrm As Form = oApp.Forms.Item("frmID")

Dim oMtx As Matrix = oFrm.Items.Item("38").Specific

oMtx.Columns.Item("U_MyField").Cells.Item(DocLine).Specific.String = "Test"

OR

oMtx.Columns.Item("U_MyField").Cells.Item(DocLine).Specific.Value = "Test"

Answers (0)