cancel
Showing results for 
Search instead for 
Did you mean: 

How to make a patch file.....

Former Member
0 Kudos

Hi Experts,

I want the process of preparing a patch file. Actually in the UDO i,e in user tables for a particular table--field data i have updated some information newly....so i want to prepare the patch file for the newly update field....can anybody tell me how to do this???

regards,

shangai.

Accepted Solutions (1)

Accepted Solutions (1)

Nussi
Active Contributor
0 Kudos

Hi Shanghai,

shouldn't be a big problem.

make a standalone DIAPI application that uses the

UserFieldsMD Object with GetByKey and Update.

thats it

lg David

Former Member
0 Kudos

shangai,

David is correct.

Also don't forget to update the UDO registry in case one of the UDF you added needs to appear in the ChooseFromList DataTable.

Regards,

Vítor Vieira

Former Member
0 Kudos

Hi David & vitor,

Thanks for ur replies...i have written below code for making the patch file....


 oUserFieldMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields)
                oUserFieldMD.TableName = "TYP1"
                oUserFieldMD.Name = "TYPCode"
                oUserFieldMD.Description = "Type Code"
                oUserFieldMD.Type = SAPbobsCOM.BoFieldTypes.db_Alpha
                oUserFieldMD.EditSize = 15
                '<----Edited code --->
                oUserFieldMD.Mandatory = BoYesNoEnum.tYES
                oUserFieldMD.DefaultValue = "a"
                '<----Edited code--->
                LRetCode = oUserFieldMD.Add

regards,

shangai.

Former Member
0 Kudos

shangai,

I don't understand. Do you have an additional question?

Regards,

Vítor Vieira

Former Member
0 Kudos

Hi vitor,

Thanks for ur replies...my problem got solved..

Regards,

shangai.

Answers (0)