Which menu item has been selected?

At runtime when a user selects a menu item in the portal that leads them into a Web Dynpro ABAP Application, I need to know which menu item they have selected. We have 2 menu items that use the same web dynpro ABAP application and need to know which one has been selected by the user. Can anyone help with this please?
thanks,
Malcolm.

Malcolm Clark wrote:
At runtime when a user selects a menu item in the portal.......We have 2 menu items that use the same web dynpro ABAP
Are you talking about portal navigation nodes or something else?

Similar Messages

  • Finding which menu item has been clicked

    Does oracle forms have anyway of knowing which menu item has been clicked.
    I have a security structure set up where menu items are made visible depending on their name, which in turn is based on the individual forms that a particular user can access.
    I would like to write a generic method for all menu items where it uses the name of the clicked menu item to perform a query, the result could be used to open a new form.
    So is there a build in or some 'secret source' which tells me the name or gives me the id of a clicked menu item?
    Message was edited by:
    gazbarber

    Not entirely sure what you mean, are you sugesting i have a generic method with a switch statment and uses the input paramter to decide what to do?
    It's not really what i'm after, rather I already have the name of the menu item in the database, the same table also contains the module filename that clicking the button should go to.
    So the idea would be somthing like
    declare
    begin
    select module name into new form from secutity table where menu item = :system.current menu item;
    open_form(new form);
    end;
    :sysem.current menu item is the missing ingreadiant.
    My menu has many items in the hundreds i think so even the generic switch staement would be pretty tedious and i want changes in the database to be felt system wide as they are else where in my system.
    Thanks for you help and i hope this explains my question better.
    Regards,
    Gareth
    Message was edited by:
    gazbarber

  • How to determine which FileChooser ExtensionFilter has been selected

    Hi,
    I'm using a JavaFX fileChooser.showSaveDialog with two extension filters (*.csv and *.xml). How can I determine which filter was selected when the end-user clicks the save button?
    I am writing a program that allows the end-user to create an output file in CSV or XML format.
    If the end-user enters a file name with no extension, I need a way to determine if I should create a CSV or XML file. I would also like to add the proper extension to the file name if none is specified by the end-user. I want to do this based on which filter the end-user has selected. I wrote a Java program 5 years ago and I was able to do this with the following instruction:
    String extension = jFileChooser.getFileFilter().getDescription();
    I can't find a similar instruction for JavFX.
    My JavaFX Code:
    FileChooser fileChooser = new FileChooser();
    fileChooser.setInitialDirectory(new File(options.getOutputDirectory()));
    ExtensionFilter filter1 = new FileChooser.ExtensionFilter("Comma Delimited (*.csv)", "*.csv");
    fileChooser.getExtensionFilters().add(filter1);
    ExtensionFilter filter2 = new FileChooser.ExtensionFilter("XML Document (*.xml)", "*.xml");
    fileChooser.getExtensionFilters().add(filter2);
    File file = fileChooser.showSaveDialog(stage);
    String filename = file.getAbsolutePath();...How do I determine which extension filter has been selected?
    My Java Code:
    JFileChooser jFileChooser = new JFileChooser();
    jFileChooser.setCurrentDirectory(new File(outputDirectory));
    jFileChooser.setSelectedFile(new File(backupfile));
    FileFilter filter = new FileNameExtensionFilter("Comma Delimited (*.csv)", "csv");
    jFileChooser.addChoosableFileFilter(filter);
    jFileChooser.setFileFilter(filter);
    filter = new FileNameExtensionFilter("XML Document (*.xml)", "xml");
    jFileChooser.addChoosableFileFilter(filter);
    jFileChooser.setAcceptAllFileFilterUsed(false);
    jFileChooser.setDialogTitle("Export Alarms");
    jFileChooser.setBackground(colorFileChooser);
    int returnVal = jFileChooser.showDialog(jFrame, "Export");
    if (returnVal == JFileChooser.APPROVE_OPTION) {
        File file = jFileChooser.getSelectedFile();
        String filename = file.getAbsolutePath();
        String extension = jFileChooser.getFileFilter().getDescription();
        if (extension.equals("XML Document (*.xml)")) {
            if (!filename.endsWith(".xml") && !filename.endsWith(".XML")) {
                filename = filename + ".xml";
            saveTableXML(filename);
        else if (extension.equals("Comma Delimited (*.csv)")) {
            if (!filename.endsWith(".csv") && !filename.endsWith(".CSV")) {
                filename = filename + ".csv";
            saveTableCSV(filename);
    }Thanks,
    Barry
    Edited by: 907965 on May 13, 2012 1:14 PM
    Edited by: 907965 on May 13, 2012 1:15 PM
    Edited by: 907965 on May 13, 2012 1:19 PM

    This problem is currently tracked as http://javafx-jira.kenai.com/browse/RT-18836.

  • How do I know what item has been selected in a select list?

    I built a select list where the user selects one item from the list and then searches using the searchfield. I need to know what item has been selected in the select list so that I can do branching and branch the user to a particular page. Can someone tell me how I can accomplish this?
    So if I want to search for Tea in the drinks category I would need to click on Drink in the select list and then type "Tea" and select search. After that I get redirected to a table called "Drinks" and there the search results will be displayed. please help!

    I tried to mach expressions... I made a simple list(with redirection):
    STATIC:Yes;Y,No;N and it displays fine. I then try to do branching where exp1=exp2 Where I tried to have the label "X" for E1 and "Y" for E2 and nothing happened. I tried to use the name of the list Xlist and it failed too. I tried Request=exp1 and didnt work either. I set the source for the list as static. I am not sure what I am doing wrong. When i tried !=exp nothing happened either... perhaps the values I am using are wrong? Pleas help me out.

  • How to display further information when a drop down menu option has been selected.

    Hi all,
    Thank you in advance for any replies!
    I'm building a website which has a drop down menu (HTML for the menu is below). When a TV size is selected i need the pricing information for that specific TV size to appear below the menu.
    Is there a way to do this?
    Thank you!
    <select name="Please select your TV Size" size="1">
            <option> </option>
            <option>Less than 42&quot;</option>
            <option>More Than 42&quot;</option>
          </select>

    Sure it is. And Nancy has given you a good alternative as well.
          <p>TV1 <input id="num1" type="radio" checked value="tv1" onclick="document.getElementById('tv1').style.display='block';document.getElementById('tv 2').style.display='none';this.checked=true;document.getElementById('num2').checked=false;" ></p>
          <p>TV2 <input id="num2" type="radio" value="tv2" onclick="document.getElementById('tv2').style.display='block';document.getElementById('tv 1').style.display='none';this.checked=true;document.getElementById('num1').checked=false;" ></p>
    <div id="tv1">Info for TV1</div>
    <div id="tv2">Info for TV2</div>
    With this CSS -
    <style type="text/css">
    #tv1 { display:block; }
    #tv2 { display:none; }
    </style>
    Should work.

  • How to find out the PO line items for which no GRN has been done

    Dear Friends,
    I need a report which will show all the fully open PO items for which no GRN has been done.
    In ME2N when I give the selection parameter "open goods receipt" then it shows all the line items with partially & fully open. But my requirement is to get a report of only fully open items.
    Regards
    Rutabhadra Panda

    Hi Friends,
    Thanks a lot for your reply.
    But this is a report which projects the expected GRNs & does not depend whether partial or full.
    Is there any other way out?
    Can  I download from the table directly.
    Regards
    Rutabhadra Panda

  • ERROR - Select a location to which a plant has been assigned

    1 Message
      Select a location to which a plant has been assigned  (Item  BOLT&NUT 4.6 COMM HEX HEAD BLK 10X170MM ) 
    this is the error message I get any idea how to fix it?
    Cheers
    B

    Hi. I presume the plants are linked correctly to the new company code in the backend, table T001K?
    Also, check the entries in SRM in table BBP_LOCMAP.
    Are the plants assigned to the right company codes in this table?
    There is an issue if you replicate plants to SRM then change the company code assignment SRM does not get updated.
    To correct BBP_LOCMAP you can use function BBP_CHANGE_ORGANIZATION.
    Regards,
    Dave.

  • Select a location to which a plant has been assigned

    Hi all.
    We Work in SRM 5.0 Extended Scenario, ECC 6.0.
    When I try to make a PO from a SC system sends me the following error: Select a location to which a plant has been assigned.
    I made corrections in the organizational unit, assign default to the plant as buyers in extended attributes, but the problem persists.
    Any help will be good.

    Hi Raul,
    Check whether in the Extended Attributes of P.Org / P.Group where the user is assigned has Locations maintained or not.
    Also check for any check in the Deactivate check box.
    Check in BBP_LOCMAP table using SE16 txn. whether all the plants concerned were replicated from the correct logical system or not.
    Otherwise once again replicate the plants using BBP_LOCATIONS_GET_SELECTED report.
    Check for the consistency of Business partner using BBP_BP_OM_INTEGRATE txn by inputting the business partner number of plant.
    Please let us know after checking and modifying the above mentioned points for further help.
    Hope this will help you in resolving the issue.
    Award points for helpful answers.
    Rgds,
    Teja

  • How do I keep file menu open after CheckBox has been selected?

    The following represents a written code for a menu with checkboxes. I would like the menu to stay open after a check box has been selected. Does anyone have a suggested modification for this to occur?
    Thanks,
    JR
    public class NewJFrame extends javax.swing.JFrame {
    /** Creates new form NewJFrame */
    public NewJFrame() {
    initComponents();
    /** This method is called from within the constructor to
    * initialize the form.
    * WARNING: Do NOT modify this code. The content of this method is
    * always regenerated by the Form Editor.
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">
    private void initComponents() {
    jMenuBar1 = new javax.swing.JMenuBar();
    jMenu1 = new javax.swing.JMenu();
    jCheckBoxMenuItem1 = new javax.swing.JCheckBoxMenuItem();
    jCheckBoxMenuItem2 = new javax.swing.JCheckBoxMenuItem();
    jCheckBoxMenuItem3 = new javax.swing.JCheckBoxMenuItem();
    jMenu2 = new javax.swing.JMenu();
    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    jMenu1.setText("File");
    jCheckBoxMenuItem1.setSelected(true);
    jCheckBoxMenuItem1.setText("jCheckBoxMenuItem1");
    jMenu1.add(jCheckBoxMenuItem1);
    jCheckBoxMenuItem2.setSelected(true);
    jCheckBoxMenuItem2.setText("jCheckBoxMenuItem2");
    jMenu1.add(jCheckBoxMenuItem2);
    jCheckBoxMenuItem3.setSelected(true);
    jCheckBoxMenuItem3.setText("jCheckBoxMenuItem3");
    jMenu1.add(jCheckBoxMenuItem3);
    jMenuBar1.add(jMenu1);
    jMenu2.setText("Edit");
    jMenuBar1.add(jMenu2);
    setJMenuBar(jMenuBar1);
    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGap(0, 400, Short.MAX_VALUE)
    layout.setVerticalGroup(
    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGap(0, 279, Short.MAX_VALUE)
    pack();
    }// </editor-fold>
    * @param args the command line arguments
    public static void main(String args[]) {
    java.awt.EventQueue.invokeLater(new Runnable() {
    public void run() {
    new NewJFrame().setVisible(true);
    // Variables declaration - do not modify
    private javax.swing.JCheckBoxMenuItem jCheckBoxMenuItem1;
    private javax.swing.JCheckBoxMenuItem jCheckBoxMenuItem2;
    private javax.swing.JCheckBoxMenuItem jCheckBoxMenuItem3;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenuBar jMenuBar1;
    // End of variables declaration
    }

    Sorry Jack.
    Here is the code so that it appears more readable whenever it gets moved.
    public class NewJFrame extends javax.swing.JFrame {
        /** Creates new form NewJFrame */
        public NewJFrame() {
            initComponents();
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        @SuppressWarnings("unchecked")
        // <editor-fold defaultstate="collapsed" desc="Generated Code">
        private void initComponents() {
            jMenuBar1 = new javax.swing.JMenuBar();
            jMenu1 = new javax.swing.JMenu();
            jCheckBoxMenuItem1 = new javax.swing.JCheckBoxMenuItem();
            jCheckBoxMenuItem2 = new javax.swing.JCheckBoxMenuItem();
            jCheckBoxMenuItem3 = new javax.swing.JCheckBoxMenuItem();
            jMenu2 = new javax.swing.JMenu();
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            jMenu1.setText("File");
            jCheckBoxMenuItem1.setSelected(true);
            jCheckBoxMenuItem1.setText("jCheckBoxMenuItem1");
            jMenu1.add(jCheckBoxMenuItem1);
            jCheckBoxMenuItem2.setSelected(true);
            jCheckBoxMenuItem2.setText("jCheckBoxMenuItem2");
            jMenu1.add(jCheckBoxMenuItem2);
            jCheckBoxMenuItem3.setSelected(true);
            jCheckBoxMenuItem3.setText("jCheckBoxMenuItem3");
            jMenu1.add(jCheckBoxMenuItem3);
            jMenuBar1.add(jMenu1);
            jMenu2.setText("Edit");
            jMenuBar1.add(jMenu2);
            setJMenuBar(jMenuBar1);
            javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
            getContentPane().setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGap(0, 400, Short.MAX_VALUE)
            layout.setVerticalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGap(0, 279, Short.MAX_VALUE)
            pack();
        }// </editor-fold>
        * @param args the command line arguments
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new NewJFrame().setVisible(true);
        // Variables declaration - do not modify
        private javax.swing.JCheckBoxMenuItem jCheckBoxMenuItem1;
        private javax.swing.JCheckBoxMenuItem jCheckBoxMenuItem2;
        private javax.swing.JCheckBoxMenuItem jCheckBoxMenuItem3;
        private javax.swing.JMenu jMenu1;
        private javax.swing.JMenu jMenu2;
        private javax.swing.JMenuBar jMenuBar1;
        // End of variables declaration
    }

  • Weblink to react on a value of a picklist which has been selected on screen

    I've a requirement as follows:
    I would like a weblink to react on a value of a picklist which has been selected by a user but has not yet been saved to the dB of CRM On Demand.
    Could anybody tell me how to realise this requirement.
    Thanks!
    Pepijn
    Edited by: user11085279 on 24-nov-2010 15:29

    Hi Raghu,
    Creating a new SR of a certain type gives you a screen to fill in the required fields for this type of SR.
    When a picklist value is selected for a picklist field, this value it is not yet saved to the database.(Only after saving the SR)
    Because of this it is not possible to use this picklistfield in a weblink to react on. (dynamic url)
    The weblink is on the same screen.
    I would like to know if it's possible to read the selected picklist value form the screen before it is saved to the database.
    And the weblink to react on it.
    Fore example with javascript or some other technology.
    Pepijn

  • How to know which button has been selected on portal screen

    Dear Freinds,
                i an abaper i have one specific doubt regarding icon which has been selected on the portal screen.
    My requirement is we have portal screen on which i have two Buttons(or links) one Self and another for Dependents. i have to write an Bapi or RFC and give it to webdynpro developer.
    i have to write logic in my RFC based on the button selected on the portal screen (self or dependent) .
    in my RFC function module i have used import parameters &  table parameters( return value for the webdynpro to pick up)  . In the table parameters i have given structure z_struc  & the  Z_Struc has basically three fields
    a) self b) depndt c) flag.
    so i have written logic as
                       if v_flag_self = 'A'
                        logic for the self of the employee
                       elseif  v_flag_dep = 'B'.
                        logic for the dependent.
                       endif.
    so any one  could please let me know how i should pass on to the webdynpro
    or to recognize that the value for the Self he has to consider is A
    and dependent button he has to take is B. Because based ont he this flag values
    (A & B) only my logic works.
    how i should pass this values to him .
    Regards
    latha.

    Thanks!
    This wasn't there when I first looked at it, or I was looking at another location of the api, I will make sure to look at this one now :D.
    I basically did Action action = Dialog.show().
    then did if (action.equals(Dialog.Actions.OK))
    //code
    }So it works :).
    I like the custom action too, I'm interested in the example Action response = Dialogs.create()
          .title("You do want dialogs right?")
          .masthead("Just Checkin'")
          .message( "I was a bit worried that you might not want them, so I wanted to double check.")
          .showConfirm();I from the api it says that .create() is static Dialogs Type, so I'm curious how that's used as the Action in this case?
    Thanks again :)

  • Error in Shuttles - leading:items has been tampered.

    Hi folks , I am facing the below error in a page, when we select any value from the LOV.
    "You are trying to access a page that is no longer active.
    - The referring page may have come from a previous session. Please select Home to proceed."
    To give a bcakground, we have LOVs and shuttles which are linked to same VO. On getting the diagnostic log, we get
    [41]:UNEXPECTED:[fnd.framework.webui.OAPageContextImpl]:MACCHECK: . Parameter failing validation is : ReportingNameShuttleRN:leading:items. Parameter ReportingNameShuttleRN:leading:items has been tampered.
    Where ReportingNameShuttleRN is the custom Region.
    If we remove the above shuttle from the page, the error is not thrown on selection of LOV, however after adding it we again get this error.
    This shuttle does not have any data with null valies
    BY looking into th error , I can understand that its throwing because of the Shuttle. But not sure of how to fix it.
    Please help as soon as posisble.
    Raghu

    Hi Anand , thanks for the quick reply.
    yes you are right , I am using a custom VO for it.
    One fuzzy thing in this issue is , I am not getting this error in development instance. But its throwing the error in our testing instance.
    Is there any instance specifc change I need to do ?
    Raghu

  • Apologies, this item has been interrupted due to an error...

    Hi there. Recently i have changed motherboards/processors in my desktop PC (but kept the same hard drive). Since then, when i go to view Sky Go on my desktop, i get the following error message: “Apologies, this item has been interrupted due to an error. Please click play to resume watching. [t:6013 / c:4110 ].” I have worked through the steps on the support page and none of these have remedied the problem. I decided to leave it to the new month as I thought maybe it a was a maximum device limit issue, but I have removed what was my old PC and have tried to view a channel on this device, yet the same error message occurred. I have cleared all browser cookies, have reinstalled Silverlight and have set permissions for chrome or adblocker, not to block SkyGo. I have also tried viewing on Internet Explorer and Firefox and have the same issue.  Can anyone else lend any ideas on how to sort this?  Thanks 

    Login to Sky Go and click 'Watch live TV' from the home page. It will attempt to show Sky News and fail with the error [t6013-c1501].
    2. Right click on the error and you should see the Menu option 'Silverlight'. Select this and a dialog should appear. Click the 'Application Storage' tab and delete any entry that relates to sky go. Click OK to close the dialog.
    3. Close the browser (if you don't the next bit will fail as it will be using the file you need to rename).
    4. Open explorer and navigate to the folder C:\ProgramData\Microsoft\PlayReady
    Note: This folder might be hidden on your PC, if so in explorer select Organize->Folder and Search Options->View->Show hidden files and folders and click OK.
    5. Rename the file mspr.hds to mspr.hds.OLD
    Note: Don't rename/delete the folder C:\ProgramData\Microsoft\PlayReady or you will get the error [t6000-c1501]. The folder must exist in order for the new file to be created by Silverlight.
    6. Log back into Sky Go and click 'Watch live TV', this time you should see a message saying something like downloading security components.

  • PO List in which Payment Terms has been changed

    Hi,
    Please let me know how can i find the PO List, in which Payment Terms has been changed.
    Is there any table for it..
    Plz help...

    Hi,
    The change documents are stored in CDHDR (Header table) and CDPOS (Item) tables.
    You can find out the list of PO objects in theses tables.
    Cheers,
    Satish

  • Maximum Number of Items has been reached in FI

    Hi All
    We are working on MySAP ERP 2005.
    We received the following error massage:
    [Maximum number of items has been reached] we then updated table TTPYV using MATNR,MEINS,MENGE,PAOBJNR,POSN2,VBEL2,WERKS,ZEKKN 
    We had these same settings in R/3 4.7 and it worked very well.
    1. What are MySAP ERP 2005 requirements in order to get SD billing items summarized in FI? our client wants one invoice with more than 10000 items
    2. What are other IMG settings required in both FI/SD modules to get this working?
    3. Are there any User Exits required?
    4. Are there any CO settings required?
    5. Are there any G/L account settings required?
    Please assist
    Regards,
    Mutali

    I don't think you can. We had the same problem and had a good look at sap notes and posts from SDN etc. and came to the conclusion that you can only invoice up to 9999 items. Not entirely sure about that number, might be 999 items. In any case we decided to break down the billing list by creating more than one billing documents.
    You can do the same and then create an Invoice list, which is a document that will contain the values of all individual billing documents without posting any values to FI/CO

Maybe you are looking for