Skip to Content

UDF for documet addresses

Is it possible to create a User Defined Field at Document addresses lines (RDR12 table) via the menu option 'Manage User Fields' or using DiApi?

I cannot find a way to do that.

Add a comment
10|10000 characters needed characters exceeded

  • Hi Antonia,

    it is possible using DI API :

    SAPbobsCOM.UserFieldsMD oUserFields = (SAPbobsCOM.UserFieldsMD)SBO_Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields);
    oUserFields.Name = "TEST";
    oUserFields.Description = "TEST UDF";
    oUserFields.TableName = "RDR12";
    oUserFields.Type = SAPbobsCOM.BoFieldTypes.db_Alpha;
    oUserFields.SubType = SAPbobsCOM.BoFldSubTypes.st_None;
    oUserFields.EditSize = 10;
    if (oUserFields.Add() != 0)
        MessageBox.Show("Error while adding UDF: " + SBO_Company.GetLastErrorDescription());
        MessageBox.Show("UDF created");

    best regards,


  • Hi Maik,

    I've tried your solution and it works. The UDF is created for any document but I cannot see it using SAP Client. The UDF is hidden and I cannot edit.

    Is it possible to make it visible somehow? I'm using SBO 9.2.

    BTW: post your solutions as answer (not as comment) so people can upvote/accept it.

    Thank you!

Related questions

3 Answers

  • Best Answer
    Posted on May 07 at 08:34 PM

    Hi Antonio,

    I don't think there is a way to show the UDF on formtype 13000000. Even using UI API would be not an option, since it is a subform of the mdoc form. Only way to be able add data would be an UI API form with DI API update of address line...

    best regards,


    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 06 at 01:45 PM


    it is not possible to create new UDF for RDR12 using User-Defined-Management tool.



    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 15 at 01:13 PM

    Hi Antonio Rodríguez,

    Even though DI API allows to create UDF on all tables, it is not recommended to create UDF on tables which are not exposed in UDF management.

    It is not possible to operate on these UDF with DIAPI, B1Studio or UI API. This is a limitation.

    Refer to SAP Note 2281349 for the same.

    Kind regards,


    SAP Business One Support

    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.