Using FUnction keys on selection screen

Hi All,
I want to submit a report if the user presses any assigned function key when he is on the selection screen of a t-code.
how can i capture the commands of function key on selection screen.

hi
try below code
TABLES sscrfields.
INITIALIZATION.
PARAMETERS : p_1 TYPE c.
SELECTION-SCREEN : FUNCTION KEY 1.
SSCRFIELDS-FUNCTXT_01 = 'Report'.
SELECTION-SCREEN : FUNCTION KEY 2.
SSCRFIELDS-FUNCTXT_02 = 'Report2'.
AT SELECTION-SCREEN.
  IF sscrfields-ucomm = 'FC01'.
    SUBMIT ZXXX1 VIA SELECTION-SCREEN AND RETURN.
  ENDIF.
  IF sscrfields-ucomm = 'FC01'.
    SUBMIT ZXXX2 VIA SELECTION-SCREEN AND RETURN.
  ENDIF.

Similar Messages

  • Function Keys on Selection-Screen

    Hi,
    I used function keys in one of my report program.
    Now, if some check box is checked in the customization that function should be displayed, otherwise shouldnot be displayed.
    I made use of "loop at screen" to make that application button invisible but i don't know the name of the button. I have given the name as same given while creating the button using "SSCRFIELDS".
    Is there anyy other way to disable the button??
    Regards,
    Yadesh

    Hi,
    Your requirement can be solved with two approaches:
    1) simpler one is to use different GUI statuses depending on checkbox state
    AT SELECTION-SCREEN OUTPUT.
    refresh it_exclude.
    if checkbox = 'X'.
      append 'BUTTON_FCODE'.
    endif.
    "you in turn swith on/off your desired button
    CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
        EXPORTING
          p_status  = 'GUI_STATUS'
          p_program = sy-repid
        TABLES
          p_exclude = it_exclude.
    2) as SELECTION-SCREEN FUNCTION KEY n statement cannot be processed within PAI/PBO block you cannot set it dynamically like
    AT SELECTION-SCREEN.
    IF check = 'X' .
    SELECTION-SCREEN FUNCTION KEY n.
    ELSE.
    "no selection button here
    ENDIF.
    Moreover you cannot change standard application toolbar of selection screen within Loop at screen statement (this will only affect selection screen parameters not toolbar).
    The only way here is dynamically generate report's code. When checkbox is check what you do is
    data: it_code type table of char72 with header line.
    READ REPORT sy-repid INTO it_code.
    Then looping through the code table you either remove entry having SELECTION-SCREEN FUNCTION KEY n. or add it to the table.
    Finally you switch reports code with
    INSERT REPORT sy-repid FROM it_code.
    And execute new one with
    SUBMIT (sy-repid).
    This will ensure that new SELECTION-SCREEN parameters (or function keys in your case can be switched and report will be executed with new screen look).
    Nevetherless be carefull! You need to ensure that submit will not create and endless loop. ABAP Memory will help you here (exchange flags within program indicating whether program is executed for the first time or another one).
    Hope this will give you some idea how to solve it.
    Regards
    Marcin

  • How can we use list box on selection screen

    hi, howe can we use list box on selection screen and how can we populate the dat ainto the list box and how can we retrive data based on list box from ther database.
    thanks in advance
    raju

    Use the VRM_SET_VALUES function module.
    DATA: list              TYPE vrm_values,
          value             LIKE LINE OF list.
               AT SELECTION SCREEN OUTPUT
    AT SELECTION-SCREEN OUTPUT.
      name = 'P_OBJECT'.
      CLEAR list.
      REFRESH list.
      CLEAR value.
      value-key = '1'.
      value-text = 'Development Class'.
      APPEND value TO list.
      CLEAR value.
      value-key = '2'.
      value-text = 'Program'.
      APPEND value TO list.
      CLEAR value.
      value-key = '3'.
      value-text = 'Function Module'.
      APPEND value TO list.
      CLEAR value.
      value-key = '4'.
      value-text = 'Database Table'.
      APPEND value TO list.
      CLEAR value.
      value-key = '5'.
      value-text = 'Structure'.
      APPEND value TO list.
      CLEAR value.
      value-key = '6'.
      value-text = 'View'.
      APPEND value TO list.
      CLEAR value.
      value-key = '7'.
      value-text = 'Data Element'.
      APPEND value TO list.
      CLEAR value.
      value-key = '8'.
      value-text = 'Table Type'.
      APPEND value TO list.
      CLEAR value.
      value-key = '9'.
      value-text = 'Class / Interface'.
      APPEND value TO list.
      CLEAR value.
      value-key = '10'.
      value-text = 'Type Group'.
      APPEND value TO list.
      CLEAR value.
      value-key = '11'.
      value-text = 'Domain'.
      APPEND value TO list.
      CLEAR value.
      value-key = '12'.
      value-text = 'Search Help'.
      APPEND value TO list.
      CLEAR value.
      value-key = '13'.
      value-text = 'Lock Object'.
      APPEND value TO list.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id              = name
          values          = list
        EXCEPTIONS
          id_illegal_name = 1
          OTHERS          = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.

  • Trying to use function keys (like windows) on apple wireless keyboard for ipad, as well as arrow keys.

    I am connecting to my work PC through my ipad. My main program i use for work is a DAS based (ancient, i know.) Anyways, i have to be able to use function keys, i can touch the screen so if i can not it isn't the end of the world. But it would make things MUCH more easier. Is there a way to program the F1-F12 keys on the wireless keyboard to use like windows, rather than the brightness/volume/play buttons.
    Also, my arrow keys don't seem to work right. If i am using notepad, they don't work, unless i have entered down 6 lines, the arrows will work as far as those 6 lines, but won't go down on there own. If i am on the internet and there is a drop down menu, the arrow keys don't work either. As well as in my work program, they don't work at all, it's as if the arrow keys don't register.
    Help?!

    Just added information. In my work program, i can use the onscreen keyboard (but it takes up half the screen so i can not see what i am doing. From that keyboard, and can toggle back and forth from the regular keyboard, the FN screen for function keys, and the CTRL keyboard. This is why i am confused as to why the function keys and arrows will not work on the wireless, yet they have the keyboard on the screen.

  • Use Function Keys as Standard Function Keys checkbox missing

    Is there a reason the "Use Function Keys as Standard Function Keys" checkbox is missing in my Keyboard/Mouse settings?

    Just go to the Keyboard shortcuts tab and uncheck the items assigned to the function keys or assign them to different keys.

  • Screen stuck on gray, used shift key and my screen appears with MacBook Pro and not the recovery option. Please help

    Screen stuck on gray, used shift key and my screen appears with MacBook Pro and not the recovery option. Please help!

    Hi ..
    Shift key boots into Safe Mode, not Recovery.
    This only works on a Mac running v10.7 Lion or later.
    Startup your Mac while holding down the Command + R keys. From there you should be able to access the built in utilities to repair the startup disk and restore OS X using OS X Recovery
    If you can't boot into Recovery Mode, help here >   Mac OS X: Gray screen appears during startup

  • Using Function Keys and Alt Key in Flash Video

    I am attempting to create an eLearning video, which includes instructions, a "try it yourself" section, and then a quiz.  Our software that I am trying to simulate uses Function keys (F6 to bring up specific windows) as well as shortcut keys (Alt-S takes the user to a certain field, Alt-P conducts a Patient Search, etc).  However, I have found that when running the video using IE, the browser takes over the focus and these function keys do not control the video. 
    These functions work fine in Google Chrome (not approved for use by the company) and when the video is published as .exe, but I need this to work in IE. 
    Is there anyway to retain the focus on the flash video for the entire video?
    Thanks so much for any help!

    Here is the Preference dialog that Lilybiri was referring to where you can change the key assignments.
    When finished recording, you can click the Restore Defaults button to set everything back the way it was.

  • Cant use function keys under actions. CS4, intel 2 x 2,8 quad

    We have just migrated from CS2 to CS4, and to new computers. I now cant use my function keys (F1 etc) with my actions. Any clues anyone?

    On your new computer, open the System Preferences>Keyboard&Mouse. Make sure the box for Use Function keys as normal is checked.

  • How can I display the failure caption with click box when using function keys to navigate a sim?

    I am using the keyboard function keys to navigate a simulation using Click Boxes. For instance, F7 advances the simulation to the next screen, but if the learner selects F5, a failure caption displays. I have tried deleting and re-entering the click box, placing the click box at the top of the timeline levels, starting the click box at 0 and 0.5, making the click box visible and invisible, and make the click box the entire size of the screen.

    Well, I guess that's that. Thanks for replying, I do appreciate it or else I would have been trying for days, wasting all sorts of time.
    Until we meet again,
    James

  • How to call Function Module in Selection Screen

    Hi All,
    I have developed one HR Report (Qualification Overview Report: To display all active employees and their Qualifications along with their Proficiency).
    Already it has 3 selection fields on selection screen and now I want one more field on selection screen like Qualification Id.
    But when the end user press F4 it should display the Popup which comes in TCode: PA30 at the time of Creating Qualification.
    I have debugged the Standard Code and searched the Function Module: 'RH_OBJID_REQUEST' which shows Popup which I wanted to show at Selection screen for newly added field.
    So I have to define new field like 'Qualification Id' and want to attach above Function Module so that it will cater my requirement.
    If anybody has worked on this type of requirement then please let me know.
    Thanks,
    Jay.

    Hi Raymond,
    I have written following code:
    s_quali is used in selection screen for Qualification Id.
    SELECT-OPTIONS :  s_quali   FOR hrp1000-objid NO INTERVALS.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_quali-low.
      CALL FUNCTION 'RH_OBJID_REQUEST'
        EXPORTING
          plvar           = '01'
          otype           = 'Q'
          seark           = '*'
          seark_begda     = '18000101'
          seark_endda     = '99991231'
          set_mode        = 'X'
        TABLES
          sel_objects     = git_objects.
      LOOP AT git_objects INTO wa_objects.         " Logic is to fill up the Selection screen field
        s_quali-low = wa_objects-objid.
        APPEND s_quali TO s_quali.
        CLEAR : s_quali, wa_objects.
      ENDLOOP.
    Now problem is that, its not populating all values in selection screen which I select from Popup screen (Choose Qualification).
    I checked that the first value in the internal Table is over written by second records in the internal table
    For e.g.: If I select 001,002,003,004 from Popup screen then I am able to see only 002,003,004 in the Multiple selection view of that field though it is available in the internal table s_quali (because I am filling up the table using Loop-Endloop)
    Please advise me how to overcome this issue. (How to fill up selection screen)
    Thanks,
    Jay.

  • Execute program using a button on Selection screen

    Hi Experts,
    I had placed a push button on my selection screen and now i want this button to carry all the behaviour of the std F8 function in terms of validations and execution.
    How can i do this?
    Thanks
    Dany

    Adding to the good answer provided above, you need to put your validation logic in the event At USER-COMMAND. There is where you will process the command (function key) raised by clicking on the toolbar. (assuming you did the step described by Reddy).
    Leonardo De Araujo

  • How to use dropdown list in selection screen

    Hi everyone.
    I'm stating a new report and a drop down list is required in initial filtering. I red different articles in google but  istill just don't get it... please help...

    Sample Code:
    TYPE-POOLS: vrm.
    DATA: name TYPE vrm_id, list TYPE vrm_values, value LIKE LINE OF list.
    * List box
    PARAMETERS: ps_parm AS LISTBOX VISIBLE LENGTH 10.
    INITIALIZATION.
    * Populate list box values
      name = 'PS_PARM'.
      value-key = '1'. value-text = 'Line 1'. APPEND value TO list.
      value-key = '2'. value-text = 'Line 2'. APPEND value TO list.
    AT SELECTION-SCREEN OUTPUT.
    * Set list box with value
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id     = name
          values = list.
    START-OF-SELECTION.
      WRITE: / 'Parameter:', ps_parm.
    Regards,
    Angelo.

  • Using NAST info for selection screen design

    Hi
    I am doing customization for RFQ printing ( TCODE ME9A)
    I want to know can I get the same selection screen as of ME9A using NAST info for my z driver program.
    Which function module can be used?
    Kindly provide sample code
    Regards
    Harshada

    Hi Piyush,
    Add the below code in your program.
    *Note: you have to take two parameters for files.
    If you select check box then p_pc parameter is visible.
    if you dont select check box then p_app parameter is visible.
    PARAMETERS: p_chk1 AS CHECKBOX USER-COMMAND rusr.
    SELECTION-SCREEN: BEGIN OF BLOCK blk1 WITH FRAME.
    PARAMETERS: p_pc  LIKE rlgrap-filename MODIF ID abc.
    PARAMETERS: p_app LIKE rlgrap-filename MODIF ID def.
    SELECTION-SCREEN: END OF BLOCK blk1.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF screen-group1 = 'ABC'.
          CLEAR: p_pc, p_app.
          IF p_chk1 = 'X'.
            screen-active = 1.
          ELSE.
            screen-active = 0.
          ENDIF.
          MODIFY SCREEN.
        ENDIF.
        IF screen-group1 = 'DEF'.
          CLEAR: p_pc, p_app.
          IF p_chk1 <> 'X'.
            screen-active = 1.
          ELSE.
            screen-active = 0.
          ENDIF.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_app.
      PERFORM get_fname_app.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_pc.
      CALL FUNCTION 'F4_FILENAME'
        IMPORTING
          file_name = p_pc.
    *&      Form  get_fname_app
          text
    FORM get_fname_app.
      DATA: c_fnh_mask TYPE dxfields-filemask VALUE '.',
      search_dir TYPE dxfields-longpath VALUE '/sapglobal/users',
      file_path LIKE dxfields-longpath.
      CALL FUNCTION 'F4_DXFILENAME_TOPRECURSION'
        EXPORTING
          i_location_flag = 'A'
          i_server        = ' '
          i_path          = search_dir
          filemask        = c_fnh_mask
          fileoperation   = 'R'
        IMPORTING
          o_path          = file_path
        EXCEPTIONS
          rfc_error       = 1
          OTHERS          = 2.
      IF sy-subrc EQ 0.
        p_app = file_path.
      ENDIF.
    ENDFORM.                    "get_fname_app

  • Function Module Changed - Selection Screen still has old values

    Hi All,
    Our data source uses a function module while extraction. (generic)
    We have changed the Text Symbols in our function module.
    In the function module we fill one particular field (master data) as per the logic.
    The changes done are reflected in the dataloads and data is fine in BW.
    our problem is the selection screen in BW and in the reports, it shows the older values as well for that particular field.
    Can anyone help us in this regard?
    thanks
    Sudeepti

    Sudeepti,
    run program
    rsdds_aggregates_maintain for the relevant infoobjects and see if the change is carried over..
    Also check if the text tables for the same refer to the older values...
    Arun
    Assign points if useful

  • Function keys on the screen

    hi folks,
    I have a question, I created a new function key called 'display' for the screen using the menu painter used that in the program and executed the program successfully in DEV environment. when I moved the changes (moved all) to QAS the function key 'display' did not show up. I checked to see that the function key item got moved using the menu painter in QAS. The item is there in QAS amd checked for the changes in the program using version management. no changes How come the function key is missing on the screen in QAS?
    Am I missing anything here?
    Thanks,
    SK

    If you activate your program after you've made your screen changes, sometimes you lose those screen changes.  You may need to go back in to the screen and reactivate, then transport it.  If necessary, make a small change (like adding a blank line somewhere in the flow logic of the screen) in order to get the screen changes into a transport.  I hope this helps.
    - April King

Maybe you are looking for

  • Help!! iTunes won't open on my computer

    I have downloaded the newest version of iTunes from the iTunes website and it has been installed but niether Quicjtime or iTunes will open. Each time i try an windows message apears saying there has been a problem with the program and it has had to c

  • Port disabled in Import Manager

    Hi, I created remote system, port (with map and XML Schema) in Console and tried to import XML file manually in Import Manager using port option. The port I created in console is appearing in the drop down but in grey color and in disabled mode. I co

  • Audio linking

    Hello! i have a small problem, i've been searching for a way to link my audio on  my server computer... I have my TV connected to my server on line-in and my server connected to 5.1 speakers (using it for MPD and other stuff aswell). Now i would like

  • Allow a simple obdc connection without Reader Extensions

    I have this requirement, and so it seems to others on the LS forums. I have no server and need to distribute information to Adobe Reader users of a form. The information benefits from some manipulation (sorting), and may be updated frequently. One ea

  • Table where the VAT value is stored

    Hello!                       Could any one tell me where the VAT value is stored for the particular matnr. I am searching the table KONH- KSCHL where the value is stored at JVAT. but there was 40% of the matnr only having JVAT value.I am taking the p