How to disable execute button in selection-screen

Hi,
I have already placed a execute button in selection screen but now I want to diable
     1. All std  buttons including F8
     2.   but excluding F1
regards
paul

Hi
Check this FM : RS_SET_SELSCREEN_STATUS
sample code :
DATA: BEGIN OF i_exc OCCURS 0,
       code LIKE sy-ucomm,
   END OF i_exc.
  DATA: ws_repid like sy-repid.
  CLEAR i_exc.
  i_exc-code = 'ONLI'.
  APPEND i_exc.
  MOVE: sy-repid TO ws_repid .
  CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
    EXPORTING
      p_status  = ' '
      p_program = ws_repid
    TABLES
      p_exclude = i_exc.
Laxman
Message was edited by: Laxmana Kumar

Similar Messages

  • How to disable save button on selection screen (1000) run from other report

    Hi Experts,
    Can any one let me know how to disable save button on selection screen (1000) run from other report.
    Say I am running from report R1 which submits report R2, but the save button should be disabled on
    report R2(selection screen 100).
    Thanks in advance.
    Regards
    RP.

    Hi RPReddy16 ,
    Try this:
    DATA :BEGIN OF t_extab occurs 0,
                     fcode like rsmpe-func,
                 END OF t_extab.
    REFRESH T_EXTAB.
    MOVE 'SAVE' TO T_EXTAB-FCODE.
    APPEND T_EXTAB.
    CLEAR T_EXTAB.
    SET PF-STATUS 'STATUS' EXCLUDING T_EXTAB.
    Regards,
    José

  • Disable execute button on selection screen

    Hi Experts,
    I need to disable execute button on the selection screento restrict program to run in foreground and add another buttn which schedules a job in background. Kindly help.
    Thanks in advance.

    TABLES: sscrfields.
    include rsdbc1xx.
    INITIALIZATION .
    sscrfields-functxt_01 = 'Button1'.
    SELECTION-SCREEN: FUNCTION KEY 1.
    AT SELECTION-SCREEN OUTPUT.
      append 'ONLI' to current_scr-excl.
    AT SELECTION-SCREEN.
      CASE sy-ucomm.
      WHEN 'FC01'.
    "* Here you write your logic for background job
      ENDCASE.
    I have the same problem. This works like a charm!
    Thanks Dzed Maroz.
    Edited by: Samanta Limbrada on Mar 30, 2011 6:29 AM

  • How ti disable enter button in selection screen.

    Hi,
    Developed a  report and when execute the Tx code first i get selection screen and when inputs are given in selection screen and hit enter it will direct to module pool screen.. here after giving inputs in selection screen,ENTER and F8 button are working but i want to disable ENTER button ....
    Regards,
    Venkat.

    Hi venkat,
    I am also fasing same problem plz help me how to call form in start-of-selection please help me with any sample as soon as possible,
    Regards
    sridevi.V

  • How to Add Push Button On Selection Screen

    Hi Experts,
    How to add Push button on Selection Screen.
    Points will b rewarded for useful help.
    Bohra.

    Hi,
    To create a pushbutton on the selection screen, you use:
    SELECTION SCREEN PUSHBUTTON [/]<pos(len)> <push>
    USER-COMMAND <ucom> [MODIF ID <key>].
    The [/]<pos(len)> parameters and the MODIF IF addition have the same function as for the formatting options for underlines and comments.
    <push> determines the pushbutton text. For <push>, you can specify a text symbol or a field name with a maximum length of eight characters. This character field must not be declared with the DATA statement, but is generated automatically with length <len>. The field must be filled before the selection screen is called.
    For <ucom>, you must specify a code of up to four characters. When the user clicks the pushbutton on the selection screen, <ucom> is entered in the UCOMM of the SSCRFIELDS interface work area. You must use the TABLES statement to declare the SSCRFIELDS structure. The contents of the SSCRFIELDS-UCOMM field can be processed during the AT SELECTION-SCREENevent.
    Ex.
    REPORT DEMO.
    TABLES SSCRFIELDS.
    DATA FLAG.
    SELECTION-SCREEN:
    BEGIN OF SCREEN 500 AS WINDOW TITLE TIT,
    BEGIN OF LINE,
    PUSHBUTTON 2(10) BUT1 USER-COMMAND CLI1,
    PUSHBUTTON 12(10) TEXT-020 USER-COMMAND CLI2,
    END OF LINE,
    BEGIN OF LINE,
    PUSHBUTTON 2(10) BUT3 USER-COMMAND CLI3,
    PUSHBUTTON 12(10) TEXT-040 USER-COMMAND CLI4,
    END OF LINE,
    END OF SCREEN 500.
    AT SELECTION-SCREEN.
    CASE SSCRFIELDS.
    WHEN 'CLI1'.
    FLAG = '1'.
    WHEN 'CLI2'.
    FLAG = '2'.
    WHEN 'CLI3'.
    FLAG = '3'.
    WHEN 'CLI4'.
    FLAG = '4'.
    ENDCASE.
    START-OF-SELECTION.
    TIT = 'Four Buttons'.
    BUT1 = 'Button 1'.
    BUT3 = 'Button 3'.
    CALL SELECTION-SCREEN 500 STARTING AT 10 10.
    CASE FLAG.
    WHEN '1'.
    WRITE / 'Button 1 was clicked'.
    WHEN '2'.
    WRITE / 'Button 2 was clicked'.
    WHEN '3'.
    WRITE / 'Button 3 was clicked'.
    WHEN '4'.
    WRITE / 'Button 4 was clicked'.
    WHEN OTHERS.
    WRITE / 'No Button was clicked'.
    ENDCASE.
    This example defines four pushbuttons on a selection screen that is displayed as a
    dialog box. The selection screen is defined in a statement chain for keyword
    SELECTION-SCREEN.
    If the text symbols TEXT-020 and TEXT-040 are defined as 'Button 2' and 'Button 4',
    the four pushbuttons appear as follows on the selection screen displayed as a dialog box.
    Regards,
    Bhaskar

  • Code for execute button on selection screen to get result

    hi experts,
    I need a help for writing a code for execution button on selection screen.Like in normal report on abap editor
    we insert selection criteria like number and we get the result according that particular number on next screen.
    same thing i am trying here also. So i am writing a code on button that when i press the button it will go to the next
    screen according to the selection criteria.
    Plz help me helpful answers are appriatiated !!!
    Thanks & regards
    Vipul Gupta

    hi,
    In the OnAction write :
    1. get the values entered in selection criteria using :
    DATA lo_nd_cn_check TYPE REF TO if_wd_context_node.
        DATA lo_el_cn_check TYPE REF TO if_wd_context_element.
        DATA ls_cn_check TYPE wd_this->element_cn_check.
        DATA lv_ca_check LIKE ls_cn_check-ca_check.
      navigate from <CONTEXT> to <CN_CHECK> via lead selection
        lo_nd_cn_check = wd_context->get_child_node( name = wd_this->wdctx_cn_check ).
      get element via lead selection
        lo_el_cn_check = lo_nd_cn_check->get_element(  ).
      get single attribute
        lo_el_cn_check->get_attribute(
          EXPORTING
            name =  `CA_CHECK`
          IMPORTING
            value = lv_ca_check ).
    Now lv_ca_check has your value entered in Selection criteria.
    2.  write the select query to fetch data according to selection criteria.
        select *  from <table> into correponding field of table <internl table>
           where Field = lv_ca_check.
    3. Now in the internal table <internl table> you have values according to search criteria.
    4. Bind the internal table with node  which is binded to table to show data.
    lo_nd->bind_table( internaltable ).
    I hope it is clear .

  • How to disable print button in outoput screen from vf03

    hi,
    i have a requirement to display error message and, disable the print and print preview button.
    below its the step,
    1)vf03
    2)key in document type
    3)select output type
    4)if there's error, display error message and disable print and print preview button.
    what i have done was
    1) i've put the error message in my 1st part of code,
    *determine discount
    it_zmas-discount = it_zmas-gross_value - zkwert.
    MODIFY it_zmas.
    ELSE.
    MESSAGE ID 'Z0' TYPE 'S' NUMBER '999' WITH 'Please maintain cust pricing grp 34 for ' wa_zmas-matnr.
    p_proc_screen = 'X'.
    ENDIF.
    CLEAR zknumh.
    2)then i set itcpo-tdpreview = ' ' to display my print button after display the error message
    CLEAR itcpo.
    MOVE-CORRESPONDING nast TO itcpo.
    itcpo-tdcover   = nast-tdocover.
    itcpo-tddest    = nast-ldest.
    itcpo-tddataset = nast-dsnam.
    itcpo-tdsuffix1 = nast-dsuf1.
    itcpo-tdsuffix2 = nast-dsuf2.
    itcpo-tdimmed   = nast-dimme.
    itcpo-tddelete  = nast-delet.
    itcpo-tdcopies  = nast-anzal.
    itcpo-tdprogram = sy-repid.
    IF us_screen NE space
    AND p_var EQ space.
    itcpo-tdpreview = 'X'.
    itcpo-tdnoprint = 'X'.
    ELSE.
    itcpo-tdpreview = ' '.
    ENDIF.
    CASE nast-nacha.
    WHEN '1'.
    xdevice = 'PRINTER'.
    itcpo-tdnewid = 'X'.
    itcpo-tdgetotf = 'X'.
    WHEN '2'.
    xdevice = 'TELEFAX'.
    itcpo-tdtelenum = nast-telfx.
    itcpo-tdteleland = us_country.
    itcpo-tdsenddate = nast-vsdat.
    itcpo-tdsendtime = nast-vsura.
    WHEN '3'.
    xdevice = 'TELETEX'.
    itcpo-tdtelenum = nast-teltx.
    itcpo-tdteleland = us_country.
    itcpo-tdsenddate = nast-vsdat.
    itcpo-tdsendtime = nast-vsura.
    3) my last problem its, i am not sure how to disable the print button.i need  to show an error message for my invoice via vf03 when error occur when user click print or print preview button. however with my code above, i am only able to display the error message and disable the print preview.
    could anyone guide me how do i disable my print button? really appreciate your help.
    regards,
    sw

    Instead of disabling the print buttons, you can restrict creating the actual output message for a specific output type.
    You can achieve it by creating the Output Requirement in transaction VOFM. You need to assign this requirement to your Output type. In this Requirement you can check all your conditions. If they all validation pass through than and than create the Output.
    Regards,
    Naimesh Patel

  • How to hide  gui buttons in selection screen

    In Selection screen how to hide buttons like back, exit,cancel buttons.
    can any  one help.

    Hi,
    Create a new GUI Status for your program.. put whatever button you require for it..
    In the AT SELECTION-SCREEN OUTPUT event..
    SET pf-status xxx.
    Regards,
    Anand

  • How to disable a field in selection screen based on condition.

    Hi,
    I have 2 radio buttons- p_normd, p_recov  and 2 other controls - like text boxes, say tb1 and tb2. and some mandatory fields below.
    If i choose p_normd, i want one control(tb2) to be disabled and if i choose p_recov, i want the other control(tb1) to be disabled(tb2 should be enabled then.)
    Currently i am using the following code. The 1'st radiobutton is intially checked. But the problem is when i click on the 2'nd radio button, the other control(tb1) is not getting disabled. When i double click, i get an error telling mandatory field to be filled. Only after the other mandatory fields below are filled, and after i double click on the unchecked radiobutton, the other control gets disabled.
    Please suggest what to do..
    The current code below:
      AT SELECTION-SCREEN OUTPUT. "ON RADIOBUTTON GROUP rg01.
      LOOP AT SCREEN.
      IF  p_normd EQ c_x  AND screen-group1 = 'SC2'.
            MOVE 0 TO screen-input.
          MODIFY SCREEN.
      ENDIF.
      IF p_recov EQ c_x AND screen-group1 = 'SC1'. "IF screen-name = 'ERDAT-LOW' OR screen-name = 'ERDAT-HIGH'.
            MOVE 0 TO screen-input.
            MODIFY SCREEN.
      ENDIF.
      ENDLOOP.
    Thanks,
    Ammu

    Hi
    declare your parameter as below:
    parameters: p_x type c radio button group g1 user-command r.
    in at selection screen output event .
    check for the radio button.
    loop at screen.
    if screen group is <desired value>
    then screen-active = 0 or 1. <do whatever you want to do.>
    modify screen.
    endloop.
    see below the sample code.
    <<<<<AT SELECTION SCREEN EVENT>>>>>
    AT SELECTION-SCREEN ON BLOCK B1.
      IF P_LCOST = C_X.
        PERFORM CLEAR_FIELDS.    " Clearing fields before loading the screen
        CALL SELECTION-SCREEN 100 STARTING AT 20 5.
      ELSEIF  P_MCOST = C_X.
        PERFORM CLEAR_FIELDS1.          " Clearing fields before loading the screen
        CALL SELECTION-SCREEN 101 STARTING AT 20 5.
      ENDIF.
      IF SY-SUBRC = 0.
        PERFORM VALIDATION.             " Validating selection screen input
      ELSE.
        LEAVE TO TRANSACTION C_TRAN.
      ENDIF.
    <<<<<<DECLARATION PART>>>>>>
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    PARAMETERS: P_LCOST RADIOBUTTON GROUP GI DEFAULT 'X',
                P_MCOST RADIOBUTTON GROUP GI.
    SELECTION-SCREEN END OF BLOCK B1.
    SELECTION-SCREEN BEGIN OF SCREEN 100 AS WINDOW TITLE TEXT-002.
    SELECTION-SCREEN BEGIN OF BLOCK B2.
    PARAMETERS: P_COAREA TYPE CSKS-KOKRS OBLIGATORY,         " controlling area
                P_FYR    TYPE COEP-GJAHR OBLIGATORY,         " fiscal year
                P_PERIOD TYPE COEP-PERIO OBLIGATORY.         " fiscal period
    SELECT-OPTIONS: S_CCNTR FOR V_KOSTL OBLIGATORY,       " Cost Center
                    S_COELM FOR V_KSTAR MODIF ID M1,       " Cost element
                    S_PDATE FOR V_BUDAT OBLIGATORY.       " posting date.
    SELECTION-SCREEN END OF BLOCK B2.
    SELECTION-SCREEN END OF SCREEN 100.
    SELECTION-SCREEN BEGIN OF SCREEN 101 AS WINDOW TITLE TEXT-003.
    SELECTION-SCREEN BEGIN OF BLOCK B3.
    PARAMETERS:     P_CCODE  TYPE T001-BUKRS OBLIGATORY,         " Company Code
                    P_FYEAR  TYPE COEP-GJAHR OBLIGATORY.         " fiscal year
    SELECT-OPTIONS:   S_GLACC FOR V_HKONT OBLIGATORY,       " G/L Account
                      S_PCNTR FOR V_PRCTR MODIF ID M2,      " Profit Center
                      S_PODATE FOR V_BUDAT OBLIGATORY.      " posting date.
    SELECTION-SCREEN END OF BLOCK B3.
    SELECTION-SCREEN END OF SCREEN 101.
    thanks
    LG
    Edited by: LalitG on Apr 13, 2011 1:38 PM

  • How to disable execute button in ABAP report

    Hi,
    Is it possible to disbale the execute button of ABAP report? If yes, how?
    Thanks & Regards,
    Lohit

    You can do this
    You can set the Authorization for execution and Assign it to user whom you dont want that option. so that they cannot execute the Program.

  • How to disable a button

    Hy Experts,
    I am a Basis guy and I want to know how to disable a button from any screen.
    Basically I have to Disable a button "Save as Completed" from the screen of t.code MIR7.
    Is there any way to hide it. If it is then please let me know, I will be thankful to you.

    Dear Aplesh,
    Check this:
    It will give you the description along with screen-shots.
    http://husnie.wordpress.com/
    Regards,
    Rakesh

  • How to clear parameters defined in selection screen on back button

    Hi,
    I have a report with parameters, few being input fields, and check boxes. After report is executed when user selects the back button, the selection screen is displayed again but with the old selection values. I want to clear them.
    So in the Initialization even I added the code to clear all these parameters;
    CLEAR: p_aaa, p_bbb, p_ccc.
    I debugged and control passes through this code but still the fields are not cleared and they retain the old input values.
    How to clear them ?
    thnks

    >
    Rob Burbank wrote:
    > Yes he did. My mistake.
    >
    > But isn't this what he wants? To clear the Selection screen so that something has to be entered?
    >
    > Rob
    IMO, he only wants to clear the selection screen parameters on the click of 'BACK' button
    in the list screen. If the OP clears the selection screen variables in AT SELECTION-SCREEN OUTPUT
    even, the values assinged to the selection parameters in the INITIALIZATION and with the DEFAULT addition of the PARAMETERS and SELECTION-OPTIONS statements will also be overwritten even when the report is executed for the
    first time.
    -Rajesh.

  • How to handle this scenario in selection screen?

    hi friends...i have 2 radio-buttons (2 parameter fields below each) in one group..the need when one radio button is checked, i need two parameter fields below it to be input enabled and the other to be disabled, if another radio button is checked, then the former two will be disabled and the other two parameter fields to be input enabled..no problems with this..i have written this functionality in at selection-screen output..i want to make each 1 parameter in the two groups to be mandatory..as using obligatory gives problems during at selection-screen output event, i want to achieve this functionality in some other event...i have tried the same in At selection screen on para_1 and at selection screen on para_2 fields, but am not able to achieve the desired functionality..by default the first radio button is checked, if the user wants to click the second radio button, At selection screen on para_1 event gets triggered and it throws the error msg. for the first one & vice versa...can't handle this in start-of-selection event also, as it gives the error msg. in a blank new screen..how to achieve it??
    i have checked quite a few SDN threads, but doesn't answer my question
    regards,
    Sathish R

    Hi,
    I think you cannot proceed with obligatory statement as it will be triggered before theselection screen events.
    You may check the code below.
    PARAMETERS: r1  RADIOBUTTON GROUP rad1 USER-COMMAND abc.
    PARAMETERS p1(5).    ( maintained as obligatory)
    PARAMETERS p2(5).
    PARAMETERS  r2  RADIOBUTTON GROUP rad1.
    PARAMETERS p3(5).       ( maintained as obligatory)
    PARAMETERS p4(5).
    INITIALIZATION.
      r1 = 'X'.
    AT SELECTION-SCREEN OUTPUT.
      IF r1 = 'X'.
        LOOP AT SCREEN.
          IF screen-name = 'P4'.
            screen-active = 0.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ELSEIF r2 = 'X'.
        LOOP AT SCREEN.
          IF screen-name = 'P2'.
            screen-active = 0.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ENDIF.
    AT SELECTION-SCREEN .
      IF p1 IS INITIAL AND sy-ucomm NE 'ABC'.
        MESSAGE 'Enter the obligatory value' TYPE 'S' DISPLAY LIKE 'E'.
      ENDIF.
      IF p3 IS INITIAL AND sy-ucomm NE 'ABC'.
        MESSAGE 'Enter the  obligatory value' TYPE 'S' DISPLAY LIKE 'E'.
      ENDIF.
    Hope this will help you.
    Regards,
    Smart Varghese

  • Execute icon on selection screen

    Dear Experts,
    I am new to module pool programming and i have my selection screen as seen below, but from this screen i cannot execute as that icon is missing.
    How can i get it?
    SELECTION-SCREEN BEGIN OF SCREEN 1100 AS SUBSCREEN NO INTERVALS.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-010.
    PARAMETERS: file TYPE rlgrap-filename.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN END OF SCREEN 1100.
    SELECTION-SCREEN BEGIN OF SCREEN 1200 AS SUBSCREEN NO INTERVALS.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-020.
    PARAMETERS: p_po TYPE ekko-ebeln.
    SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN END OF SCREEN 1200.
    CONTROLS mytabstrip TYPE TABSTRIP.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR file .
    START-OF-SELECTION.
       mytabstrip-activetab = 'BUTTON1'.
       CALL SCREEN 100.
    (this screen displays and i can input the values. But after that no execute button.)

    Hi Anushka,
    If i got it right you require to create custom selection screen look alike in your module pool.
    So for this you need to call your selection screen inside your module pool.
    BR
    Sumeet

  • Button on selection screen to link with PDF

    Hello,
    I have a customer request to provide documentation for each transaction on its selection screen. So they want to have a button on selection screen which should download PDF file stored on SAP application server. Is this possible (they said it is) and where can I found some instructions how to implement this.
    Thanks for your answers.
    Tomi

    Ok guys ... thanks but I found solution just in case someone else needs it:
    It works ... just upload PDF document with SMW0 and this program can display it:
    data: docu_key TYPE WWWDATATAB VALUE 'ZPP_DOCU_ZPPGM',
          DOC_BEZ(10) TYPE C VALUE '123test'.
      DATA:
            l_tmp_path            TYPE rlgrap-filename,
            l_filename            TYPE rlgrap-filename,
            l_extension           TYPE rlgrap-filename,
            l_file                TYPE string.
    l_filename = doc_bez.
      CONCATENATE 'MI' docu_key INTO docu_key.
      CALL FUNCTION 'WWWPARAMS_READ'
        EXPORTING
          relid                  = docu_key-relid
          objid                  = docu_key-objid
          name                   = 'fileextension'
        IMPORTING
          value                  = l_extension
        EXCEPTIONS
         ENTRY_NOT_EXISTS       = 1
          OTHERS                 = 2
      IF sy-subrc NE 0.
        "MESSAGE s521 RAISING no_docu_disp.
        EXIT.
      ENDIF.
      CALL FUNCTION 'GUI_GET_DESKTOP_INFO'
        EXPORTING
          type   = 4
        CHANGING
          return = l_tmp_path.
      concatenate l_tmp_path '\' l_filename l_extension into l_tmp_path.
      call function 'DOWNLOAD_WEB_OBJECT'
           exporting
                key         = docu_key
                destination = l_tmp_path
           changing
                temp        = l_filename.
      l_file = l_tmp_path.
      CALL METHOD cl_gui_frontend_services=>execute
        EXPORTING
          document               = l_file
          synchronous            = ' '
          operation              = ' '
        EXCEPTIONS
          cntl_error             = 1
          error_no_gui           = 2
          bad_parameter          = 3
          file_not_found         = 4
          path_not_found         = 5
          file_extension_unknown = 6
          error_execute_failed   = 7
          synchronous_failed     = 8
          not_supported_by_gui   = 9
          OTHERS                 = 10.

