Skip to Content
0
Former Member
Mar 24, 2006 at 11:03 AM

Deleting Master Data Line from matrix in UDO

23 Views

Hello,

I know this topic has come up a lot. I have read all the solutions proposed and none of them worked for me.

When I have more than one Master Data Line in my matrix, I am able to delete a row using the following code:

form.DataSources.DBDataSources.Item(1).Clear()

matrix.DeleteRow(row)

matrix.FlushToDataSource()

form.Mode = SAPbouiCOM.BoFormMode.fm_UPDATE_MODE

However, when there is only one row in the matrix and I want to delete it, the above method doesn't work.

Any suggestions?

Thanks