cancel
Showing results for 
Search instead for 
Did you mean: 

Departments - Setup window

Former Member
0 Kudos

I would like to know how can I  add to the window of  Departments-Setup 2 more columns in SAP HANA

Accepted Solutions (0)

Answers (1)

Answers (1)

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Use this:

SAPbobsCOM.UserFieldsMD oUserFieldsMD = oCompany.GetBusinessObject(BoObjectTypes.oUserFields);

                    oUserFieldsMD.TableName = "OUDP";

                    oUserFieldsMD.Name = "TEST";

                    oUserFieldsMD.Description = "A user field";

                    oUserFieldsMD.Type = BoFieldTypes.db_Alpha;

                    oUserFieldsMD.EditSize = 20;

                    int K = oUserFieldsMD.Add();

Hope it helps.

Kind regards,

ANKIT CHAUHAN

SAP Business One Global Support