on 05-22-2013 6:36 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
100 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.