Skip to Content
author's profile photo Former Member
Former Member

User Interaction with BW Query in iView

Hello all,

I have a simple BW Query displayed in an iView, rows are customer and invoice number.

Is it possible to add interactive functionality to this? What i mean is, the user clicks on the invoice number and another iView on the same page displays some details about that invoice (I'd call a BAPI for this).

Right clicking on the invoice number (etc) brings up the browsers context menu and left clicking brings up the BW Query context menu (drilldown, filter etc) so how can I influence this?

Would drag & relate be the only solution to this? Instead of clicking for the functionality the user would have to drag the invoice number to the d&r target? My knowledge of d&r is limited to the fact that it exists and no more at this stage.

Any help will be greatly appreciated.

Thanks for your time,

Patrick.

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on Sep 06, 2004 at 09:03 AM

    Hi,

    One way would be to disable IE standard right click context menu and using your own.

    (sample is available at http://www.dynamicdrive.com/dynamicindex1/contextmenu2.htm)

    Regards

    Raja

    Add a comment
    10|10000 characters needed characters exceeded

    • As i have mentioned earlier

      +One way would be to disable IE standard right click context menu and using your own.

      (sample is available at http://www.dynamicdrive.com/dynamicindex1/contextmenu2.htm)+

      you can replace the default ie context menu with yours and the other option is to add your own menu to the standard BW context menu(sample below).

      SAPBWAddToMenu(label, handlerFunction, ...)
        label: Text to be displayed in the context menu
        handlerFunction: JavaScript handler function for execution of the command
        handlerFunctionParameter: Parameter for the handler function (if required)
        cell_type: Context of the cells where the entry should be displayed,
      e. g., ' '=all contexts, 'CHARACTERISTIC'‚ 'CHARACTERISTIC_VALUE'‚
      'STRUCTURE', 'STRUCTURE_VALUE', 'DATA', etc.
        filter: Filter on the cell type, e. g., filter only on characteristic 0CUSTOMER
        visibility: 'X' for simple menu, 'E' for enhanced menu, or ' ' for no display at all
        position: At the 'BOTTOM' or 'TOP' of the menu
        data_provider: Only on cells filled by Data_provider
        item: Only on the specified item
        Example: Call the company help desk web page
      SAPBWAddToMenu(“Help Desk”,“MyJSHandler”,“”,“”,“”,“X”, “BOTTOM”,“”,“”);
      
      MyHandlerFunction(handlerFunctionParameter, cell_type, filter,...,x,y)
        handlerFunctionParameter: Value set in SAPBWAddToMenu for the handler
        cell_type: Cell type of the current context
        filter: Context of the cell, e. g., 'CHARACTERISTIC'
        parameter1: Context of the cell, e. g., '0COUNTRY‚
        ...
        X: Data column coordinate (needed for RRI – Report-To-Report Interface)
        Y: Data row coordinate (needed for RRI)
        Example: Handler function for the Help Desk menu entry
      <SCRIPT language=“JavaScript“>
      function myJSHandler(p,cell_type,filter,p1,p2,item,data_provider,x,y){
      // Call the help page
      SAPBWOpenWindow("http://…/it/help.htm","Help",600,400);
      }
      </SCRIPT>
      

      Regards

      Raja

  • author's profile photo Former Member
    Former Member
    Posted on Nov 24, 2004 at 12:28 PM

    Hi Raja,

    I remember your solution, thanks. The thread became active again because someone posted a reply about iView to iView eventing, I responded to that.

    Thanks again,

    Patrick.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 24, 2004 at 04:15 PM

    Hi - You mentioned drag and relate in your response. This is exactly what drag and relate can do. By dragging invoice no to navigation area the related invoice details would be displayed.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.