Skip to Content

UdoForm Add-on

Aug 01, 2017 at 02:23 PM


avatar image
Former Member


I'm using SAP Business One v9.2 and VS2015 for development. I created UDO with code like this.

var lUserObjectMD = (SAPbobsCOM.UserObjectsMD)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserObjectsMD);

lUserObjectMD.Code = 'xx';

lUserObjectMD.Name = 'yy';

lUserObjectMD.ObjectType = BoUDOObjType.boud_MasterData; lUserObjectMD.TableName = 'tbl';


This is ok.

Then i add udo form from VS2015 -> Add -> New Item ->SAP Business One UDO Form. Form named xx.b1f (not srf or xml)

Then design it(add some new fields and customize form items)

I call udo form from menu like this.

SAPbouiCOM.Form oUDO1 = Application.SBO_Application.OpenForm(SAPbouiCOM.BoFormObjectEnum.fo_UserDefinedObject, "xx", "");

If i execute "Save Udo To Database" then everything is ok. When i click the menu i can see my designed form .

But i want to make it add-on project. If i create add-on installer from VS2015->Sap BusinessOne Studio->Extension Package without "save udo to database" i saw the default udoform. I want to see my desingned form. How can i do this.


10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Aug 02, 2017 at 10:52 AM


Refer to SAP Note 2327050 for the same. Just save the UDO to one particular database once and then using the mentioned SAP Note, you can copy/import the UDO from one database to another.

Hope it helps!

Kind regards,


SAP SME Support

10 |10000 characters needed characters left characters exceeded