Skip to Content
avatar image
Former Member

[DI Server] How to insert data into user defined table ?

Hi all,

I can insert data to user defined table with the DI API :

        Dim table As SAPbobsCOM.UserTable = oCompany.UserTables.Item("BSS_GNET_LOGS")
        table.Code = "1"
        table.Name = "1"
        table.UserFields.Fields.Item("U_Action").Value = "Test"
        lRetCode = table.Add()

        If lRetCode <> 0 Then
            oCompany.GetLastError(lErrCode, sErrMsg)
        End If

How to do that with DI Server ? Which SOAP message do I must send ?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Aug 17, 2007 at 07:27 AM

    The AddObject message is :

    <env:Envelope xmlns:env="">
        <dis:AddObject xmlns:dis="">

    How to use it with a user defined table ?

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Frank Moebius

      You are saying in this thread that you recommend to use direct sql statements to add to UDT when using the DI Server. But, isn't it right that we lose SAP support if we use this feature???