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

Variable Screen Execute Button

Hi,

Is there any possibility to associate Keyboard key 'ENTER' or any key to the Exectute button of the Variable Screen?

Is that possible to do with Javascript or something?

Any Ideas?

Thank you

AP

Add a comment
10|10000 characters needed characters exceeded

Related questions

8 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 16, 2005 at 04:18 AM

    Hi AP,

    The variable screen that appears is a standard SAP screen. You can change that provided you have authorization to do so. Moreover changing that would mean it would affect for all the reports not just the one you are working on. So it makes no sense to do so. Tell the users that they use "F8" instead of enter. You can explain this to your users and hopefully they would understand.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 16, 2005 at 02:55 PM

    Hi AP,

    I guess you are talking about the variable screen for web reports...I have been on the lookout to associate a keyboard key to the "Enter" button too. But it seems that this is just a table cell designed with CSS to look alike a button...

    One suggested work around is as follows:

    Use a "normal" dropdown-box for variable-input -> https://www.sdn.sap.com/irj/.../How%20to%20Use%20a%20Dropdown%20Box%20to%20Set%20Variable%20Values.pdf

    Build a JavaScript-Function in the onSelect-Handler of the dropdown-box and call the WebTemplate you want by SAPBWOpenURL (....)

    So by clicking a var-value the user jumps directly to the WebTemplate. If you have more than 1 var, insert the function in the last dropdown-box.

    However this solution is not viable for a standard web template and hence I have not tried it out.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 16, 2005 at 06:13 PM

    Hi AP,

    in principle this would be possible with a lot of modification done in the variable screen.

    But Pressing enter for submitting the screen is first of all not web like also the onKeyPress Event does only work in specfic situations. Just try it yourself create a simple form in any HTML editor with input fields and some icons and so on surround it with a <div> tag and fire an alert when onKeyPress is sent and the windows key is 13 (=ENTER). Depending on where your focus is which browser you use, it will work sometimes and sometimes not.

    Then you should decide whether you want to go through all the modification stuff in the Variable screen

    Heike

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 16, 2005 at 08:38 PM

    Hi,

    Thanks for the class 'CL_RSR_WWW_VARIABLE_SCREEN'.I drillded down also found out that 'CL_RSR_WWW_CTRL_FORM=>CREATE' is used to create the variable screen with the parameters.

    It passes the page name all through the method. But i don't understand how it works.

    Basically i just want to understand how it generates that page layout.The layout should lie some where in the meta data repository.

    Does someone have idea on how to find out the layout page of the variable screen?

    Thank you

    Arun Prasad

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      the variable screen as well as the complete web runtime have been invented back in BW 2.0. Unfortunately BSPs have not been available back then. This is the reason why BSPs are not used in Web Reporting. So there is no layout page. HTML is concatenated highly dynamical together.

      Do not change the CL_RSR_WWW_CTRL_FORM=>CREATE !!! This is a central used method for all kind of dialogs and so on in the web reporting framework.

      Heike

  • author's profile photo Former Member
    Former Member
    Posted on Feb 16, 2005 at 04:31 PM

    Hi Dinesh & Bhanu,

    Thanks a lot for your valuable advice.

    Basically none of the keyboard key is assigned to the execute button in the 'Variable for adhoc report'. Can you explain 'Tell the users that they use "F8" instead of enter. ' Is F8 key associated with the Execute button?I tried F8 key it does nothing.

    Assigning Enter key is a common functionality and every user needs this functionality.So, Please let me know how to change it and what is the report?

    Also, it looks like i need to change the javasript:SAPBWBUTTON('PROCESS_VARIABLE','VAR_SUBMIT',''). So, Please let me know the report and the changing process?

    I have 15 variables in each report, i don't think using dropdown is a prior solution.And if a field has more than 1000 entries it is tough to search from a dropdown.

    Thank you

    AP

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 16, 2005 at 07:02 PM

    Hi Heike Guder,

    Thanks a lot, What i understood is that the 'Execute' and 'Check' are the Hyperlinks in a Table Cell. If it is a submit button then the enter option will work automatically. So do you think is there any possibiliyt to change the Hyperlink to Button and provide the javacript call in OnClick event of the button.

    Please let me know the SAP Program or BSP application used to show up the 'Variable for Adhoc queries screen'.

    Thank you

    AP

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 17, 2005 at 04:36 PM

    Hi Heike Guder,

    That was a good answer.Anyhow, You said the layout is dynamically generated.I accept that depending on the number of variables it show that much number of inputboxes. But this 'Execute' and 'Check' button is common for all the scenario.

    Do you have any idea where HTML, Javascript codes are concatenated in the class?

    Thank you

    AP

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 18, 2005 at 05:27 PM

    Hi Heike Guder,

    Can you tell me where can i find the code in the class for 'Exectute' and 'Check' Hyperlink in the Table cell?

    Thank you

    AP

    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.