Skip to Content
author's profile photo Former Member
Former Member

fill matrix of sales qoutation from udo

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on May 22, 2013 at 07:16 AM

    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


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.