Skip to Content
0
Former Member
May 21, 2008 at 09:11 AM

Weird sap behvior

20 Views

Hello,

When the Item Master data form loads,

I add to it an edittext item.

The edittext is bound to a user field in the OITM table.

The edittext also has a CFL pointing to OITM.ItemCode.

So far so good.

Now, when I open the form and try to select an item using the above CFL, the value is not written to the edittext.

Instead, SAP takes over the value and inputs it into its

ItemCode item ("5" unique id).

If I point the CFL to another table and field, for example to

OCRD.CardCode, and repeat the process the phenomenon does not occur.

Any ideas ?

This is the CFL code in the ItemEvent handler:

Case "cfl_oitm_RplItCd"

If (pVal.BeforeAction = False) Then

If (sVal <> "") Then

Dim oEdit As SAPbouiCOM.EditText

Try

oEdit = GetEdit(myForm, pVal.ItemUID)

oEdit.Value = sVal

Catch ex As Exception

End Try

End If

End If

End Select