cancel
Showing results for 
Search instead for 
Did you mean: 

fill matrix of sales qoutation from udo

Former Member
0 Kudos

Dear Experts,

I have designed a UDO that have customer code at header and item code at header.

on sales qoutation I am going to provide copy from functionality.

I have provided Copy from Button that shows open UDO in a cfl. The Problem is when I want to populate matrix through ui api, it don't let me populate the grid. It goes to Exception "Item - Form item is not editable"

try     {

sqmatrix.AddRow();

(sqmatrix.Columns.Item(1).Cells.Item(1).Specific

as SAPbouiCOM.EditText).Value = frm.DataSources.DBDataSources.Item(0).GetValue("U_ItemCodeFG", 0).Trim();                       

                }

catch (Exception ex)

                        {

Console .WriteLine (ex.Message);

                        }

Prior to this code I have successfully populated Business Partner Code in qoutation header.

I can manually click and type at column fist and row first cell of matrix.

the pane is set to 1 before this code.

Please help.

Accepted Solutions (0)

Answers (1)

Answers (1)

edy_simon
Active Contributor
0 Kudos

Hi Imran,

Can you try to remove the AddRow();

And it should be  : - nothice the columns.item should accept a string UID. Not an integer.

(sqmatrix.Columns.Item("1").Cells.Item(1).Specific

as SAPbouiCOM.EditText).Value = frm.DataSources.DBDataSources.Item(0).GetValue("U_ItemCodeFG", 0).Trim();

Another thing, In SQ form, DBDataSources.Item(0) would refer to the OQUT table. not your UDO.

Unless your frm is not the SQ form ?

Regards

Edy