Skip to Content
0
Former Member
May 03, 2012 at 01:53 PM

Can I SetLineData on the Order Entry Matrix?

60 Views

Hello, All.

Programatically writing cells to rows in the matrix on the Sales Order Entry form is slow.

So I am looking for a faster way.

A SDK developer told me that I can read and write the Sales Order Entry Matrix rows using GetLineData and SetLineData.

The SDK help file says you can't do that on a system form.

I tried it and it gives me that error message; ie, "Item - The Item is not a user-defined item [66000-8].

The developer showed me an email exchange with SAP that appears to say that it was a bug and has been fixed.

My version of the SDK is 8.82, according to the VB References page.

My code is like this:

SystemForm.oSalesMatrix.GetLineData(RowIndex)

SystemForm.oOrderForm.DataSources.DBDataSources.Item("RDR1").SetValue("ItemCode", RowIndex, {ValidItemNo} )

..... ' Set other values

SystemForm.oSalesMatrix.SetLineData(RowIndex)

1.) Can anybody confirm/deny that this should/should not work....

2.) If you see an error in my code what is it?

3.) Does anybody know fo a fast way to programatically write rows to the Sales Order Form Matrix?

Thanks,

Mark