Skip to Content
author's profile photo
Former Member

DI Server and userdefined tables/user defined objects

Hello!

Trying to use DI Server to build a webservice/-application I encoutered the problem not to find any hint how to use user defined objects/tables. Sure, I can read all metadata and select data from user tables but how to add/update this tables.

Another problem seems to be impossibility to get access to our own user defined objects as business objects as we - for our add-on - like to modify them.

Please help me if you have any expierence in that issues.

Greetings from a little frustrated programmer

Gerd Sander

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    author's profile photo
    Former Member
    Posted on Feb 17, 2005 at 04:15 PM

    Gerd - I haven't played with the DI server regarding UDOs yet, however it looks like there is some access.

    oUserFields

    oUserKeys

    oUserObjectsMD

    oUserTables

    These objects are listed as business object schemas available through the DI server interface. have you tried playing with this example:

    <?xml version="1.0" encoding="UTF-16"?>

    http://schemas.xmlsoap.org/soap/envelope/">

    <env:Header>

    <SessionID>32D83BB6-F3AD-985F-D4BC-655B3D9ACBE2</SessionID>

    </env:Header>

    <env:Body>

    http://www.sap.com/SBO/DIS">

    <Object>oItems</Object>

    <ItemCode>X0004</ItemCode>

    </dis:GetByKey>

    </env:Body>

    </env:Envelope>

    Of course, the <Object> would change to one of the types you want to retrieve (IE - oUserObjectsMD)

    Like I said, I haven't played with it too much yet and I am not sure exactly what oUserObjectsMD contains. I just thought I would offer some ideas.

    Good luck!

    Add comment
    10|10000 characters needed characters exceeded

    • Hi,

      DI Server helpfile states on the first page:

      "The DI Server uses the DI core to enable the same functionality provided by the DI API with the following advantages:"

      In addition according to the documentation DI Server supports working with non-UDO UDTs - at least according to the documentation.

      If it is not working properly, please report the bug through Service Marketplace.

      Using a batch process for moving data into UDO UDTs might be a bit "dangerous" because there's a larger number of internal fields in UDO UDTs (+ remember the log tables). I recommend to stay away from working in such manner now, but to wait until DI supports also UDO objects.

      If you run into problems doing it, SAP Support will certainly count this as "external modification"...

      Thanks,

      Frank

      PS: Please note that the new "SDK Help center" can be downloaded from the Developer Area for SAP Business One! It contains all helpfiles + above all a single point to start digging into them: https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/business one - sdk documentation.htm