Skip to Content
0
Former Member
Jun 23, 2016 at 06:58 AM

Issue with adding child table to the existing UDO

105 Views

Hi Experts,

I trying to add child table to the existing UDO which is having two child tables already.

But I found that newly added child table replacing the existing child table as below.

And the new child table is not adding to the UDO.

Before adding :

Udo Name : TRACKUDO

Main Table : TRACK

Child Table 1 : TRACK1

Child Table 2 : TRACK2

After adding Child table 3 i'e TRACK 3 the udo is updating as follows

Udo Name : TRACKUDO

Main Table : TRACK

Child Table 1 : TRACK3

Child Table 2 : TRACK2

Code lines :

Dim oUserObjectMD As SAPbobsCOM.UserObjectsMD = Nothing

Dim ChildTables As Array

oUserObjectMD = objCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserObjectsMD)

If oUserObjectMD.GetByKey("TRACKUDO") = True Then

oUserObjectMD.ChildTables.TableName = "TRACK3"

oUserObjectMD.ChildTables.Add()

If oUserObjectMD.Update() <> 0 Then objApplication.StatusBar.SetText(objMain.objCompany.GetLastErrorDescription)

End If

End If


I already refer the below link :

Issue With adding a New Child to Existing UDO | SCN



Kindly suggest.


Thanks in Advance

RAJ DEV