How to select row automatically in matrix (exp:automatic select row no 2)?

Hi
example i fill matrix row no 1 - 3 in serial number selection form or else (from database data)
and i want to automatic select row no 2
and i really have a big problem to do this
oQuant = edit text
oColumn = column
oForm = form
here some of my code
====================================
formID = pVal.FormUID
Set oForm = SBO_Application.Forms(formID)
Set oMatrix3 = oForm.Items.Item("5").Specific
Set oColumn3(3) = oMatrix3.Columns.Item("19")
Set oQuant(5) = oColumn3(3).Cells.Item(2).Specific
=====================================
i tried
oMatrix3.SelectRow 2, True, False
but it didn't work , it's said that not user defined item
oQuant(5).Active = True
it works but that not the select what i want
pls some one help me
i really need it right away
Thanks

Hi chetan
Thank You for your reply and yes i didn't write selection mode for my matrix
but when i tried both of these code it still didn't work (for information i'm using visual basic 6, so it has a different syntax about .net and VB6 - exp: for .net  oMatrix.selectrow(2,true,false) , for VB6 oMatrix.selectrow 2,true,false )
oMatrix.SelectionMode = SAPbouiCOM.BoMatrixSelect.ms_Auto
oMatrix.SelectRow 2, True, False
oMatrix.SelectionMode = ms_Auto
oMatrix.SelectRow 2, True, False
is there any presiquities for selection mode ?? because I always have <b>warning</b> on oMatrix.selectionmode
"<b>Item - the item is not user defined item</b>"
Edit : it works when i created a form and select row no 2,  but it didn't work with serial number selection form which the form is already exist in SBO (serial number selection is the form after klik add button in good issue form)
Thanks

