How to dynamically deactivate and activate parameters on selection screen?

Hi,
I need to deactivate/activate a parameter in my selection screen whenever i clicked on a particular radiobutton. I could deactivate the parameter when the screen is first loaded using the following code,
<i>AT SELECTION SCREEN OUTPUT.
LOOP AT SCREEN.
  IF SCREEN-NAME = 'P_DATE'.
     SCREEN-INPUT = '0'.
     MODIFY SCREEN.
  ENDIF.
ENDLOOP.</i>
But I have problems capturing the event when the user click on the radiobutton, so i could activate the parameter. I did not create any screen.
Is there a way to solve this problem w/o creating a screen. If none, how do I go about it after I have created a screen for selection.
Thanks for any suggestions.

Hi CK,
The following code might help,
*-- Status of Screen Field (Ready/Not Ready for Input)
    fld_status   LIKE screen-input,
PARAMETERS: rbut01  TYPE char01
                    RADIOBUTTON GROUP g1
                    USER-COMMAND ucomm1     "event for radio button click
                    DEFAULT 'X'.
            rbut02  TYPE char01
                    RADIOBUTTON GROUP btyp.
Event Handler for Change of Budget Type *
AT SELECTION-SCREEN.
*-- In case user command is a budget type change (Radio Button Change)
  IF sscrfields-ucomm =  'UCOMM1'.
    IF rbut01 = 'X'.
      fld_status = '0'.
    ELSEIF rbut2 = 'X'.
      fld_status = '1'.
    ENDIF.
  ENDIF.
At Selection Screen Output *
AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    CASE screen-name(4).
      WHEN 'FLD01' OR 'FLD02'.
*---    Changing Status of Fld01 and Fld02 Fields on Change of Radio Button
        screen-input = fld_status.
        MODIFY SCREEN.
    ENDCASE.
  ENDLOOP.

