How to read row index when clicking on F4 search multiple rows

Hi Experts,
I would like to read index of selected row in assignation block. Please help.
My requirement is to restrict product search base on product category available in same row of table row.
When I select f4 search on product ID, It shows me all products available in system, however user wants product search should be based on product catagory.
I have added following code in get_v_orderprod. Problem is when user click on f4 button on product for first time CONTROL doesnot go to get_v_orderprod method in BT111H_OPPT component btadmini contextnode firsttime pop up comes with open search of all product available in system.
DATA:  lr_admini            TYPE REF TO cl_crm_bol_entity,
         lr_iterator         TYPE REF TO if_bol_bo_col_iterator,
         lv_ordered_prod     TYPE REF TO crmt_ordered_prod_db,
         lr_collection       TYPE REF TO if_bol_bo_col,
         current             TYPE REF TO if_bol_bo_property_access,
         dref                TYPE REF TO data,
         lv_pr_catagory      TYPE string.
  FIELD-SYMBOLS: <l_data> TYPE data.
* if iterator is bound.
*      current = iterator->get_current( ).
*    else.
*      current = collection_wrapper->get_current( ).
*    endif.
  lr_iterator = me->collection_wrapper->get_iterator( ).
if lr_iterator is bound.
      current = lr_iterator->get_current( ).
    else.
      current = collection_wrapper->get_current( ).
endif.
lr_admini ?= current.
*   lr_admini ?= lr_iterator->get_by_index( iv_index = iv_index ).
  IF lr_admini IS BOUND.
    lr_collection = lr_admini->get_related_entities(
                 iv_relation_name = 'BTItemProductExt' ).
*   lr_collection = current->get_related_entities(
*                 iv_relation_name = 'BTItemProductExt' ).
    current = lr_collection->get_current( ).
*   if lr_collection is bound.
*      current  = lr_collection->get_current( ).
*    else.
*      current = me->collection_wrapper->get_current( ).
*    endif.
    IF current IS BOUND.
      TRY.
          dref = current->get_property( 'PROD_HIERARCHY' ).
          ASSIGN dref->* TO <l_data>.
          CHECK <l_data> IS ASSIGNED.
          lv_pr_catagory = <l_data>.
        CATCH cx_sy_ref_is_initial.
          RETURN.
      ENDTRY.
      CLEAR: lv_pr_catagory.
    ENDIF.
  ENDIF.
Is there anyway out to achieve this ?
Thanks
Neha

Hi Venkat,
<li>You are the right person to solve the problem .
<li>What you have to get it solved is place Break-point on REUSE_ALV_GRID_DISPLAY function module and break-point inside USER_COMMAND event where u press SCREEN button which takes you to table control and another break point where DELETE function you are doing. Definitely it works out.
Thanks
Venkat.O

