Hi Experts,
Can u tell me how to add more than 1 child tables to an UDO.I am adding as shown below code,but the child table "Y1" only is add but i am unable to add "X1".I want to add "X1" also.Pleas help me regarding this.
Dim oUserObjectMD As SAPbobsCOM.UserObjectsMD oUserObjectMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserObjectsMD) oUserObjectMD.CanCancel = SAPbobsCOM.BoYesNoEnum.tYES oUserObjectMD.CanClose = SAPbobsCOM.BoYesNoEnum.tYES oUserObjectMD.CanCreateDefaultForm = SAPbobsCOM.BoYesNoEnum.tNO oUserObjectMD.CanDelete = SAPbobsCOM.BoYesNoEnum.tYES oUserObjectMD.CanFind = SAPbobsCOM.BoYesNoEnum.tYES oUserObjectMD.CanYearTransfer = SAPbobsCOM.BoYesNoEnum.tYES oUserObjectMD.ChildTables.TableName = "X1" oUserObjectMD.ChildTables.TableName = "Y1" oUserObjectMD.Code = "XYZ" oUserObjectMD.ManageSeries = SAPbobsCOM.BoYesNoEnum.tYES oUserObjectMD.Name = "XYZ" oUserObjectMD.ObjectType = SAPbobsCOM.BoUDOObjType.boud_Document oUserObjectMD.TableName = "XY" lRetCode = oUserObjectMD.Add()
Regards,
Rajesh.