Add data in a user defined column in System matrix

Hello All,
I have created a User defined column in the Goods Issue Form
When I choose a particular order, I get values in the matrix defined by system
Based on this selection, I fire a query which returns a value and this value has to be
displayed in the user defined column.
I am trying to add a value to this column but I get the following error message
Form Item is not Editable
Here is the code written in form activate event
       code = (EditText)matrix.Columns.Item(1).Cells.Item(i).Specific;
                string strcode = code.Value.ToString();
                string str;
                str = "select itemCode from owor where Docnum='" + strcode + "'";
                RecSet.DoQuery(str);
                e = (EditText)matrix.Columns.Item(15).Cells.Item(i).Specific;
                strcode = RecSet.Fields.Item(0).Value.ToString();
                try
                    matrix.Columns.Item(15).Editable = true;
                    e.String = strcode;
                    matrix.Columns.Item(15).Editable = false;
                catch (System.Runtime.InteropServices.COMException com_err)
Regards
Nirmala B

On system forms, you cannot update the DataSource (DBDataSource) of system matrixes, SAP blocks it.
The only solution is to set the column visible and editable, and write in it with the matrix cell set value method.
The downside is that the user will be able to see and edit the values (unless you catch all edit and click events to that cell).

Similar Messages

  • Is it Possible to link user defined column of system matrix ?

    HI All,
    Is it possible to link (with ExtendedObject) user defined column  of system matrix?
    For Example, In purchase order form, I have added one column called U_ItemCode (through Tools-User Defined Fields-Marketing Doc). I want to give drill down to Item master.
    Here is the code:
    OColumn = OMatrix.Columns.Item("U_ItemCode")
    olink = OColumn.ExtendedObject
    olink.LinkedObject = SAPbouiCOM.BoLinkedObject.lf_Items
    the last line gives me 'Object refrence not set to an instance of the object' error.
    For user form, it works fine (since it has the column defined as LinkedColumn in screen painter). How can we do this in system matrix?
    thanks in advance
    regards,
    Binita

    Hi Binita,
    nice to see you
    i mean the following:
    1.) add the field in marketing document lines -> you need this to store the values in database
    but this user field column will not have the arrow so we do ...
    2.) you also add a linked column to the system matrix. you can copy the values from the udf column
    to your manual added column and than you can use the arrow. (maybe you should disabled this column)
    the result is you have two columns - the udf column and the linked manual column
    i hope you know what i mean - very complicated
    regards
    David

  • Is posible to do a choosefromlist in a user defined column of system matrix

    Hi all,
    I have a question that i can´t solve. Is posible to do a choosefromlist in a
    user defined column of system matrix?How can i do it?and i can use a datatable?How? 
    Thank you all again!
    Regard.

    The answer is No , that I know of.  The matrix permits ony the it_EDIT, it_COMBO_BOX, PICTURE, and CHECKBOX types.  Additionaly it has an LINK_BUTTON type
    Choosefrom list works best with UDOs.  Which means that you have to create your table and specify it in an UDO in order for the choosefromlist to have access to it.
    Maybe there's a manual workaround, like say for instance that if the user clicks the Tab button you can then pop up another screen with a list of items.
    Hope it helps!

  • AffectsFormMode property of User defined field in system matrix

    Hallo
    I added one UDF in System matrix of  service call id at panel  Solution.
    I  set formated search for that UDF field to populate Symptons data from  system knowldge base form (table).
    I set the fromatted search property for that UDF Column is Automatic.
    So when i nevigate record on Service call form, this UDF column fetch the value and so form goes in Update Mode.
    Please i want to   AffectsFormMode  property for that column, so i  have to get the form mode is "OK"
    How it is possible.
    Pleaase help me
    Narendra
    Edited by: NarenKD on Dec 28, 2010 12:24 PM

    Hi H2
    It is true,
    But When i  open 'Service Knowledge Base'  child form  by clicking ID Link Button in Solution Tab of Service Call Form
    and update that form (here symptoms field important for me),
    it does not change the state of Parrent Service call form  to update.
    Also there is not any link between this two table SCL1 service call  and OSLT Solution knowldege table In PLD.
    so i create Symptoms  UDF in matrix at solution tab of Service call form.
    also i create formatted search to fill this column.
    I set that formatted search as "auto refresh when field change"
    so when i navigate through service call records. it featches and put value in that UDF column and make form state "Update"
    I want to avoid it.
    means when i navigate the service call, when the value of  that UDF Is different then OSLT table then that Service Call goes to update state otherwise it have OK state.
    I used query in formatted search to fetch the value for UDF
    What will be the solution for this problem.
    Also tell me Can i call formatted search through program means can i give formatted search command (shift F2. or press formatted seach button) in program.
    Regards
    Narendra
    Edited by: NarenKD on Dec 29, 2010 9:41 AM
    Edited by: NarenKD on Dec 29, 2010 9:50 AM

  • How to Insert a User Defined Column with CheckBox In ADF Swings

    I have create JTable by dragging a view object from Data Control Palette .But apart from columns listed in JTable i need to insert a User Defined column with Check Box selection option in each row .
    Can any one help me out to sort the problem.
    Regards
    Bhanu Prakash
    Message was edited by:
    user579125

    I retrieve 10 column from Database and build JTable. But apart from 10 column displayed i need to display one more column( User Defined) at run time with the check box option for each row . Because on select of corresponding check box i need to do some mathematical calculation. add also How do i know whether check box is selected or not.
    Regards
    Bhanu Prakash

  • Help needed for data updation in User Defined Tables

    Hello Experts,
    I am developing one add-on in SAP B1 8.8 to input data in a User Defined Table described as under
    Table Name
    DriverMst UDT Type is No Object
    Description
    Stores the Driver master data which are used to get reference in Sale Delivery Form and Driver data management activity
    User defined fields
    Data Name
    Data source
    Size
    Pane Level
    Description
    Driver Code
    Code
    Alphanumeric
    0
    No object table fixed field
    System Name
    Name
    Alphanumeric
    30
    0
    No object table fixed field
    Full Name
    FullName
    Text
    50
    0
    Father Name
    FatherName
    Text
    50
    0
    Birth Date
    BirthDate
    Date
    0
    Phone Number
    PhoneNo
    Alphanumeric
    50
    0
    Mobile No
    MobileNo
    Alphanumeric
    13
    0
    I have created one form using screen painter displaying text boxes and bind them to the table.
    This form is working absolutely fine when there are some data in table (i.e. Browse using navigation)
    My problem is, when I click add button from tool bar the "OK" button turn to "Add" that means the form is set to Add mode, but when I click "Add" button after entering some data nothing happens and input data is not stored in Table. The same "OK" Button turned to "Update" when I do changes in loaded data, but my changes are not reflected to table after I click "Update".

    Thanks Nagarajan,
    None.
    There is no such query. The table fields is directly linked to Edit Box or Combo Box in form.
    From the examples I learned that I have to do something like this to get my table updated
    Dim oUsrTbl As SAPbobsCOM.UserTable
    Dim Res As Integer
    oUsrTbl = oCompany.UserTables.Item("DRIVERMST")
    oUsrTbl.Code = oBPC.Value 'Item Specific of Driver Code Edit Box
    oUsrTbl.Name = Left(oBPN.Value, 30) 'Item Specific of Name Edit Box
    oUsrTbl.UserFields.Fields.Item("U_FullName").Value = oMFN.Value
    oUsrTbl.UserFields.Fields.Item("U_FatherName").Value = oFTHN.Value
    oUsrTbl.UserFields.Fields.Item("U_BirthDate").Value = oDOB.Value
    oUsrTbl.UserFields.Fields.Item("U_PhoneNo").Value = oPHN.Value
    (Similar For rest ofthe fields)
    Res = oUsrTbl.Add()
    Just let me know that is this necessary to do like above.. To be frank there are few more fields and matrices on the form which I didn't mentioned. I am just trying to get recovered from first step to proceed further.
    Regards

  • How can I access user defined column(in query) inside the trigger?

    Hi
    I have 3 unions and each query displays different records on some criteria. I also have a column hard-coded
    Ex:
    select a.col1, a.col2,
    add as update
    from table1 a
    where ...
    union
    select a.col1, a.col2,
    change as update
    from table1 a
    where ...
    union
    select a.col1, a.col2,
    del as update
    from table1 a
    where ...
    And I need to display a column in the report only if update is Add. I was thinking of writing a format trigger for that field. But I do not know how can I access this user defined column named update in the trigger?
    Any help?

    Try ":update" minus the double-quotes. Ex:
        IF :update = 'add' THEN
          RETURN(TRUE);
        ELSE
          RETURN FALSE;
        END IF;
    You'll want to place your hard-coded values in single-quotes. Ex:
        select a.col1, a.col2,
        'add' as update
    - Brian

  • How to read and write data to a user defined table?

    I have created a srf with 2 edit box and a ok buttin, I want to insert data to the user defined table i created using sql query while i press OK button..
    Please provide the complete code to insert and select da from the user defined table.

    Hi,
    You can use the code below.
    Dim ret As Long
    d
    Private Sub Add_Table_Click()
        Dim oUserTablesMD As SAPbobsCOM.UserTablesMD
        Set oUserTablesMD = oCompany.GetBusinessObject(oUserTables)
        ' When adding user tables or fields, use a prefix
        ' identifying your partner name space. This will
        ' prevent collisions from different partner add-ons
        ' SAP's name space prefix is "BE_"
        'Set the two mandatory fields
        oUserTablesMD.TableName = "T1"
        oUserTablesMD.TableDescription = "Table1"
        'Add the table (which contains 2 default, mandatory fields, 'Code' and 'Name')
        ret = oUserTablesMD.Add
        If ret <> 0 Then
            oCompany.GetLastError ret, Str
            MsgBox Str
        Else
            MsgBox "Table: " & oUserTablesMD.TableName & " was added successfully"
        End If
    End Sub
    Private Sub Add_UDF_Click()
        Dim oUserFieldsMD As SAPbobsCOM.UserFieldsMD
        Set oUserFieldsMD = oCompany.GetBusinessObject(oUserFields)
        oUserFieldsMD.TableName = "T1"
        oUserFieldsMD.Name = "AlbUDF"
        oUserFieldsMD.Description = "Albert UDF"
        'Add the field to the table
        lRetCode = oUserFieldsMD.Add
        If lRetCode <> 0 Then
            oCompany.GetLastError ret, Str
            MsgBox Str
        Else
            MsgBox "Field: '" & oUserFieldsMD.Name & "' was added successfuly to " & oUserFieldsMD.TableName & " Table"
        End If
    End Sub
    Private Sub Add_Data_Click()
        Dim oUserTable As SAPbobsCOM.UserTable
        Set oUserTable = oCompany.UserTables.Item(1)
        oUserTable.GetByKey ("T1")
        'Set default, mandatory fields
        oUserTable.Code = "A"
        oUserTable.Name = "Albert"
        'Set user field
        oUserTable.UserFields.Fields.Item("U_AlbUDF").Value = "1"
        oUserTable.Add
        If ret <> 0 Then
            oCompany.GetLastError ret, Str
            MsgBox Str
        Else
            MsgBox "Value to field: '" & oUserTable.UserFields.Fields.Item("U_AlbUDF").Name & "' was updated successfuly to " & oUserTable.TableName & " Table"
        End If
    End Sub
    Regards,
    Noor

  • How to change the order of the columns in system matrix?

    Hi all,
    Is there any way to change the order of the columns in system matrix through SDK, without doing it from 'Form settings'??

    Hi ,
    is this true for the 'Active' property also , in CPRF table? I want to check whether the Item is active or not becuse, when I m trying to copy the value in item which is not active, I m given error. Is there any way to change or active the 'Active' flag in form settings at run-time?
    Any clue?
    Thanks in advance,......
    Binita

  • Problem When Try to add Master data record for User define form

    Hi,
    I have made one user define form. And assign UDO and fields proerly in form.
    But when I try to add the record from the form it will give me error
    Invalid Code [Operation Master  -Code] [Message 173-36]
    I have already bind the code field of the table to one field in the screen painter.
    Please give me the reply.
    Regards,
    Gunjan Shukla.

    Dear Shukla
    Can you please try to do the binding in the code (after loading the from).
    Doing that, do you still have the problem?
    Best regards,
    Miki

  • Validation returns : no data found + unhandled user-defined exception

    Hi, I'm working with Application Express 4.1.1.00.23.
    I have an application for timesheet management.
    On one page, I've got a report (not interactive) in which you can enter the hours you've worked. First you add a free line, choose the task and then enter the hours you've spent.
    You can only have one empty line at a time. If you try to add a line when you already have an empty line, a validation will display an error. It worked fine in version 3.2. Now we upgraded to 4.1 and get a weird error :
    1) The validation msg appears fine
    2) The report appears fine
    3) There is a msg at the end of the report saying :
    report error:
    ORA-01403: no data found
    ORA-06510: PL/SQL: unhandled user-defined exception
    Could somebody point out the source of this problem ?
    Thank you!
    Here is the debug :
    0.31117     0.00204     parse query as: FEUILLES_DE_TEMPS     4     
    0.31319     0.07865     ...Execute Statement: select NULL "CHECK$01", NULL "nom_projet2", NULL "NO_TACHE_ENTRE", NULL "NO_TACHE", NULL "NO_SEMAINE_EMPLOYE", NULL "NOM_TACHE", NULL "Tâches", NULL "SEQUENCE", NULL "Heures dim", NULL "DIM", NULL "Heures lun", NULL "LUN", NULL "Heures mar", NULL "MAR", NULL "Heures mer", NULL "MER", NULL "Heures jeu", NULL "JEU", NULL "Heures ven", NULL "VEN", NULL "Heures sam", .........
    0.39191     0.00158     print column headings     4
    0.39342     0.02546     rows loop: 500 row(s)     4
    0.41889     0.00087     report error: ORA-01403: no data found ORA-06510: PL/SQL: unhandled user-defined exception
    .....

    Hi, thanks for your answer. Here is the validation we are executing. I'm pretty sure its fine since count(*) always return a value (plus we see V2 in the debug...) :
    declare
    l_count number;
    begin
    apex_debug_message.enable_debug_messages(7);
    apex_debug_message.log_message('-----------------------------------V1----------------------------------');
    -- get remaining empty tasks count
    SELECT count(*) into l_count
    FROM VIEW_TACHE_SYSTEME
    WHERE NO_TACHE NOT IN (SELECT DISTINCT NO_TACHE FROM TACHE_JOUR WHERE NO_SEMAINE_EMPLOYE = :P36_NO_SEMAINE_EMPLOYE);
    apex_debug_message.log_message('-----------------------------------V2----------------------------------');
    apex_debug_message.log_message(l_count);
    if l_count = 0 then
    return 'Veuillez utiliser la tâche vide avant d''ajouter une ligne.';
    else
    return null;
    end if;
    end;
    Here is the debug :
    0.14643     0.00318     ...Validation "ADD_ROW_VALIDATION" - Type: FUNC_BODY_RETURNING_ERR_TEXT     4     
    0.14961     0.00318     ...Execute Statement: declare function x return varchar2 is begin declare l_count number; begin apex_debug_message.enable_debug_messages(7); apex_debug_message.log_message('-----------------------------------V1----------------------------------'); -- get remaining empty tasks count SELECT count(*) into l_count FROM VIEW_TACHE_SYSTEME WHERE NO_TACHE NOT IN (SELECT DISTINCT NO_TACHE FROM TACHE_JOUR WHERE NO_SEMAINE_EMPLOYE = :P36_NO_SEMAINE_EMPLOYE); apex_debug_message.log_message('-----------------------------------V2----------------------------------'); apex_debug_message.log_message(l_count); if l_count = 0 then return 'Veuillez utiliser la tâche vide avant d''ajouter une ligne.'; else return null; end if; end; return null; end; begin wwv_flow.g_computation_result_vc := x; end;     4     
    0.15280     0.01299     -----------------------------------V1----------------------------------     6     
    0.16578     0.00310     -----------------------------------V2----------------------------------     6     
    0.16888     0.00235     0     6     
    0.17123     0.00225     ......Result = Veuillez utiliser la tâche vide avant d'ajouter une ligne.     4     
    0.17347     0.00276     ......Did NOT pass     4     
    0.17624     0.00314     Add error onto error stack     4     
    0.17938     0.00343     ...Error data:     4     
    0.18280     0.00327     ......message: Veuillez utiliser la tâche vide avant d'ajouter une ligne.     4     
    0.18607     0.00446     ......display_location: INLINE_IN_NOTIFICATION     4     
    0.19053     0.00323     ......is_internal_error: false     4     
    0.19375     0.00323     ......error_backtrace: - PL/SQL Call Stack - object line object handle number name c000000382130f30 717 package body APEX_040100.WWV_FLOW_ERROR c000000382130f30 833 package body APEX_040100.WWV_FLOW_ERROR c00000039da9b5c8 154 package body APEX_040100.WWV_FLOW_VALIDATION c00000039da9b5c8 363 package body APEX_040100.WWV_FLOW_VALIDATION c00000039da9b5c8 784 package body APEX_040100.WWV_FLOW_VALIDATION c00000039da9b5c8 905 package body APEX_040100.WWV_FLOW_VALIDATION c00000039d1142c8 10005 package body APEX_040100.WWV_FLOW c000000381287050 31 anonymous block

  • Uploading Data in a User Defined table

    Hello Experts,
    I have a user defined table YFEED_TABLE_2 as a local object in the System. i want to upload some data from TEXT file to the table using LSMW TCode..
    But after selecting  u201CMaintain Object Attributesu201D in LSMW transaction...in the "STANDARD BATCH/INPUT METHOD", I have select an Object like Vendor master, material master,...few more are there...
    i don't know which object to Choose...how could i know that object is mapped to the target table  YFEED_TABLE_2 ...
    Please Help....
    Anupam...

    >
    Ankur Parab wrote:
    > Hi,
    > Use BDC recording method in LSMW and do a recording of SM30 transaction to maintain data in your Z table.
    >
    > Regards,
    > Ankur Parab
    Please tell me the procedure to perform BDC recording in LSMW & do a recording of SM 30 transaction???
    COuld please also tell me how to perform a new recording in transaction SHDB???
    Please Help...
    Anupam.,...

  • Class Data Sharing for User Defined Classes

    i am using jdk 5.0 . JDK 5.0 supports class data sharing for system level classes. Is there any way a class data sharing be done for a user defined class?

    Samantha10 wrote:
    Is this class data sharing possible for user defined classes also? i have a singleton class which i am invoking through a script. The script has been scheduled to run every 1 sec . Since it is being invoked every 1 sec hence the singleton pattern is failing . Hence if the this class data sharing is possible then the singleton pattern can be made applicable.If you have a single process and you have a single class loaded by two different ClassLoader instances
    in some respects they will be two different classes
    if (class1 instanceof class2.getClass())returns false.
    This is not the case for Java core classes because they are always loaded by the SystemClassLoader.
    You write you
    have a singleton class which i am invoking through a script. What approach to you use to invoke the singleton?
    I am trying to figure out if you launch a new JVM every second...
    Maybe you can use Nailgun.

  • Add columns in system matrix

    Hi experts,
    I need help urgently. I want to add columns in the matrix of A/R invoice system form.
    Can someone give me a solution?
    Regards.
    Olivier

    Olivier
    You can add user defined fields into Marketing document rows, these will be new  columns and will appear U_[COLUMNAME]
    Regards
    J
    Edited by: János Nagy on May 18, 2010 2:01 PM

  • User Defined Fields on System Form

    Dear All,
                   I want to know that how much User Defined Fields can be added on a system form. My problem is that I am developing an add-on for the Item Master Data. And I have used a lot of User Defined Fields on Item Master Data Forms which contains table 'OITM'. Now if I am trying to add any extra User Defined fields in OITM Table, I am not able to do so. I am getting an error as  'Internal Error Occurred'. What can i do regarding this problem.?  Help me. It is something very important.
    Thanks and Regards

    Hi,
    There is theoretically no limit on the number of UDF for a table. there is however a maximum number of characters for a record in SQL Sever.
    As far as I know this is 4000 in SQL Server 2005 and older and 8000 in SQL Server 2008.
    pls check Microsoft for the exact numbers
    Regards
    Ad

