I want to do editable a matrix column

Hi all! I want to write a value in a not editable column of a matrix, so first i try to do editable the column,and then write the value,so i do this:
Matrix.Columns.Item("34").Editable = True
But i get this error:
Item - the item is not a user defined item
I'm working with the withholding tax table(column account). What can i do?

Hi Miguel,
There is one solution (not so nice) for your problem, we had the same problem.
1. set the column editable through the gui en restart SBO
In your addon
1. at form load set the column to editable false
2. just before the change, set the column to editable true
3. change the column
4. set the column to editable false.
done
Regards,
Ad

Similar Messages

  • How to Calculate Line items Total of Matrix Column

    hai experts,
                  Im facing a problem like
                   1. i have a matrix with a column Labour Costs in that im taking some cost.
                   2. in footer a have a Edit Text like Total Labour Cost
                   3 when i enter amount in matrix column it sholud disply that value in total labour cost and when we add new row ,labour cost it should add to 'total labour cost' in footer.Like Invoice Documents.

    Where do you want to implement this like sapscript / smartforms or adobe forms? please specify.

  • Re:Picture in Matrix column

    Hi,
    I have Created a Matrix.I want to set a button like picture in one of the column in the matrix.How to achieve this.
    Thanx in advance
    Mohana

    Hi Petr,
    I have used the following code for loading the image in the matrix column.my problem is, no image is loading on the column.How should i achieve this
    Dim odbtable As SAPbouiCOM.DataTable
    Dim sql As String
    odbtable = oForm.DataSources.DataTables.Add("VEP")
    sql = "SELECT u_path from [@skil_attach]"
    odbtable.ExecuteQuery(sql)
    oInspecCol = oColumns.Item("Inspec")
    oInspecCol.Editable = False
    oInspecCol.DataBind.Bind("VEP","U_Path")
    I have created the table as skil_attach and i added a field as path with alphanumeric - 254
    Thanx in advance
    Mohana

  • How to set default value in matrix column

    Hi all,
    Does any one know how to set a default value in matrix column ?. I just want , when an event right click and add row. so i set a default value in a column field for example 'Test'. FYI the matrix is in the UDO.
    so my code will be like this
    If pVal.ItemUID = "Matrix" And pVal.MenuUID = "1292" Then
                        Try
                            Dim oColumn As SAPbouiCOM.EditTextColumn
                            Dim matrix As SAPbouiCOM.Matrix
                            matrix = oForm.Items.Item("Matrix").Specific
                           oColumn = mat.Columns.Item("Code").specific
                            oColumn.Value = "Test"
                        Catch ex As Exception
                            Debug.Print(ex.Message)
                            Debug.Print(ex.ToString)
                        End Try
                    End If
    I have run it and when i right click and add row it still can not set the default value in one of the matrx column.
    does any one know how to solve it. thanks in advance

    Hi Bodhi
    Sandeep is right you can set value using SetValue() function
    If pVal.ItemUID = "Matrix" And pVal.MenuUID = "1292" Then
                        Try
                            Dim matrix As SAPbouiCOM.Matrix= oForm.Items.Item("Matrix").Specific
                            oForm.DataSources.DBDataSources.Item("UDT").Clear()
                            matrix .AddRow()
                            matrix .FlushToDataSource()
                            With form.DataSources.DBDataSources.Item("UDT") 
                                    .SetValue("UDF", matrix .RowCount - 1, "Test")
                            End With
                            matrix .LoadFromDataSource()
                        Catch ex As Exception
                            Debug.Print(ex.Message)
                            Debug.Print(ex.ToString)
                        End Try
    End If

  • Check box in matrix column bind correctly but doesn't appear check sign

    Dear Sirs,
    I have a check box in a matrix column (the matrix is placed i an extra folder in the item master data form).
    The column is bound to a DBDataSource related to the user defined table @IIT_ITM1 as reported in the following code. The table field bound to the check box column is alphanumeric of size 1.
    I use the following code:
                    oCln = oMtx.Columns.Add("Per_coll", SAPbouiCOM.BoFormItemTypes.it_CHECK_BOX);
                    oCln.DisplayDesc = true;
                    oCln.Description = "For test";
                    oCln.TitleObject.Caption = "For test";
                    oCln.ValOn = "Y";
                    oCln.ValOff = "N";
                    oCln.Width = 60;
                    oCln.DataBind.SetBound(true, "@IIT_ITM1", "U_IIT_PerColl");
                    oCln.Editable = true;
    The problem is: the binding to the database work (if I click on the check box and save the data, then the database content change accordingly) but I CANNOT LET THE USER SIGN APPEAR on the check box control!
    Does anyone have the solution?
    Thank you for help
    Massimo

    No response from the forum

  • How to display calculated matrix columns in a graph?

    Hi, 
    I am working in VisualStudio 2010 hitting SQL Server 2012 to build SSRS reports.
    I have a need to graph year over year percentage growth as derived from two SSRS matrix columns.  Everything is working except that the chart displays only one value for each year series, rather than displaying the correct percentages for each audience
    for each of the two years.
    The values in the chart series properties are called with the expression: =ReportItems!YoYGrowthPercent2014.Value (or =ReportItems!YoYGrowthPercent2014.Value, respectively), where "YoYGrowthPercent2014" is the name of the detail cell holding
    the expression to calculate the growth percentage at the audience level in the matrix.
    It looks like it should work yet the results are incorrect.  I've read several hundred articles and posts at this point and do not have an answer.
    Is there any way to do this? It seems like it should be so simple, and yet...
    Thank you!
    ~Khrys.

    I can reproduce your issue.  If you toggle open Audience P I think you will find the very last value for the last Category and the last Product_Group will be around 15% for Growth 2014 and around 23% for Growth 2015.  The chart series expression
    is choosing the last value for ReportItems!YoYGrowthPercentage as it doesn't know how to attribute that ReportItem to the Audience matrix.  If you want a chart to display only the percentage for Audience, I suggest that you have a separate data
    source with the values for GrowthPercentage for only the Audiences, and make that the data source for your chart. Also, I would make the growth figures in your matrix also a matrix by doing the percentage calculation directly in the table. You would pull in
    the value for this year and the value for last year into your data set, and then do the calculation within the report as follows:
    =SUM(Fields!Value.Value)/Sum(Fields!LastYearValue.Value)-1
    Create a second Column Group adjacent after, also by year.  Your query could look something like this, depending on how your tables are structured:
    SELECT a.Audience, a.Category, a.ProductGroup, a.Year, a.Value, b.Year as LastYear, ISNULL(b.Value,0) as LastYearValue
    FROM YoYGrowth a LEFT OUTER JOIN
    YoYGrowth b ON a.Audience = b.Audience and a.Category= b.Category and a.ProductGroup = b.ProductGroup
    AND a.Year-1 = b.Year
    Hope it helps.  Cheers,
    Martina White

  • Editing rows and columns in alv reports in webdynpro abap

    how edit row and columns in webdynpro abap ?
    can i add colors to salv repotrs for below and above range of values  how ?
    if possible send source code for it.............

    hi
    check out this link for editing the columns of ALV
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0155eb5-b6ce-2b10-3195-d9704982d69b
    check out for this thread as well for coloring ALV
    Coloring of selected table cells: Ideas wanted
    regards,
    amit

  • ADF DI : Need to disable edit on a column in excel spread sheet

    Hi,
    I need to make a column disable for edit in ADF table in excel.I tried making read only property to true but , user can still edit that column but will get update failed error.I want my column to be completely disabled even for editing.Is there any way to disable edit on the column and makes it grey out??
    Thanks in Advance,
    Alekhya

    I have enabled worksheet protection, with only the Column i need to be
    made read only. Accodring to the ADF DI Dev guide, "The end user can insert a
    full row or column. However, once inserted, they cannot be deleted.". But
    even full row insert shows up disabled. Its not allowing me to insert a new row at all.

  • Problem with Matrix columns of type Float

    Hi all!
    I need to show in a matrix column a quantity with the number of decimal set in SBO. My code is:
    Dim dt As SAPbouiCOM.DataTable = oFrm.DataSources.DataTables.Add("PCKG")
    dt.Columns.Add("clQta", SAPbouiCOM.BoFieldsType.ft_Float, 30)
    oCl = oGrid.Columns.Add("clQta", SAPbouiCOM.BoFormItemTypes.it_EDIT)
    oCl.Width = 100
    oCl.TitleObject.Caption = tr.getTranslation("clQta") '"Quantità"
    oCl.DataBind.Bind("PCKG", "clQta")
    In this way the number of decimal that i see is 2 because the field type is Float, but in SBO parameterization i have set 4 decimal and would like to see the same number of decimal set in SBO parameterization.
    How can I do?
    Thanks

    Hi,
    If i know well, this is now a limitation of B12007 version. in 8.8 this problem will be resolved.
    othwewise of you set all the prices, Quantities, Sumarizes to 4 it will display for. I think it is now displaying the Quantity settings. (float)
    Regards,
    J.
    Edited by: János Nagy on Oct 7, 2009 12:50 PM

  • Is it possible to fetch matrix column through formatted search in UDF?

    HI,
    Is it possible to fetch the value of first row of quantity column in user defined field through formatted search?
    SELECT $[$38.11.number]
      does work but in user defined column of matrix only. I have requirement that when there will be only one row in matrix, the quantity should be accessible in user defined field. and for this, the above query gives internal error.
    thanks and regards,
    Binita

    David,
    I used the query sent by you and further facing following problem. may be my filtering is on wrong parameter.
    SELECT $[rdr1.quantity] * $[ordr.u_qty1.number] from ordr o, rdr1 r where o.cardcode= $[ordr.cardcode] and r.itemcode = $[rdr1.itemcode]
    this query gives correct result when assigning to matrix column.
    when I applied the same query to user defined field, then after selecting the row as suggested by you, it does give value but, in this case, it takes it from rdr1 instead of from matrix.
    for example, I have selected item A001 in matrix. if that item is already there in rdr1, then it fetches its quantity from table instead of that provided by me in matrix's quantity column
    Please guide further,
    thanks in advance,
    Binita
    Edited by: Binita  Joshi on Jun 5, 2008 2:45 PM
    even
    SELECT $[$38.11.number] * $[ordr.u_qty1.number] from ordr o, rdr1 r where o.cardcode= $[ordr.cardcode] and r.itemcode = $[$38.1.0]
    is not working. no clues.

  • New window on matrix column Link button.

    Hi All,
               In my sales order Matrix i have created a new UDF. In my UDF column i want to show a new window(UDT & UDF).  Can anybody suggest me how to show a new window on matrix column.
    thanks
    Shangai.

    Hi Shangai,
    If understand you correctly, you want to open a User Form, which as a matrix, to show details of the value you have on the matrix's UDF.
    If this is the case, I suggest you use the Double Click event to open your User Form.
    Kind Regards.
    Vítor Vieira

  • Removing matrix column by Unique ID

    Hi,
    Can i remove Matrix column by its Unique ID???
    If so can you pls provide me the syntax
    Thanks

    Hi Pankil,
    Try This....
    Set oItem = oForm.Items.Add("Matrix1", it_MATRIX)
    Set oColumn = oColumns.Add("G", it_LINKED_BUTTON)
    oColumn.TitleObject.Caption = "Linked to none object"
    oColumn.Width = 40
    oColumn.Editable = True
    'Removing column of matrix with unique id "G"
    Call oColumns.Remove(u201CGu201D) also possible with column index
    Thanks
    Shafi

  • Matrix column color codes

    Hi,
    I've some difficulties to set the color of a matrix column.
    I've tried to convert to integer an hexa color code (like #FF0000)
    or using System.Drawing.Color.MyColor.ToArgb()
    In both case the color of the column doesn't match the color I specify.
    For example using LightSkyBlue give me an orange column.
    Thanks for your help.

    I totaly forgot how I made it in the past in non sap forms. There is calculation as
    Private Sub Command1_Click()
    r = Val(InputBox$("Red Value"))
    B = Val(InputBox$("Blue Value"))
    G = Val(InputBox$("Green Value"))
    *Lng$ = B * 65536 + G * 256 + r*
    MsgBox Lng$
    End Sub
    there is no conversion to hex, just multiplication.
    Edited by: Petr Verner on Jul 24, 2008 3:50 PM

  • Want to change backgroung of Date Column

    Hi Guys,
    I want to change background of Date Column of table but condition is if date is greater than today then it should be in Red otherwise no.Do i need to do this from beam ?
    Thanks,
    Raul

    Have a look at this:
    http://andrejusb.blogspot.ie/2010/04/changed-row-highlighting-in-oracle-adf.html
    http://www.techartifact.com/blogs/2009/05/conditionally-colouring-of-row-cell-in-adf.html
    or
    1. You can create a transient column to your VO with built in Groovy expressions like adf.currentDate.
    2. and compare with you date column and change inlinestyle like #{row.myDate > row.currentDate ? 'background-color:red' : 'background-color:blue'}
    Edited by: Lalit S on 7 Jun, 2013 10:59 AM

  • I have a column where I have implemented writeback, its working fine. On top of this I need to show 0 as No and 1 as yes in our report, that is also done. Now I want to enter Yes in a column where it was no and I want database table to get update with 1.

    I have a column where I have implemented writeback, its working fine. On top of this I need to show 0 as No and 1 as yes in our report, that is also done. Now I want to enter Yes in a column where it was no and I want database table to get update with 1. I am not sure how to do it. SOmeone please help me out.

    Hi ,
    In your write back XML  try the below  query insert
    INSERT INTO TABLE_XYZ (attribute1)  values (SELECT CASE  WHEN @{C1}=’Yes’ then 1 when @{C1}=’No’ then 0 else null end from dual)
    Regards
    Rajagopal