Similar Messages

  • Row index when a hyperlink in a particular row is clicked

    Hi  Experts,
    I have a table with 10 columns & 5 rows. I have hyperlink in each row that means I have total 5 hyperlinks.
    Now when I click one particular hyperlink in any row I want the index of that particular row(or the row reference) where hyperlink is being clicked.
    Please suggest how to get the row index.
    Thanking you.
    Regards,
    Anindita

    HI,
    Creat a event to handle the event ON_CLICK of SALV_WD_TABLE component then you can use the parameter
    R_PARAM->INDEX of the method created to get the index of the selected link element.
    example:
    * navigate from <CONTEXT> to <ND_ALV_RESULT> via lead selection
      lo_nd_nd_alv_result = wd_context->get_child_node( name = wd_this->wdctx_nd_alv_result ).
    * alternative access via index
      lo_el_nd_alv_result = lo_nd_nd_alv_result->get_element( index = r_param->index ).
    * get all declared attributes
      lo_el_nd_alv_result->get_static_attributes( IMPORTING static_attributes = ls_nd_alv_result ).
    Regards,
    Fabio Saito

  • How to aggregate the measue when click '∑' ?

    Hi Experts,
    How to aggregate the measue when click '∑' ?
    For example:
    In table view.
    A-----------A1-----------2
    A-----------A2-----------3
    ATotal-------------------5
    B-----------B1-----------2
    B-----------B2-----------3
    BTotal-------------------5
    GrTotal------------------10(It is not my expected result.)
    However, GrTotal is not my expect result, the correct result is 5 , not 10. How to implement my requrement? Thanks.

    Hi,
    If you want the result to be the average of your sub-totals (?) then I think the only way you can do is is by using a union query to give the 'illusion' of a grand-total.
    Using this mechanism you can create a grand-total using whatever logic you wish, you then just combine the result and with cunning use of headings / formatting make it look exactly like a standard functionality total.
    Helpful?
    regards,
    Robert.

  • How to make it selected when clicked and open popup

    Hi,
    I 've a form in the parent page with many form elements.
    I've 2 radio buttons with values "Yes" and "No". I am opening a modal popup when clicked on "Yes" radio button. The modal popup is opening fine.
    But when I click "Yes", it' s not selected. After modal popup is closed, when I return to parent page, the option "Yes" is still not selected.
    How to make it selected when clicked and open popup?

    Perhaps try moving the application to your preferred desktop and then right-click it's dock icon > options > Assign to This Desktop.

  • I accidentally quit my CC on my Macbook pro and now the cloud icon is grayed out and every time I hover over it with the mouse I get the spinning beach ball of death on the icon. I have no idea how to open it because when I use spotlight search to open it

    I accidentally quit my CC on my Macbook pro and now the cloud icon is grayed out and every time I hover over it with the mouse I get the spinning beach ball of death on the icon. I have no idea how to open it because when I use spotlight search to open it it gives me a message saying "Creative Cloud is not open anymore" help!

    Since you didn't include any pertinent info such as the Mac model and OS version you are running, here is some general information:
    Mac OS X: Gray screen appears during startup
    Depending on which OS yours came with originally - and which OS you are now running - you would either need your original install disks - you can call Apple for replacements by giving them your serial number. Or you may be able to reinstall the OS by using recovery (again, depends on which model/which OS).

  • HELP! how to display an image when clicking on JLabel?

    hi. new to the forums. anyway, i need help in displaying an image.
    what i'm trying to do is when clicking on a JLabel using mouseClicked, an image will show and when the image is clicked it will disappear. i've searched and searched and have not found anything useful. thanks...

    thanks.
    searched on the setIcon, didn't find anything. btw, i know how to set the icon on the JLabel. i'm trying to figure out how i can get it that when i click on the JLabel by using the mouseClicked (or maybe even mousePressed) listener, the image pops up and when i click on the image, it closes or disappears.
    btw, i'm using the netBeans GUI builder for this. thanks again.

  • How to Get the value when clicking on the link

    I had a problem with when clicking on the link.
    I need get the link value to the controller when clicking on the link.
    I am displaying the database columns in jsp using repeater in links.
    I am displaying the data like this:
    RED
    BLUE
    GREEN
    these are three links.when clicking on the link RED. RED should go to the controller.
    After getting RED to the controller i will get the RED value from the database.

    my requirement is like that only
    I have just given the example of emp and dept
    emp(empno,zone_group_id,zone_id,deptno,ename,emp_p_ind,last_update_datetime);
    dept_emp(empno,dept_no,loc,dname,sal_emp,grade,last_update_datetime);
    CREATE OR REPLACE VIEW emp_zone AS
    SELECT e.empno,
          (select zone_group_id from price_zone_group where rownum = 1) zone_group_id,
           d.loc zone_id,    
           d.grade,  
           d.last_update_datetime,
      FROM dept_emp d
          emp e
    WHERE d.empno=e.empno
       AND e.emp_p_ind = 'Y'
      WITH READ ONLY;
    Now
    my requirement is to get the data of emp_zone view and needs to store those data into some other temp table
    if any of the above base table got updated deleted or inserted then the view last_updatetime also will get updated but problem is why im not using base table
    direct because it is having huge data and it performance issue .i have to get the value on the basis of view only and using some logic

  • How to open an image when clicking in a word.

    Im working in a demo for an interactive book for ipad using the Digital Publishing Suite > Folio Builder and i need to be able to open a specific image when clicking in a word. I havent found any tutorial that shows how to do this can somebody please point me in that right direction?  thx so much

    Download Bob Bringhurst's DPS Tips app from the app store and/or watch my lynda.com DPS Essentials Course. If you don't have a subscription you can get a free one week trial here: lynda.com library | Trial Subscription

  • In advancedSearch , how to set retainAM=Y when click 'Go' button

    Hi,
    I created advancedSearch in page, when I click on go button, I will get the result in advancedTable ,
    in the page Address, it will be appended '....&retainAM=N&addBreadCrumb=N&oapc=3',
    Now my question is how to set 'retainAM=Y' when I click on 'Go' button

    Hi Gyan,
    In advanched search, click go button, then I will get the result in the advanchedTable,
    and the address of this page will be added the statement '...retainAM=N..'
    Then, for example, click 'about this page', it will go to 'About Page'. click 'Return to Page: ', it will go to the previous page and the address of the page
    still be '..retainAM=N..', but now the result table is blank.
    I want to retain the result we have searched when return to the previous search page.
    I think if we can change the retainAM's value to 'Y' after clicking on 'Go' button, then when we return to this page, retainAM will still be 'Y' so that the
    result will be retained .
    And I found one thing so strange, in advancedSearch criteria, there are four criteria displaying in search region by default, but when I add one new criteria, even I don't erter any value to this new crireria, and then go button, in address of this page, it will be '..retainAM=Y', then when we return this page , it will retain the result

  • How to select 0's when a select statement returns no rows

    Hi,
    I'm using the following query in one of the report.
    SELECT mtrl.inventory_item_id
         ,mtrl.organization_id
         ,mtrl.to_subinventory_code
         ,NVL(SUM(mtrl.quantity),0)quantity
         ,NVL(SUM(mtrl.quantity_delivered),0)quantity_delivered
    FROM mtl_txn_request_lines mtrl, mtl_system_items_b msi
    WHERE mtrl.inventory_item_id = msi.inventory_item_id
    AND mtrl.organization_id     = msi.organization_id
    AND mtrl.reference_type_code = 2
    AND UPPER(mtrl.TO_subinventory_code) = NVL(UPPER(DECODE(:p_sub_inv,'ALL','',:p_sub_inv)),UPPER(mtrl.TO_subinventory_code))
    AND TRUNC(mtrl.CREATION_date) BETWEEN NVL(TRUNC(TO_DATE(:p_from_date,'yyyy/mm/dd hh24:mi:ss')),TRUNC(mtrl.CREATION_DATE) )
    AND NVL(TRUNC(TO_DATE(:p_to_date,'yyyy/mm/dd hh24:mi:ss')),TRUNC(mtrl.CREATION_DATE))
    GROUP BY mtrl.inventory_item_id,
         mtrl.organization_id,
         mtrl.to_subinventory_code
    For the perticular subinventory in that period there may not be data so the query returns no rows(ALL NULLs) in that case I need to get all 0's instead of NULL.
    I tried with UNION but it results in extra row when there is data. I need 0's only when the above query returns no rows.
    Any help in this regard is highly appreciated.

    My report uotput looks like this:
    Subinventory | Part Code |Part Description |Ordered Qty | Received Qty
    Mentone St | BATT | non serialised item | |
    Mentone St | SONY | spare parts MIN MAX | 30| 0
    In the above report
    subinventory, Part Code, Part description are in one repeating frame and Ordered and received qty are in other repeating frame.
    for a perticular part code there may not be ordered or received quantities. in that case report is showing null(blank) but I want to print ZERO there.
    If I use NVL in the query it'll effect only when the query fetches some rows.

  • How to hide a TextField when clicking another button

    Hello!
    I've been able to generate a TextField to appear when clicking a button, but when I click on another button, to display some more information, I still have the first TextField displayed.  I've had a look around, but not been able to find anything to help me with getting the first to disappear.  Can anyone provide any ideas for this?
    The code I'm using for displaying the TextField is:
    button10.addEventListener(MouseEvent.CLICK, fl_ClickToPosition);
    var fl_TF:TextField;
    var fl_TextToDisplay:String = "Send disply to the right screen/projector";
    function fl_ClickToPosition(event:MouseEvent):void
    fl_TF = new TextField();
    fl_TF.autoSize = TextFieldAutoSize.LEFT;
    fl_TF.background = true;
    fl_TF.border = true;
    fl_TF.x = 300;
    fl_TF.y = 100;
    fl_TF.text = fl_TextToDisplay;
    addChild(fl_TF);
    Many thanks in advance

    all your buttons should call the same function. 
    because each button probably triggers different text to be displayed, you can use an object or dictionary to associate the buttons and their text:
    // execute these two lines and your function once at the start of your app
    var dictionary:Dictionary=new Dictionary(true);
    var fl_TF:TextField;
    function fl_ClickToPosition(event:MouseEvent):void
    if(fl_TF&&fl_TF.parent){  /
    fl_TF.parent.removeChild(fl_TF);
    fl_TF=null
    fl_TF = new TextField();
    fl_TF.autoSize = TextFieldAutoSize.LEFT;
    fl_TF.background = true;
    fl_TF.border = true;
    fl_TF.x = 300;
    fl_TF.y = 100;
    fl_TF.text = dictionary[e.currentTarget];
    addChild(fl_TF);
    ////////// and for each button use something like:
    button10.addEventListener(MouseEvent.CLICK, fl_ClickToPosition);
    dictionary[button10] = "Send disply to the right screen/projector";

  • In ADF Tree how to Navigate to Pages When Clicking Tree Node   (TP4)  ?

    hi
    I know how to use af:tree as master-detail tree
    by draging detail views from Data Controls and dropping in JSF
    Page but I would like to know how to call other pages when double-clicking child nodes in the tree. in JDeveloper 11 TP4 & Windows XP
    Anybody can help?
    best regards
    Forakora;

    Hi,
    if it has to be a double click then this can be done with a clientListener that calls a JavaScript function and that you set to the doubleClickEvent type e.g.
    handleTreeSelection(event){
    // do here what you need to do
    queue event to a serverListener that references a managed bean. Use managed bean to
    navigate to another page
    Out of curiousity, what is the usecase ?
    Frank

  • How do I divide a list in one cell into multiple rows?

    I have copied lists of data from a website - some lists pasted as I want them (in individual rows), but others pasted the list in one row.  Is there an easy way to split a list in a single cell into multiple cells so ultimately I can sort all the rows?  I've tried "split the selected cells into rows" in the inspector, but it's not working... seems like it's creating another column instead (?).  Any help would be amazing.

    K,
    I find that Pages has the friendliest Find and Replace dialog, so when I need to swap around the delimiters I go straight to Pages and do the fixes there. Replace whatever is there between columns in the original content with Tab characters and replace whatever is there now for delimiting the rows with the Return character. Since it's sometimes difficult to tell what has been used, just copy it from the content and Paste into the Find field. Choose the Tab or Return character from the Replace drop down menu.
    When you have it all fixed up, then paste into Numbers.
    Jerry

  • I'm a MB Pro beginner (after 25 years with PC). I have an Iomega ext HD, but how do get it indexed. I'm trying searches in Finder, and it says "searching Iomega drive" - but I don't think it's indexing. How do I force it to index?

    I'm a MB Pro beginner (after 25 years with PC). I have an Iomega ext HD, but how do get it indexed?, and it doesn't come up with any results I'm trying searches in Finder, and it says "searching Iomega drive" - but I don't think it's indexing. How do I force it to index?

    Well I'm leaning the other way. I think my present MBP will be the last Apple product I buy.
    With the way Apple is going, all New Mac computers are sealed unit that don't allow the user to upgrade them in any way. They are getting more expensive initially. They are impossible to fix, even by Apple. All the parts are either soldered to the Logic Board or glued inside the case parts. The add on warranty only covers manufacturing defects and is expensive. And to fix one out of waranty is close to if not more then a new system.
    The only thing different in a Mac, and most other products Apple sells, is the operating system and the cases they come in. As for the OS both have their glitches and at this time there are no viruses that infect OS X. There is more software available for Windows. More choices as to what hardware you can use or upgrade to at a later date.
    Mac computers are becoming large iPads or iPhones with built in keyboards.
    jeremy_from_rome wrote:
    And as for the question: PC or Mac, the consensus that I hear from colleagues and friends is just as you state it: stay with Mac, be patient, work at it, and you’ll never look back! Thanks again

  • Pressing cntrl+left mouse click doesn't select multiple rows.

    Hi,
    I've got this problem after i migrated my form from 6i to 10g.
    In 6i version, cntrl+left mouse click used to work in order to select multiple rows on the screen. But, it's not working in 10g.
    Instead, Shit + left mouse click is working to select multiple rows in 10g.
    Please can someone help me out with this. I want cntrl + left mouse click to work.
    Any help will be appreciated.
    Regards
    Navnit

    Hi Pradeep,
    Thanks for your reply.
    Do you mean fmrweb.res file?
    This is the content of my res file
    9 : 0 : "Tab" : 1 : "Next Field"
    9 : 1 : "Shift+Tab" : 2 : "Previous Field"
    116 : 0 : "F5" : 3 : "Clear Field"
    38 : 0 : "Up" : 6 : "Up"
    40 : 0 : "Down" : 7 : "Down"
    33 : 0 : "PageUp" : 12 : "Scroll Up"
    34 : 0 : "PageDown" : 13 : "Scroll Down"
    69 : 2 : "Ctrl+E" : 22 : "Edit"
    10 : 0 : "Return" : 27 : "Return"
    76 : 2 : "Ctrl+L" : 29 : "List of Values"
    115 : 0 : "F4" : 32 : "Exit"
    75 : 2 : "Ctrl+K" : 35 : "Show Keys"
    83 : 2 : "Ctrl+S" : 36 : "Commit"
    118 : 1 : "Shift+F7" : 61 : "Next Primary Key"
    117 : 0 : "F6" : 62 : "Clear Record"
    38 : 2 : "Ctrl+Up" : 63 : "Delete Record"
    117 : 1 : "Shift+F6" : 64 : "Duplicate Record"
    40 : 2 : "Ctrl+Down" : 65 : "Insert Record"
    119 : 1 : "Shift+F8" : 66 : "Next Set of Records"
    1005 : 0 : "Down" : 67 : "Next Record"
    1004 : 0 : "Up" : 68 : "Previous Record"
    118 : 0 : "F7" : 69 : "Clear Block"
    66 : 2 : "Ctrl+B" : 70 : "Block Menu"
    34 : 1 : "Shift+PageDown" : 71 : "Next Block"
    33 : 1 : "Shift+PageUp" : 72 : "Previous Block"
    116 : 1 : "Shift+F5" : 73 : "Duplicate Field"
    119 : 0 : "F8" : 74 : "Clear Form"
    122 : 0 : "F11" : 76 : "Enter Query"
    122 : 2 : "Ctrl+F11" : 77 : "Execute Query"
    69 : 3 : "Shift+Ctrl+E" : 78 : "Display Error"
    80 : 2 : "Ctrl+P" : 79 : "Print"
    123 : 0 : "F12" : 80 : "Count Query"
    85 : 2 : "Ctrl+U" : 81 : "Update Record"
    121 : 3 : "Shift+Ctrl+F10" : 82 : "Function 0"
    112 : 3 : "Shift+Ctrl+F1" : 83 : "Function 1"
    113 : 3 : "Shift+Ctrl+F2" : 84 : "Function 2"
    114 : 3 : "Shift+Ctrl+F3" : 85 : "Function 3"
    115 : 3 : "Shift+Ctrl+F4" : 86 : "Function 4"
    116 : 3 : "Shift+Ctrl+F5" : 87 : "Function 5"
    117 : 3 : "Shift+Ctrl+F6" : 88 : "Function 6"
    118 : 3 : "Shift+Ctrl+F7" : 89 : "Function 7"
    119 : 3 : "Shift+Ctrl+F8" : 90 : "Function 8"
    120 : 3 : "Shift+Ctrl+F9" : 91 : "Function 9"
    113 : 0 : "F2" : 95 : "List Tab Pages"
    72 : 2 : "Ctrl+H" : 30 : "Help"
    112 : 0 : "F1" : 30 : "Help"
    I don't know what value should i enter for cntrl + left mouse click ?
    Even for shift + left mouse click, row is not there but it's working.
    Please tell if you know what row should i enter for cntrl + left mouse click in order for it to select mutliple rows?
    Regards
    Navnit

Maybe you are looking for

  • Intrastat - Returned Goods

    Hi All, How do we consider the Returned Goods???  When I create a order type for returned Goods and check the Intrastat Reporting, it shows up in Export (VE01) as negative posting and not in the Goods Receipt.  And when I look at the VIEAV Table it s

  • Want to append time stamp to file name in log4j property

    Hi I want to append the timestamp to name of log file. here i am attaching my sample log4j.property file plase heple me for correct syntax log4j.logger.bar=DEBUG, dest1 log4j.appender.dest1=org.apache.log4j.DailyRollingFileAppender log4j.appender.des

  • False Positives with GRC AC 5.2

    Hi, I actually have been working with GRC AC 5.2 (Compliance Calibrator) and we encountered several problems with false positives, working in the risk analysis. ¿do anyone knows how to solve this problem? ¿do you have documents or links to help? Than

  • [Oracle Database 10g Express Edition] Don't UP

    Hi, I've installed the "Oracle Database 10g Express Edition" in my laptop, ThinkPad T60. The installation finish fine or I think that. In the event viewer I don't see any error. But I cant sing on in SQL/PLUS and I can't go to web config. All service

  • Separate month end cut-off date

    Hi, I have 2 companies in a same clients. These 2 companies would like to have separate month end cut-off date. Please advice how to do it in OB29.