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

Context Menu in web reports

Hi Gurus,

Someone knows where is stored the code which is used for the context menu in web reports ? I want to add some code on it !

Thanks in advance,

Aleksi

Edited by: Aleksi on Jan 8, 2008 3:02 PM

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2008 at 03:56 PM

    Hi ,

    simply add the following parameters to the template Properties in HTML View of WAD

    // Menu entry at the beginning and only on customer cells

    <param name='CMENU_LABEL_1' value='Customer details'>

    <param name='CMENU_FUNCTION_1' value='myMenuProcessor'>

    <param name='CMENU_PARAMETER_1' value='1'>

    <param name='CMENU_CELL_TYPE_1' value='CHARACTERISTIC_VALUE'>

    <param name='CMENU_FILTER_1' value='0CUSTOMER'>

    <param name='CMENU_VISIBILITY_1' value='X'>

    <param name='CMENU_POSITION_1' value='TOP'>

    // Menu entry at the end for IT homepage

    <param name='CMENU_LABEL_2' value='Customer details'>

    <param name='CMENU_FUNCTION_2' value='myMenuProcessor'>

    <param name='CMENU_PARAMETER_2' value='2'>

    <param name='CMENU_VISIBILITY_2' value='X'>

    <param name='CMENU_POSITION_2' value='BOTTOM'>

    // Menu entry at the beginning and only on material groups

    <param name='CMENU_LABEL_3' value='Materials'>

    <param name='CMENU_FUNCTION_3' value='myMenuProcessor'>

    <param name='CMENU_PARAMETER_3' value='3'>

    <param name='CMENU_CELL_TYPE_3' value='CHARACTERISTIC_VALUE'>

    <param name='CMENU_FILTER_3' value='0MATGROUP'>

    <param name='CMENU_VISIBILITY_3' value='X'>

    <param name='CMENU_POSITION_3' value='TOP'>

    Below would be the javascript handler.

    myMenuProcessor(parameter,cell_type,filter,parameter1,parameter2,item,dataprovider,x,y){

    switch (parameter){

    case "1":

    // Report-report-interface jump to customer details Web application in a new window

    SAPBWOpenWindow(SAP_BW_URL_Get() + "&CMD=RRI&DATA_ROW=" + y +

    "&DATA_COLUMN="

    + y + "&IOBJNM=0CUSTOMER&RRI_RECEIVER=ABC","CustDetails",600,400);

    SAP Online Help 02.04.2004

    Web API Reference BW 3.5 239

    break;

    case "2":

    // Call IT help page

    SAPBWOpenWindow("http://…/it/olap/help.htm","Help",600,400);

    break;

    case "3":

    // Filter material group and expand by material

    SAPBWOpenUrl(SAP_BW_URL_Get() + "&CMD=EXPAND&" +

    "DATA_PROVIDER=" + escape(dataprovider) +

    "&IOBJNM=0MATERIAL&IOBJNM_PARENT=0MATGROUP&FILTER_IOBJNM=0MATGROUP"

    +

    "&FILTER_VALUE=" + escape(parameter1) + "&FILTER_NODE_IOBJNM=" +

    escape(parameter2));

    break;

    }

    }

    Best regards,

    kai

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Aleksi,

      the ABAP CLASS for managing the javascript stuff is CL_RSR_WWW_JAVASCRIPT. But remember those classes are SAP internal using them in own programs can cause error or malfunctions in SAP Standard.

      making submenus is not that easy.

      best regards,

      Kai

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2008 at 02:05 PM

    Hi,

    Are you working on BI 7.0? Because in that case, to edit the context menu, you can create a web template and simply use the context menu web item in it to have the desired context menu when your template is run (you can even turn it off).

    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.