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

context menu

i want to add a new help option to the context menu for the column headers of a table web item.


characteristic key fig key fig key fig

char val data data data

and behind this option i will call a javascript function which in turn executes a url to a bsp

i have two questions:

1. how do i make the context menu entry only appear for the header cells of my report? both characteristic and key figure but NOT for the data cells.

2. how do i get the value of the infoObject behind the header??

i.e. scenario: i click on characteristic header OCALMONTH and the context menu opens with my custom help entry. now i want to be able to click on that entry and my javascript function would populate my url with

is there a standard BW javascript function which returns this value?

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 14, 2004 at 04:08 PM


    please have a look on the online documentation which will give you some examples:


    This should answer the questions 1 and and 2

    Usage of the parameter cell_type and filter should do the trick.



    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 15, 2004 at 08:48 AM

    thanks heike.

    i've made it work using the javascript below BUT this will only work for the specific characteristic header. i need it to be much more generic than this.....

    i.e. the help context menu entry is available for any table header(characteristic or key_figure)



    if i use filter it will only point to 1 cell. in this case 0CALMONTH.

    i really need to be able to put something along the lines of CAPTION_CELL. could i use the STRUCTURE parameter? haven't found any documentation for how it works?

    SAP Documentation extract


    ‘ ’ = No restriction

    ‘CHARACTERISTIC’ = Characteristic

    ‘CHARACTERISTIC_VALUE’ = Characteristic value

    ‘STRUCTURE’ = Structure

    ‘STRUCTURE_MEMBER = Structural component"

    <SCRIPT language="JavaScript">


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

    var url;

    url = "";

    url = url + "?context=" + escape(filter);

    SAPBWOpenWindow(url, "Help", 600,400);



    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member


      you have to use twice the javascript function once for the CHARACTERISTIC and once for the STRUCTURE_MEMBER.



      then for the menuProcessor:

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

      switch (parameter) {

      case '1' : alert('Iobjnm: ' + filter );


      case '2' : alert('Structure element :' + parameter1 );





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.