cancel
Showing results for 
Search instead for 
Did you mean: 

UdoForm Add-on

Former Member
0 Kudos

Hi,

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.

Thanks.

Accepted Solutions (0)

Answers (1)

Answers (1)

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

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,

ANKIT CHAUHAN

SAP SME Support