Hi Tamizharasi,
If it is a report, please try Grid instead of Matrix. and populate the value SQL query.
oGrid.DataTable.ExecuteQuery("SELECT CardCode, DocEntry, DocTotal FROM OINV")
oGrid.CollapseLevel = 1
The grid will show the collapse/expand icon for the first column, which is CardCode in this case.
If you would like to show the link button for CardCode and DocEntry column,
Then you need to get the EditTextColumn and set LinkedObjectType as below:
Dim oCardCodeCol as SAPbouiCOM.EditTextColumn =oGrid.Columns.Item("CardCode")
oCardCodeCol.LinkedObjectType = 2
Kind Regards, yatsea