Maybe you are looking for

  • My old computer got stolen, how can I sync to a new itunes without losing all my contacts, and other stuff?

    So my old windows computer that my iphone was sync to got stolen, I bought a new MacBook Pro and it asking me to erase and sync What can I do to keep all my contacts, photos, and other data and sync my iphone then restore all my data? or anything sim

  • How to download Pages in The Netherlands

    Hi, Last week I was in New York, and I bought the iPad. I'm very happy with my recent purchase, but I would like to use pages before the iPad will be released in my country (July). I have a Dutch Appe ID, ofcourse, and a US Apple ID, without creditca

  • Can't change the font on titles?

    I know the usual way to change the fonts on movie titles is to click the title in the Project window, and then a "Show Fonts" button appears in the upper left of the viewer. I have actually done this before, but now when I click a title, that button

  • Would Qosmio G50 overheat while working with closed lid?

    If I work with the lid closed (i.e. switch on with the remote control) so that I just use two external monitors, will the G50 overheat or like other dockable laptops it's quite happy working like this? Anybody know? Thanks in advance.

  • Invalid Numeric Value Error in CS3

    I was editing the kerning on a project, and accidentally hit a letter or something. When I hit enter an invalid numeric error panel popped up which was fine. Except when I hit the "OK" button it just pops up again and again and won't go away. Now I m