Skip to Content
author's profile photo Former Member
Former Member

UserTable Object

Hello

I've got a problem in my AddOn.

I've made 3 User Defined Tables:

DAU_RVKOP --> Document

DAU_RVPOS --> Document Rows

DAU_RABVPOS --> Document Rows

Now. I've got the access to my "Head"-Table DAU_RVKOP:

SAPbobsCOM.Company comp = (SAPbobsCOM.Company)SwissAddonFramework.B1Connector.GetB1Connector().Company;

SAPbobsCOM.UserTable oUsrTable = (SAPbobsCOM.UserTable)comp.UserTables.Item("DAU_RVKOP");
oUsrTable.GetByKey(1);

Now I also want to have the access to my "Row"-Tables, but the problem is about the primary keys.

In the "Row"-Tables it has got 2 primary keys (DocEntry and LineID).

How can I make the access to the "Row"-Tables. Any exaples?

Thank You and sorry about my english :S

Greets

Add a comment
10|10000 characters needed characters exceeded

Related questions

6 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2008 at 02:04 PM

    Oh, i've forgot to say:

    My tables are all registered as documents and document lines.

    So, can I use code like this?:

    SAPBobsCom.Documents doc = u2026doc.GetByKey(DocEntry);

    Greetings

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 15, 2008 at 09:36 AM

    Any ideas?

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2008 at 10:52 AM

    I want to add a new row in my Child Table UDO.

    The "Head" Table is DAU_RVKOP and the Child Table is DAU_RVPOS,

    but there's a problem with the GetByKey()-Method, cause in the child table are 2 keys (DocEntry and LineID)?!

    Any ideas?

    Greetings

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 22, 2008 at 01:38 PM

    Hi Rafael,

    Unfortunately data access to UDOs is still not yet really supported in DI API.

    It is planned to provide this at least in the next version after B1 2007 - i.e. B1 8.8...

    ...maybe even earlier, but we need to wait a few more weeks.

    Sorry that you had to stumble over that gap as well - like so many others before (I am pretty sure there have been quite some postings about that 😔).

    Regards,

    Frank

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2008 at 01:55 PM

    Hello Frank

    thank you for the answer.

    Is it also not possible to add/update lines? or only to read lines (select) ?

    Greetings

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2008 at 02:02 PM

    OK. Bad News.

    Thank you for the help.

    Greetings

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.