Similar Messages

  • How to define f4 help for parameters in selection screen.

    Hi Folks,
    I have declared parametrs of type RLGRAP-FILENAME  and i want to select the path for the application server file by pressing f4 during run time , not like typing the path in the field input. Pls help me how to do that.
    Thanks in advance.
    Regards
    Rajesh

    Hai Rajesh
    DATA: I_FILETABLE TYPE FILETABLE,
          V_RC TYPE I.
    PARAMETERS: P_FILE LIKE RLGRAP-FILENAME.     "local file with contracts
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG
       EXPORTING
         WINDOW_TITLE            = 'Find File'
         DEFAULT_EXTENSION       = 'C:\'
         DEFAULT_FILENAME        = ''
         FILE_FILTER             = ',..'
       INITIAL_DIRECTORY       =
       MULTISELECTION          =
       WITH_ENCODING           =
      CHANGING
        FILE_TABLE               = I_FILETABLE
        RC                       = V_RC
       USER_ACTION             =
       FILE_ENCODING           =
      EXCEPTIONS
        FILE_OPEN_DIALOG_FAILED = 1
        CNTL_ERROR              = 2
        ERROR_NO_GUI            = 3
        NOT_SUPPORTED_BY_GUI    = 4
        others                  = 5
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    READ TABLE I_FILETABLE INTO P_FILE INDEX 1.
    Thanks & regards
    Sreenivasulu P

  • How to deactivate and activate cc + older photoshop?

    I'm about to buy a new laptop. Will copy my hard drive to external drive. Then wipe drive on old laptop, install newest apple system and give to my wife. I've never had to do this before so any advice, help with all this is appreciated.
    Please correct me if I'm wrong here. I'm thinking to deactivate CC. I have the photoshop/lightroom package. But there doesn't seem to be a deactivate in Photoshop. Is signing out of CC and signing back in enough?
    I've also got versions CS5 and CS6 on this old laptop. I can deactivate these. I guess I can just activate them if i want when I clone my external drive to the hard drive in the new computer, right? I'll probably just activate CS6. Not install CS5.
    These aren't about cc or photoshop, but I've also got CS3 versions of Illustrator and Indesign. I'd also like to deactivate and activate them for the new computer.
    Am I thinking right about all this? Just want all this available on my new 'puter. Don't want to screw up access, so I'm asking before I even buy the new computer and start my cloning. Hope to buy the computer next week...
    thanks for any help...
    oh, I'm not sure it matters, but I'm gonna buy apple's 15 inch macbook pro, i7, 500gb ssd, 16gb of ram...should be a nice upgrade to my April 2008 macbook pro with 6gb or ram...

    Please correct me if I'm wrong here. I'm thinking to deactivate CC. I have the photoshop/lightroom package. But there doesn't seem to be a deactivate in Photoshop. Is signing out of CC and signing back in enough?
    Yes, it is.
    I've also got versions CS5 and CS6 on this old laptop. I can deactivate these. I guess I can just activate them if i want when I clone my external drive to the hard drive in the new computer, right? I'll probably just activate CS6. Not install CS5.
    No. Stay away from any cloning/ image backups/ migration assistant. All Adobe apps require a proper reinstall or else you are in all kinds of trouble.
    Mylenium

  • How do I install and activate all my downloads for Adobe lightroom and cs6 design web premium

    how do I install and activate all my downloads for Adobe lightroom and cs6 design web premium?

    I do not provide step by step tutorials.  What aspect of installing are you having difficulty with?  Can you not locate the installations files?  Are you having an issue downloading?  Do you need to know where to find your serial number(s)?

  • How can I install and activate adobe software under creative cloud purchased from other country?

    How can I install and activate adobe software under creative cloud purchased from other country?

    Hi John,
    I appreciate your prompt response.
    We have an Australian client here in the Philippines and would want to purchase an adobe software under Creative Cloud Licensing.
    Since this type of licensing is not yet available here in the Philippines, they are suggesting that they can purchase it in their country.
    My main concern is, will there be any conflict upon installing/activating an adobe software under Creative Cloud which will be purchased from their country?
    And what are the steps for installing and activating a software under this type of license.

  • Why exactly u need to deactivate and activate in lo extraction?

    why exactly u need to deactivate and activate in lo extraction?

    <FONT FACE = "Tahoma", Font Color = "Blue">
    Hi<br>
    You won't really be deactivating any extract structure or datasource because it will stop data transfer. However if you change the structure and do not activate it then it will be in modified version (or deactivate state) for system.
    <br><br>
    Hope it helps.<br>
    Cheers Abhijit</FONT><FONT FACE = "Verdana", Font Color = "Red">
    Please assign Reward Points if I deserve them in your opinion
    </FONT>

  • How to view movies and iplayer programmes on full screen on the new iPad, can only get letterbox display.

    How to view movies and iplayer programmes on full screen on the new iPad, can only get letterbox display.

    If the Movie is IN wide screen you Got 2 options
    1 letterbox display
    2 display where it Cut the left and right side part to make it fit

  • TS3274 How do I lock and unlock the vertical/horizontal screen positions?

    How do I lock and unlock the vertical/horizontal screen positions?

    Use the Side Switch or Rotation Lock in Control Center.

  • How to display the sort value in the selection screen in the report title

    Dear All,
    How to display the sort value in the selection screen in the report title? I have selected a value in the selection screen for sorting , but i need that values by which i have sorted with in the report title. Can you please throw some light on this!!
    Good day,
    Thanks and regards
    Arun S

    Hi Arun,
    Try this.
    1, Set one dynamic parameter,
    2, Drag and drop that parameter into  your report title.
    3, Pass the value(sort value) dynamically from your application,
    4, Cheers..
    Other wise Try with Dataset, create a dataset and fill thev alue into that.. Then  set the data source from CR designer. and darg and drop that data column into the report.
    Hope this will work,
    Regards,
    Salah
    Edited by: salahudheen muhammed on Mar 25, 2009 11:13 AM

  • How can i set dynamice for week on Selection screen..pls help me..Urgent

    Hi..All
    please Help me .. i am very  confused..
    i need to set a varient for week which is dynamic on selection screen.
    b) Week from current week to current week + 2. (<b>Dynamic selection)</b>how can i set dynamice for week on Selection screen,,
    how can i do this..i am alrady set dynamice variant for Date.. there is option for D.. but in case of week there is a no option.
    pls help me..urgent
    thamks in advance.
    mayukh

    Hi,
    I think the way out is use the dynamic select option while setting up the varinat and use sy-datum to sy-datum+9 which should essentially serve the purpose.
    While saving the variant, for that particular date field check the Selection variable checkbox, then Choose D
    option and then choose current days + or - option from there.
    Rgds,
    HR

  • How to create tcode for modulepool program with selection screen?

    hi,
       How to create tcode for modulepool program with selection screen?
    thanks,
    sagar

    Hi,
    We need to goto SE80.
    In our program we right click on object name and goto create
    -> transaction. Enter the module pool program and screen number and save and activate.
    Or by SE93 also we can create a transaction code for our program.
    Hope ths helps.
    plz reward if useful.
    thanks,
    dhanashri..
    Edited by: Dhanashri Pawar on Jul 22, 2008 8:29 AM

  • How to schedule the background job using current selection screen field val

    Hello Friends,
    How to schedule the background job using current selection screen field values.
    after completion of the job the spool should be sent as a mail to SAP Inbox.
    Is there any way to create the variant dynamically by reading the current selection screen values.
    Thanks,
    Ravi

    Hi,
    To get the variant details you can use teh following FM.
    'RS_VARIANT_CONTENTS'.
    Regards,
    Ankur Parab

  • How to populate f4 values to standard pnp selection screen fields

    Hi Experts,
    my question is how to populate f4 values to standard pnp selection screen field. i am using LDB PNP for a report , it displays several fields with f4 values, i need to remove all the stadard f4 values and want to place my  f4 values in the selection screen

    Hi Venkat,
    To put ur own values in the F4 help of any field...all u have to do is.
    1st fetch all the records that u need to display in F4 help list...in one internal table.
    and then use the function module  'F4IF_INT_TABLE_VALUE_REQUEST'
    call function 'F4IF_INT_TABLE_VALUE_REQUEST'
    exporting
    retfield =
    value_org =
    tables
    value_tab =
    return_tab =
    exceptions
    parameter_error = 1
    no_values_found = 2
    others = 3.
    where retfield is the field for which u need to give the F4 help.
    and valu_tab is the internal table in which u have the list of records to be displayed.
    this would do the work...
    I dont have the system in front of me...as soon as i have...will try to send a piece of code, to make ur work easy.
    Till then hope this helps u...all the best
    Regards,
    Radhika

  • How to Create a DropDown Box in a Selection Screen.

    Hi,
    I have a question. i.e, How to create a dropdown box in a Selection Screen. Could you please assist me.
    Thanks & Regards
    Sathish Kumar

    hi satish,
    The following can assist u to create a drop down ....
    Drop down list box can be created in a dialog screen(SE51) as well as selection screen.
      The sap list box allows to select a value from the list but we cannot enter our own value in the list box .The value list that will be displayed consists of two
    fields TEXT field of TYPE 80(C) and internal KEY field of TYPE 40(C).
    In screen painter to create a input/output field into list box we use
    'L" as a value for dropdown attribute for the i/o field.
    In screen painter to determine the type of method that will be used to fill the value
    list we use the attribute value list.
    If it is blank  the value list will be filled by the first column of the input help assigned to the screen field.This input help can be defined in the ABAP Dictionary, on screen using SELECT,VALUES screen statements or in event POV (PROCESS ON VALUE-REQUEST ) and the input help that will be passed to the field should consists of 2 columns ,the key column is filled automatically by the system.SAP recommends value list field should be blank.
    or
    The value  can be 'A' meaning that the value list will be filled in the event PBO(PROCESS BEFORE OUTPUT) or before the screen is displayed.In this method we use function module VRM_SET_VALUES to fill the values and pass it to the i/o field.
    If a function code is attached to the list box the selection of a value triggers a PAI
    otherwise PAI will not trigger.
    Example
    Dropdown list boxes
    REPORT DEMO_DYNPRO_DROPDOWN_LISTBOX.
    TYPE-POOLS VRM.
    DATA: NAME  TYPE VRM_ID,
          LIST  TYPE VRM_VALUES,
          VALUE LIKE LINE OF LIST.
    DATA: WA_SPFLI TYPE SPFLI,
          OK_CODE LIKE SY-UCOMM,
          SAVE_OK LIKE SY-UCOMM.
    TABLES DEMOF4HELP.
    NAME = 'DEMOF4HELP-CONNID'.
    CALL SCREEN 100.
    MODULE CANCEL INPUT.
      LEAVE PROGRAM.
    ENDMODULE.
    MODULE INIT_LISTBOX OUTPUT.
      CLEAR DEMOF4HELP-CONNID.
      SELECT  CONNID CITYFROM CITYTO DEPTIME
        FROM  SPFLI
        INTO  CORRESPONDING FIELDS OF WA_SPFLI
       WHERE  CARRID = DEMOF4HELP-CARRIER2.
        VALUE-KEY  = WA_SPFLI-CONNID.
        WRITE WA_SPFLI-DEPTIME TO VALUE-TEXT
                               USING EDIT MASK '__:__:__'.
        CONCATENATE VALUE-TEXT
                    WA_SPFLI-CITYFROM
                    WA_SPFLI-CITYTO
                    INTO VALUE-TEXT SEPARATED BY SPACE.
        APPEND VALUE TO LIST.
      ENDSELECT.
      CALL FUNCTION 'VRM_SET_VALUES'
           EXPORTING
                ID              = NAME
                VALUES          = LIST.
    ENDMODULE.
    MODULE USER_COMMAND_100.
      SAVE_OK = OK_CODE.
      CLEAR OK_CODE.
      IF SAVE_OK = 'CARRIER'
         AND NOT DEMOF4HELP-CARRIER2 IS INITIAL.
        LEAVE TO SCREEN 200.
      ELSE.
        SET SCREEN 100.
      ENDIF.
    ENDMODULE.
    MODULE USER_COMMAND_200.
      SAVE_OK = OK_CODE.
      CLEAR OK_CODE.
      IF SAVE_OK = 'SELECTED'.
        MESSAGE I888(BCTRAIN) WITH TEXT-001 DEMOF4HELP-CARRIER2
                                            DEMOF4HELP-CONNID.
      ENDIF.
    ENDMODULE.
    Reward if useful.
    Thank you,
    Regards.

  • How to link a search help to a selection screen field

    Hi All,
    I am using field PKWRG from PA0017 table in selection screen. I need F4 help there as in Tcode PA30 . But this field does not have value table or check table. However, it has a search help attached 'TRV_PKWRG' .
    But, I donot know how to assign a search help to a selection screen field. Please help.
    Regards,
    Nibha

    Hello,
    Fetch all the data which from the table which you want to show in the search help and pass the value to the FM
    F4IF_INT_TABLE_VALUE_REQUEST and the selection-screen event must be
    at selection-screen on value request parameter or selection option variable.
    BCALV_TEST_FULLSCREEN
    BCALV_TEST_FULLSCREEN_CALLS
    BCALV_TEST_FULLSCREEN_PRINT
    BCALV_TEST_FULLSCREEN_STATUS
    BCALV_TEST_GRID
    BCALV_TEST_GRID_DRAG_DROP
    BCALV_TEST_GRID_EDITABLE
    BCALV_TEST_GRID_EVENTS
    BCALV_TEST_GRID_INDEX
    BCALV_TEST_GRID_TOOLBAR
    BCALV_TEST_HIERSEQ_LIST
    BCALV_TEST_LIST
    BCALV_TEST_LIST_PRINT
    BCALV_TEST_LIST_STATUS
    BCALV_VERIFY_DTYPES_D0100_F01
    BCSMENUF01
    BDLCOF10
    BDLDVI10
    BDLTREDF