Similar Messages

  • How to select the download location? its automatically downloading to users folder in c drive. i wanna change it..plz help me out......

    how to select the download location? its automatically downloading to users folder in c drive.. i wanna change to my desktop...plz help me out...

    Tools -> Options -> Save files to -> Click browse button and browse for folder where you want to save the file.

  • How to select multiple row in ALV report

    Hi friends,
    1. How to select multiple row in ALV report
                   ( How to set tab in ALV report and want to select multiple line.)
    Thanking you.
    Subash

    Hi Sahoo,
    If you are using the class CL_GUI_ALV_GRID. In methods SET_TABLE_FOR_FIRST_DISPLAY.
    in layout structure you will find field SEL_MODE
    pass :
    LS_LAYOUT-SEL_MODE = 'A'.
    In PAI.
      CALL METHOD GRID->GET_SELECTED_ROWS
        IMPORTING
          ET_INDEX_ROWS = T_ROWS
          ET_ROW_NO     = T_ROWID.
    Hope these will solve your problem.
    Regards,
    Kumar M.

  • How to get row number of selected entry from OVS search result

    Hi,
    Anyone having any idea on how to get row number of the  selected entry/ how to differentiate rows in OVS search result in ON_OVS method?
    Regards,
    Jatin

    Hi,
    You can get the selected record to <ls_selection> structure in co phase 3.
    From that structure you can get what ever field you want.,
    check the below code for reference,
    << Moderator message - Cut and paste response from F4 help for ALV table field removed. Plagiarism is not allowed in SCN >>
    hope this helps u.,
    Thanks & Regards,
    Kiran
    Edited by: Rob Burbank on Jan 5, 2012 5:24 PM

  • How to select a row in LSMW

    Hi,
    I have a requirement to create new materials copying from exsting material.For this we have custom transaction which will display all the materials in a plant in the table cotrol.Now in this table control i have to select a material based on the input file material.
    can any one please tell me how to select a particuler row in table control In lsmw.
    Thank you.
    CS Reddy.

    hi
    Using the read statement. y bcoz u r putting data in an internal table for a table control. so u want to retieve a particular row so use index position along with read statement.
    if it is useful,please reward points.
    Regards,
    satish

  • How to select a row in Jtable at runtime

    how to select a row in Jtable at runtime.

    use
    setRowSelectionInterval(int fromRowIndex, int toRowIndex);example if your table has 10 rows then u want to select the rows from 4 to 8 then use
    setRowSelectionInterval(3, 7);if you want to select just one row for example 5 then use
    setRowSelectionInterval(5, 5);

  • How to make row selection by checkbox in ADF table

    hello,
    using jdev11g TP4 , fusion web application
    when i drag my view object as ADF table into jsf page,
    i want to know how to make row selection by checkbox
    thanks
    greenApple
    Edited by: greenApple on Nov 10, 2008 11:33 AM

    Hi,
    the tree component has changed compared to 10.1.3. You no longer have a tableSelectmany component that renders as checkboxes. Instead you use the ctrl key and select the table rows
    Frank

  • How to select more than one row in a JTable swing adf adf?

    how to select more than one row in a JTable swing adf adf?

    // Allow selection to span one contiguous set of rows, visible columns, or block of cells
    table.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);
    // Allow multiple selections of rows, visible columns, or cell blocks
    table.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);

  • How to select a row in datagrid by checking the check box in that row

    how to select a row in datagrid by checking the check box in that row.
    Im using <html:checkbox> tag, and also a VO which is in request scope. i wanna display the values in the VO in a row and corresponding to this i want a checkbox..
    Thanx in advance
    Message was edited by: me
    Hemanth@SA
    Message was edited by:
    Hemanth@SA

    Hello,
    I got the solution:
    final int pRow = row;
    final int pCol = column;
    final JTable myTable = mytable;
    SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    myTable.requestFocusInWindow();
    myTable.changeSelection(pRow, pCol, true, true);

  • How to re-order automatically the number of primary key column in MySql that has been set as auto_increment if one of the row deleted?

    Hello,
    Can anyone show me the way how to re-oder automatically the number of primary key that has been set as auto_increment in mysql database when the row deleted?
    example:
    No (primary key=auto increment)|
    Name |
    AGE |
    1
        | JO
    | 21
    |
    2
        | Kyle
    | 25
    |
    3
        | Macy
    | 30
    |
    When delete 1 row:
    No (primary key=auto increment)|
    Name |
    AGE |
    1
        | JO
    | 21
    |
    2
        | Macy
    | 30
    |

    Hello,
    This is not a VB.NET question, best to ask this question in
    MySQL forum.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem.

  • Urgent :  how to select the rows in the ALV Grid Control

    How to select the rows in the ALV Grid control,
    I am facing the situation where i need to select the row/rows in the Grid control and then to lock the entries,
    If anyone have the solution please help me out
    <b>Its very Urgent</b>

    Hi Bharath,
    Go through this hope u can understand.
    SEL_MODE. Selection mode, determines how rows can be selected. Can have the following values:
    A Multiple columns, multiple rows with selection buttons.
    B Simple selection, listbox, Single row/column
    C Multiple rows without buttons
    D Multiple rows with buttons and select all ICON
    Setting and getting selected rows (Columns) and read line contents
    You can read which rows of the grid that has been selected, and dynamic select rows of the grid using methods get_selected_rows and set_selected_rows. There are similar methods for columns.
    Note that the grid table always has the rows in the same sequence as displayed in the grid, thus you can use the index of the selected row(s) to read the information in the rows from the table. In the examples below the grid table is named gi_sflight.
    Data declaration:
    DATA:
    Internal table for indexes of selected rows
    gi_index_rows TYPE lvc_t_row,
    Information about 1 row
    g_selected_row LIKE lvc_s_row.
    Example 1: Reading index of selected row(s) and using it to read the grid table
      CALL METHOD go_grid->get_selected_rows
        IMPORTING
          et_index_rows = gi_index_rows.
      DESCRIBE TABLE gi_index_rows LINES l_lines.
      IF l_lines = 0.
        CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT'
             EXPORTING
                  textline1 = 'You must choose a valid line'.
        EXIT.
      ENDIF.
      LOOP AT gi_index_rows INTO g_selected_row.
         READ TABLE gi_sflight INDEX g_selected_row-index INTO g_wa_sflight.
        ENDIF.
      ENDLOOP.
    Example 2: Set selected row(s).
      DESCRIBE TABLE gi_index_rows LINES l_lines.
      IF l_lines > 0.
        CALL METHOD go_grid->set_selected_rows
            exporting
              it_index_rows = gi_index_rows.
      ENDIF.
    Reward points if helpful.
    Thanks
    Naveen khan

  • How to select middle rows in HR ABAP

    Hello Masters,
    I am new to ABAP-HR i want to know say suppose we have 4 rows in over-view of an employee in infotype "Organizational assignment"  in PA30, i know how to select the first and the last row but i want to know how to select the middle rows for ex : if i want to fetch the previous desigantion of an employee which is on the 2nd row everytime when i run my program.
    CALL FUNCTION 'HR_READ_INFOTYPE'
       EXPORTING
         pernr                 = a_pernr
         infty                 = '0001'
        begda                  = sy-datum
        endda                  = sy-datum
       TABLES
         infty_tab             = it_pa0001
    EXCEPTIONS
      infty_not_found       = 1
      OTHERS                = 2.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      READ TABLE it_pa0001 INTO wa_pa0001 INDEX 1.
      IF sy-subrc = 0.
      ENDIF.
    from Index 1 i am able to fetch the last action run on employee but how can i select the 2nd last action run on employee.

    I'm not sure if i am getting your point, but if you use HR_READ_INFOTYPE and BEGDA and ENDDA are set using the current date, you'll only get the active record(s) of your employee. If you want to get all records just don't use BEGDA and ENDDA in the FM and you will get all the records for that employee no matter what dates are they active in.
    All the records are sorted by BEGDA so the last one would be the last action run. If you want to get the previous assignment you can sort the internal table in the opposite order and get the second row.
    sort it_pa0001 by begda descending.
    READ TABLE it_pa0001 INTO wa_pa0001 INDEX 2.

  • How to select rows

    Hi all,
    How to select distinct rows without using distinct,unique key word.
    When ever i use distinct key word oracle database is hanging ..
    regards
    prakash

    How to select distinct rows without using distinct,unique key word.
    When ever i use distinct key word oracle database is hanging ..The database isn't 'hanging'. It just needs more time than you want to do what you asked it to do.
    The standard counter-questions are:
    - why do you need a distinct (or group by)?
    - could it be that your datamodel needs some adjustments?
    - how many rows are you expecting?
    - how many rows are you selecting from?
    - what does the query look like?
    - what database version are you working with (the result of: select * from v$version; ) ?
    There is no substitute for DISTINCT|UNIQUE (or GROUP BY), you should really think about why you need a DISTINCT in the first place, since it's killing the performance of the database in the first place, especially on (very) large sets.
    Since you're actually having a performance problem, I suggest you read:
    HOW TO: Post a SQL statement tuning request - template posting
    and post all relevant details you've left out so far.

  • How to select rows in this way ?????

    Hi All,
    How to select tables from 2 table say client and vendor. Both have id, name. Now I want data of two tables using union but the data of one table come after another.
    select id,name from vsg.client union select id,name from vsg.vendor
    Eg.
    Vendor Client
    ID Name ID Name
    1 ab 12 xyz
    2 cd 13 wyx
    3 ef 14 pqr
    Now output should come like this
    ID Name
    1 ab (First rows from Vendor)
    2 cd
    3 ef
    12 xyz (second rows from Client)
    13 wyx
    14 pqr
    Thanks for your reply in advance......

    NO this one is not workingWhy not? Are you using some ancient version of Oracle?
    SQL> create table vendor
      2  as
      3  select 'v1' id, 'a' name from dual union all
      4  select 'v3', 'c' from dual union all
      5  select 'v2', 'b' from dual
      6  /
    Tabel is aangemaakt.
    SQL> create table client
      2  as
      3  select 'c1' id, 'd' name from dual union all
      4  select 'c3', 'f' from dual union all
      5  select 'c2', 'e' from dual union all
      6  select 'c4', 'g' from dual
      7  /
    Tabel is aangemaakt.
    SQL> select id
      2       , name
      3    from ( select id
      4                , name
      5                , 1 x
      6             from vendor
      7            union all
      8           select id
      9                , name
    10                , 2
    11             from client
    12         )
    13   order by x
    14       , id
    15  /
    ID N
    v1 a
    v2 b
    v3 c
    c1 d
    c2 e
    c3 f
    c4 g
    7 rijen zijn geselecteerd.Regards,
    Rob.

  • How to select odd/even rows from table....

    How to select odd/even rows from a table?
    Please help.
    Edited by: vaibhav on May 7, 2012 5:30 AM

    just don't expect the results to come out in the sequence odd, even, odd, even .....
    The answer you have marked correct needs two order by clauses to guarantee that.
    The inner select will return rows in a random order, potentially different each time you run it. The outer select may not return rows in the same order as the inner one.

  • How to select a value of a max value of another column in the same row?

    pversion pdate pcount
    1     11/6/2011     1
    0     11/6/2011     25
    1     11/6/2011     24
    How to select pversion for a maximum pcount, in this case max count is 25 and version will be 0?

    Like this?
    -- Data:
    with yourtable as
    select 1 pversion , 1 pcount from dual union all
    select 0 , 25 from dual union all
    select 1 , 24 from dual
    -- Query:
    select max(pversion ) keep (dense_rank last order by pcount) m_pversion
    from yourtable;(When you want to use the query with your real data, you will have to change 'yourtable' to your actual tablename)

Maybe you are looking for