Maybe you are looking for

  • How to get a list of Layout Sets

    Hi Experts, How do I get a list of Layout sets in Portal ? I am using a KM Navigation IView to show a list of External Links. I have used a copy of Links IView for this. The Layout set used here is "LinkListExplorer". The problem with this layout set

  • Exchange 2007 to 2013 Migration issues. Prompt for credentials, Public Folders inaccessible, Apps not working

    Exchange 2013 Migration issues I have three issues and decided to list them here. Please pick and choose to assist. Thanks in advance. Environment: Mixed 2007 SP3 R12 and 2013 CU3. 2007 Environment was webmail.domain.com. I installed new Exchange 201

  • Basic question about Flash video. Please Help

    Hello, Sorry for the noob question but I'm struggling with the basic understanding about the Flash video. I just need to reduce a large video file to a small size with a nice quality and the Flash Video Encoder does very god job with that. But when I

  • MDM 7.1 on HP-UX Archiving on a daily basis

    Hi all, We are migrating a MDM landscape from Windows to HP-UX. We used to run CLIX .bat files scheduled on the Windows Server to perform daily archive of our repositories. As CLIX is only available for Windows Plataform (you can check the MDMCX7100*

  • Set Maximum number of LOG IN failures

    I have password protected pages and would like to find a way to limit the number of failed login attempts by a user. Is there code to use. I am using DW 8 in ASP and the 'LOG IN USER' server behavior. I am recording the 'REMOTE_ADDR' server variable