Skip to Content
0
Former Member
Nov 09, 2005 at 05:15 PM

Change item value at Sales Invoice form before create a document

20 Views

HI,

I am trying to change value for "TrackNo" item on the sales invoice form just before create a sales invoice,

I have the following code:

Dim oForm As SAPbouiCOM.Form

Dim oItem As SAPbouiCOM.Item

Dim oEdit As SAPbouiCOM.EditText

Dim periodo As String

Dim sf As String

Try

oForm = Nothing

oForm = entorno.Forms.Item(FormUID)

oItem = oForm.Items.Item("251")

oEdit = oItem.Specific

oEdit.String = "Y"

Catch

End Try

It seems to work only If i have selected the logistics folder ( the folder where the "TrackNo" Item is located)

If I have selected another folder as "contents" or "Accouting" when I create the document it fails.

Can you help me with this problem?

Many Thanks