Skip to Content
Former Member
Apr 19, 2010 at 08:56 AM

Updating User Defined Table (Master Data Lines) via DI API


Hello Experts,

I have to update one row of a User Defined Table of Master Data Lines object type.

There is an UDO using the UDT.

I tried using the GetByKey(string Key) method but it returns always false!

below the code:

cas_ancd = (SAPbobsCOM.UserTable)B1Connector.GetB1Connector().Company.UserTables.Item("CAS_ANCD");

String ancdKEY = codicecontratto + lineId;

if (!cas_ancd.GetByKey(ancdKEY)) {


How can I achieve it without the use of a sql query ?

Maybe I have to use the General Service to manage UDO Tables using DI API ?

My SAP B1 version is : 2007 A (8.00.231) SP: 01 PL: 06

Thanks in advance.

Best regards


Edited by: Andrea Gigliotti on Apr 19, 2010 12:04 PM