Maybe you are looking for

  • Help with a Java menu

    I am rather new to this so I appreciate any help you can provide. I was asked to add an additional choice to an existing drop down (mouse over) menu. I have added the additional choice and it appears when I preview it in a browser but for some reason

  • My recorded signal is not sounding like the signal I am monitoring.

    My recorded guitar is not sounding like the signal I am monitoring. It sounds very good when recording, but lacks energy and detail when it is played back. If I am using input/direct monitoring am I also bypassing the Analog to Digital converters? Co

  • RESPAREA? - authorisations on Internal Order groups?

    Hi together, is it possible to restrict on Internal Order Groups in authorisation Object RESPAREA? I know its possible for Profitcenter groups etc.. with PH / HI / KN.. But what about Internal Order groups? SIngle Internal Orders I can restrict via O

  • Choosing a value based on newest date, and newest value

    Good Afternoon, I'm in search of help on a statement Im trying to perform in a Query transform in my ETL. So this is the scenario. I have a Value called SGSGVL which is "CYW" and in our descriptions table for the VALUE CYW we have 3 different Descrip

  • SHD0 for VA02

    Hi i want to make payment terms not changed in VA02 so i try to use SHD0 . VBKD-ZTERM in program SAPMV45A screen 4303 but when i try to make invisible it is not working by transaction variant ., any where am i missing ..i avtivated the transaction va