on 01-08-2008 2:02 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kai,
Thanks for your answer but it's not that I am searching. I already use this "parameter" in WAD.
What I am searching is where is stored the ABAP code which is used to build the context menu ! I need to add some new entry using cascade view (parent node/child node).
Thanks in advance
Aleksi
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).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.