Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9080

Re: DI API to update Items User Defined Fields

$
0
0

Hi Phil,

 

You need to call the GetBusinessObject method of the SAPbobCOM Company object to instantiate the item object:

 

Dim cmp as SAPbobsCOM.Company
Dim vItem as SAPbobsCOM.Items
Set cmp = New SAPbobsCOM.Company
' Code goes here to set connection properties and connect to SBO
...
' Once connected, instantiate your item
Set vItem = cmp.GetBusinessObject(oItems)
' Set UserFields
vItem.UserFields.Fields.Item("U_MyField").Value = myVal

Kind Regards,

 

Owen


Viewing all articles
Browse latest Browse all 9080

Trending Articles