Checking status of matrix row

Greetings All,
Does anyone know how i can check if a matrix row is enabled or disabled prior to updating the field? I need to know because my add on is throwing an exception stating invalid form item if the matrix row is disabled.
Any ideas?

Hi Curtis
I'm not aware if you can make a row enabled or disabled...never seen it. I know you can make a whole matrix enabled or disabled. Also if you want an extra line in the matrix you add a extra one and that then becomes available. When you say disabled is this when you haven't said you want an extra row and it doesn't allow to add the row details?
Well, to check if a matrix is enabled you do something like
Dim item As SAPbouiCOM.Item
item = oForm.Items.Item("matrixID")
If item.Enabled = False Then item.Enabled = True
Then to see how many records are in your matrix use
oMatrix.RowCount
It will return the number of records in the matrix. But remeber if its your own matrix you should always add a line omatrix.addrow before specifying the row contents.
Hope this helps

Similar Messages

  • Matrix Row Status

    Hi
    I have a UDForm whith a Matrix in it.
    And i need to close the matrix row's as sales order
    are generated for the row data 1 sale order per row
    like for example a sales order when it is pratialy ivoiced
    Can i dataBind the row status to a UDF in a UDT
    some thing like the LineStatus in the RDR1 system table 'Sales Order lines'
    Thanks for any help you can provied
    Pedro Gomes

    If you mean that you want to gray out (disable) a line in a matrix, then I would say that it is not possible. But you can catch events on the matrix and prevent editing of your closed lines (if you forsee a 'state' field in your UDT).
    Maybe you can do something with the grid object, and use the collapselevel to visualize the difference between closed and open lines.
    regards,
    Jurgen

  • Enabling Create New Query and Personalize in Check Status

    Hi All,
    We followed below steps Enable Create New Query and Personalize in Check Status
    Go to the role of the user - PFCG - Authorizations - Change authorization data - Cross-application authorization objects - authorizations for Personal Object Work List (POWL) iViews
    Specified the application ID POWL_APPID - SAPSRM_E_CHECKSTATUS
    What should be done to enable define query and personalize for all users.
    We have changed the following settings -
    In activity POWL_CAT - '??' , POWL_LSEL-DISALLOWED - POWL_QUERY - ?? , POWL_RA_AL - ?? , POWL_TABLE - ??.
    With our current settings Create New Query and Personalize in Check Status appear but are disabled (greyed out)
    New Query Button appears but clicking on it produces no output.
    Nikhil
    Edited by: Nikhil Malvankar on Sep 12, 2011 5:57 AM

    You could the following to check if the Query still exists in the database:
    Open SQL Management Studio and connect to the SQL Server hosting the ConfigMgr database
    In SQL Managemnt Studio, Expand Database, Expand CM_YourSiteCode
    Expand tables and find the dbo.Queries table
    Right-click the dbo.Queries table and select Select Top 1000 Rows
    See if you can find your "ghost" Query
    Please note - it IS NOT supported
    to make direct changes to ConfigMgr database so I would properly call PSS on this one before you start getting creative.

  • How can I know the status of a Row?

    Hi,
    a "Row" (oracle.jbo.Row) has a method "setNewRowState" to change is status to either STATUS_NEW or STATUS_INITIALIZED.
    But I can't find out how to check the current status of a Row. Is it possible?
    The problem is that I have created a page with some field associated to a VO based only on SQL (not on one EO).
    On submit I should check if the user has changed some values in order to decide what I have to do. How can do that?
    Thaks.
    Bye
    Raffy

    There is no method in VO to figure this out, in most cases where the VO is based on a EO, the EO state (getEntityState) can let you know about VO changes, but since your VO is not based on EO, this is a problem.
    I can think of two workarounds:
    1. use isDirty() method on OADBTransactionImpl to find out if some VO has changed, but this would return true if there were multiple VOs and even if some other VO which you dont want to refer is changed.
    So this solution holds good if the AM has only your VO which only can make the transaction dirty.
    2. Another solution is, have a original copy of the VO prior to submit and on submit you can compare the copy with the current VO attributes to figure out if something changed.
    Thanks
    Tapash

  • Hi Expert, Matrix row enable false

    Hi ,
    I Want to enable false matrix row for my some condition.
    If u have any idea share with me.
    thanks in adva.
    Regards
    Rajkumar Gupta

    Hi Rujkumar,
    You need to catch the GotFocus ItemEvent, for the matrix, and in the pVal.BeforeAction, check if the row should be enable or not. If it should not be enabled, you cancel the event (GotFocus) by setting BubbleEvent = False.
    Regards,
    Vítor Vieira

  • Restricitng activity in a Matrix row

    Good Afternoon
    Experts:
    I have spent a 1/2 day so far trying to figure out how to restrict any activity in a row based on a value in a cell of that row. Unfortunately, it appears I have met my match on this one. 
    <b>Application Scenario:</b>
    1)Material Requisition Line gets converted to a PO
    2)Status of that Line in the Matrix for that Material Requisition gets changed
      to "Conv"
    <b>Required Behavior:</b>
    No activity can happen in a row that has a Status = "Conv"
    I went through all of the Events that appeared like they may help...Got_Focus, Validate, Combo_Select etc.  Then I sat back and thought...well I cannot afford to try and account for all possible activity intiation for all the cells of a row.  I need
    some "big picture" way to "disable"(I know there is no official row disable) a row if the status of the row = "Conv"
    I suspect I may have to do it in the ItemEvent of the screen. In English, if ItemEvent is on the Item "mtxMat" and pVal.row Status = "Conv" then don't allow any changes.  I tried that for a bit and the BeforeAction True/False was giving me trouble.
    Does anyone see something that I can try?
    Thanks,
    Ed

    Good Morning
    After coming across a few posts about diasabling rows in a Matrix, I thought perhaps I was on to an idea.  However,  I am interested in documentation on how SAP processes EventTypes.  For example, when someone clicks a cell or tabs into a row, what order of events are processed...Focus, Validate then Click?
    How can I find out?
    Thanks,
    Ed

  • How I can check status of a database link in runtime?

    I need check status of a database link from my application in runtime.
    There are any view or table where I can find this information?
    Any function or package?
    Thanks!!

    SQL> create view test_view as select dummy from [email protected]
    2 ;
    View created.
    SQL> select dummy from test_view;
    D
    X
    Execution Plan
    0 SELECT STATEMENT (REMOTE) Optimizer=CHOOSE
    1 0 TABLE ACCESS (FULL) OF 'DUAL' FIRST9.XXXX.COM
    Statistics
    7 recursive calls
    4 db block gets
    2 consistent gets
    0 physical reads
    212 redo size
    363 bytes sent via SQL*Net to client
    425 bytes received via SQL*Net from client
    2 SQL*Net roundtrips to/from client
    0 sorts (memory)
    0 sorts (disk)
    1 rows processed
    NOW WE PULL OUT THE NETWORK CABLE connecting the two servers.
    SQL> select dummy from test_view;
    select dummy from test_view
    ERROR at line 1:
    ORA-02068: following severe error from FIRST9.XXXX.COM
    ORA-03113: end-of-file on communication channel
    So all you have to do is to test for the communications error.

  • Get matrix row data and put it into header field with formatted search ???

    Hi All,
    I ask your help concerning the following:
    On an invoice matrix I want to check all Itemgroup Codes of all items in the rows, if there are some rows' items with ItemGroupcode 101 and some others with anything else, then header field should be Y, otherwise N.
    My main problem is: how do I put a matrix row data to a header data with checking all rows in the matrix?
    A minor problem is that I can't get the formatted search to work on all rows when the formatted search is assigned to the user field in header.
    If I put the formatted search to a row field then the row field is filled with the proper value, but the same query assigned to the user field in header works only on the first row.
    What am I doing wrong?
    SELECT USEDPROD= CASE T0.ItmsGrpCod  WHEN 101 THEN Y ELSE N END FROM .[OITM] T0 WHERE T0.ItemCode = $[$38.1.0]
    (SBO 7.6)
    Any suggestions are welcome.
    Thanks.
    Bálint

    Dear Adele,
    Thanks for the answer. The major one cannot be solved. OK, I'll try to get a workaround.
    However I still do not understand why my query does not work in all selected rows, just in the first row, i.e. if I assign the query to a header field and I'm positioned in the first row it's OK, but when I add a new item to the second row or any of the next rows, the header field is not updated at all.
    Why is that so? Do you have any idea?
    Bálint

  • SRM 7.0 Modify POWL for shopping cart check status screen

    HI Experts,
    The standard settings in check status for SC in SRM 7.0 is to display the sc with item level. This causes the SC number to be repeated (for no. of items in SC) and all links open the same SC in a new window.
    We want to display only the header of SC and no item data should be displayed in check status.
    I tried
    SRM Server->Cross-Application Basic Settings->POWL and Advance Search->Adjust POWL Layout,search criteria and push buttons----choose feeder type SAPSRM_FEEDER_SC -double click field catalog-choose ITEM_DESCR, ITEM_NO, ITEM_STATUS---CHOOSE display and select HIDDEN COLUMN radio button.
    This hides the corresponding columns but duplicate records are still showing.
    Can some one please help?
    Thanks,
    Anubhav

    Hi NM,
    After performing the steps in first post for hiding item relevant fields you can filter the data displayed in the result by using the BADI  /SAPSRM/BD_POWL_CHNG_SEL_RSLT .
    In the BADI Delete the records from result internal table where SC num is repeated so that thers only one entry for each SC.
    Let me know if it works for you or not.
    BR,
    Anubhav

  • Check Box for each row in report -- all rows deleting when pressing DELETE

    Hello experts! I have set up a report with a check box for each row. When I click the DELETE button to delete the selected rows, every single one of the rows get deleted...even the ones that are not selected. I have my process point set to "On Submit - After computations and validations".
    This is my delete process (SHG is the table and SHG_ID is the primary key):
    FOR i in 1..HTMLDB_APPLICATION.G_F01.count
    LOOP
    DELETE FROM SHG
    WHERE SHG_ID = HTMLDB_APPLICATION.G_F01(i);
    END LOOP;
    Also, I've added to query in the region source this line:
    htmldb_item.checkbox(1, SHG_ID) del,
    Where does the "1" come into this? Not sure what I am doing wrong!
    Message was edited by:
    user477193
    Message was edited by:
    user477193

    The 1 (first argument to all the htmldb_item.* APIs) corresponds to the array number in htmldb_application.g_fNN. So 1 will populate array g_f01, 2 will populate g_f02 and so on.
    Your code seems fine, it should delete only the checked rows. Are you sure there is no other process on the page that might be deleting the rows? See if you can put up an example on htmldb.oracle.com

  • . How to put Check box in every row in Table

    Hi Friends,
    I have one doubt in Webdynpro with java. How to put Check box in every row in Table?
    For Exam My requirement is I am getting BAPI from ECC System. So I have to go given input details in first view and output details in SecondView. So in Second View I will taken Table that data will displayed in rows. I need each and every row first I need check box.
    Here Select Check Box of particular row then click GetData button.  That row data will be displayed in one popup window.
    In table suppose 6 rows available in table. Every Row first Check box available.
                             empid, name, sal  ,firstname, last Name
                             empid, name, sal  ,firstname, last Name
                             empid, name, sal  ,firstname, last Name 
    How to put Check box in every row in Table?  can you send any examples applications
    Regards
    Vijay

    Hi Friend,
    When we are getting BAPI From ECC System. that BAPI Have nodes and Attribues...in under node we can't create "CheckBox"
    attribute.
    So i am doing like this.I am create on Checbox attribue out side of Node. Check Box data type is boolean.
    next i am creating table ( that table having rows and columns) Right click on table-->Click on Insert GroupedColumn->again right click on nsert GroupedColumn---> Here Select Check Box.
    Okay...here i am getting one problem. i have got Check boxes .But i am select check box in  first row. that time all check boxes will be selected.
    i need select first row check box that only first row will be selected suppose i selected second row check box that only second will be selected.
    i need this can u help me....
    Regards
    Vijay

  • Changing the dropdown values for one of the fields in CHECK STATUS query

    Hi,
    We are on SRM 7.1.
    In the CHECK STATUS transaction,in the selection screen(QUERY),there is a field called "ROLE" which has teh dropdown values of "APPROVE BY ME","REJECTED BY ME" and "GOODS/SERVICES DELIVERED TO ME".Is there any way some of these drowpdown values can be removed?
    Please advise.

    hi nmsrm1234
    i have a document for this issue.
    but i don´t find this document in internet. it is called : CUSTOMER-SPECIFIC UI ADJUSTMENTS IN SRM 7.0 WEBDYNRPO ENVIROMENT / META DATA HANDLING CONCEPT.
    if you can find it, you will get an idea to resolve this issue, if you will no have luck, please get me your mail, and i will send you the document.
    regards.

  • Change the input parameter in Check Status screen

    Hi,
    I have a requirment to change the input parameter option in the check status screen. Currently when we search the SC using the date and staus from the extended search it picks the SC created date and displays the SC, my requirement is to make the date as the approved date insted of SC created date with the status as aprpoved.
    Please suggest if this is possible with the help of any Badi.
    Regards
    GGL

    I managed to find the solution myself. If anyone is interested, just follow those steps here:
    http://apple.stackexchange.com/questions/44913/make-a-custom-keyboard-layout-the -system-default-even-for-the-login-screen
    (terminal skills required tho)

  • Unable to check status of Warranty Return

    ) Hi, I recently organised a return for my Zen x-fi 32gb (around 3 weeks ago) Since then I haven't heard anything, so I've tried on numerous occasions to input my RMA number in the 'check status' page but it always tells me it isn't an RMA number, even though I know it is. I was wondering if any of the mods here could help me out with this? I tried again today and the page doesn't even seem to be working at all at the moment - very annoying!

    Please check your PM.

  • Modify the Overall credit check status in Sales order

    Dear all,
    Good morning/afternoon/evening!
    I have a question that how to modify the Overall credit check status (VBUK-CMGST) in sales order when the order saved?
    I try to do this in USEREXIT_SAVE_DOCUMENT_PREPARE, but it does not works.
    Maybe I need to do this in USEREXIT_SET_STATUS_VBUK ? But i also face the problem ........
    Anybody who can give me a sufficient solution? I promise reward to you!!!
    regards,
    Brian Liu

    Hi,
      user function 1 in credit management by using
    LVKMPFZ1 (FORM USER_CREDIT_CHECK1). If you branch into function module SD_ORDER_CREDIT_CHECK you can use the coding of FORM OLDEST_OPEN_ITEM_CHECK.
    <b>Reward points</b>
    Regards

Maybe you are looking for