Maybe you are looking for

  • I-Tunes and and External Drive...Questions!

    Hello, starting my music collection seriously for the 1st time and have some questions. When you use an external drive how does i-Tunes recognize this? Will it still allow me to browse through everything ( album artwork etc) as if the music was in th

  • How do I get rid of a yahoo toolbar that keeps popping up and is not on the program list of my computer?

    Immediately after I updated my firefox a couple of weeks ago, the browser started to display a yahoo toolbar. At the time my husband took it off using the control panel and add/remove program function on the computer. since this am, the toolbar has c

  • How do I close one page at a time?

    When I go from my email to a link and then can't get back to email using the back arrow I usually close that page and am back at my email. With Firefox I go to close and a message says that I am about to close 2 tabs and I have to say yes or it doesn

  • Missing xlStartServer.bat file from Xellerate\bin folder in OIM 9.1.0.1

    I have installed OIM9.1.0.1 with JBoss 4.2.3 as application server and Oracle10g as database on Windows 2003 Server m/c. The installation process was successful and no error occurred in due course. And now to start OIM, I need to run the xlStartServe

  • Final Cut 10.1 - Crashes when Colour Correcting.

    Every time i try to do colour correction in FCP 10.1 i receive this error message and have no choice but to quit FCP - "The application detected an error that prevents changes from being saved. To avoid losing your work, quit Final Cut Pro." I am abl