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

Selection screen

Hi all,

i have one selection screen

which has one parameters and 2 radiobuttons

my requirement is when one radio button is clicked parameters should be input enabled

but as soon as the second radio button is clicked parameters should be input disabled

how to do this

Regards

tarang

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

9 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Apr 25, 2007 at 06:28 AM

    Hi,

    Put both the radio button inthe same <b>radiogroup.</b>

    This way,if 1 is enabled ,another gets disabled,

    Thanks,

    Shreya.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 25, 2007 at 06:31 AM

    1. You have to add modif id with the parameter

    2. you have to use loop at screen in at selection screen:

    the below code make the parameter invisable. See the screen table you will find the attribute to make a field ready to input dynamically.

    *---------------------------------------------------------------------
    * AT SELECTION-SCREEN OUTPUT
    *---------------------------------------------------------------------
    AT SELECTION-SCREEN OUTPUT.
    
      LOOP AT SCREEN.
        IF p_sess = 'X'.
          IF screen-group1 = 'CTU'.
            screen-active = 0.
          ENDIF.
        ELSEIF p_ctu = 'X'.
          IF screen-group1 = 'SES'.
            screen-active = 0.
          ENDIF.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 25, 2007 at 06:31 AM

    Hi,

    REPORT zextest595 .

    *--- Radiobuttons

    PARAMETERS: p_up RADIOBUTTON GROUP a DEFAULT 'X' USER-COMMAND rb,

    p_list RADIOBUTTON GROUP a.

    PARAMETERS: p_pcfile LIKE rlgrap-filename OBLIGATORY DEFAULT 'C:\'

    MODIF ID ccc,

    p_pctype LIKE rlgrap-filetype OBLIGATORY DEFAULT 'ASC'

    MODIF ID ccc,

    p_unix LIKE rlgrap-filename OBLIGATORY DEFAULT '.\'

    MODIF ID ccc.

    PARAMETERS: p_dir LIKE rlgrap-filename OBLIGATORY DEFAULT '.'

    MODIF ID ddd,

    p_fp LIKE rlgrap-filename

    MODIF ID ddd.

    *----


    • AT SELECTION-SCREEN

    *----


    AT SELECTION-SCREEN OUTPUT.

    IF p_up = 'X' .

    LOOP AT SCREEN.

    CASE screen-group1.

    WHEN 'CCC'.

    screen-input = 1. "Enable

    screen-invisible = 0. "Disable

    MODIFY SCREEN.

    WHEN 'DDD'.

    screen-input = 0.

    screen-invisible = 1.

    MODIFY SCREEN.

    ENDCASE.

    ENDLOOP.

    ENDIF.

    IF p_list = 'X'.

    LOOP AT SCREEN.

    CASE screen-group1.

    WHEN 'CCC'.

    screen-input = 0.

    screen-invisible = 1.

    MODIFY SCREEN.

    WHEN 'DDD'.

    screen-input = 1.

    screen-invisible = 0.

    MODIFY SCREEN.

    ENDCASE.

    ENDLOOP.

    ENDIF.

    Don't forget to reward if useful

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 25, 2007 at 06:33 AM

    hi..

    give the two radio buttons same group and give parameters to same modif id and modify the screen in loop at screen .

    LOOP AT SCREEN.

    IF screen-group1 = 'MOD'.

    IF radio1 = 'X '.

    screen-input = '0'.

    ELSE.

    screen-input = '1'.

    ENDIF.

    MODIFY SCREEN.

    ENDIF.

    ENDLOOP.

    regards,

    veeresh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 25, 2007 at 06:34 AM

    Hi,

    Check out below code:

    PARAMETERS: p_radio1 RADIOBUTTON GROUP ABC USER-COMMAND flag

    DEFAULT 'X',

    p_radio2 RADIOBUTTON GROUP ABC.

    parameter p_field for XXXXX . "<input field>

    AT SELECTION-SCREEN OUTPUT.

    LOOP AT SCREEN.

    IF p_radio1 EQ 'X' and screen-name eq p_field.

    screen-input = 0.

    ENDIF.

    MODIFY SCREEN.

    ENDLOOP.

    Thanks

    Sandeep

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 25, 2007 at 06:36 AM

    HI

    PARAMETERS: p_NAME(20),

    P_R1 RADIOBUTTON GROUP G1 USER-COMMAND CLK,

    P_R2 RADIOBUTTON GROUP G1.

    AT SELECTION-SCREEN OUTPUT.

    LOOP AT SCREEN.

    IF SCREEN-NAME = 'P_NAME'.

    IF P_R2 = 'X'.

    SCREEN-INPUT = 0.

    ENDIF.

    MODIFY SCREEN.

    ENDIF.

    ENDLOOP.

    REGARDS,

    ANANTH

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 25, 2007 at 06:38 AM

    Hi,

    While declaring the Parameter, mention some MODIF ID for that paramter.Group those two Radio buttons.

    Then While Checking the radiobutton the parameter display should change.For that give the conditions.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 25, 2007 at 06:40 AM

    hi Tarang ,

    I think you might not have grouped the radio buttons so that you can only chose one at a time .and if at all you have done this write the following logic ,

    follow the logic :

    use a case like sy-ucomm . ( write your own code using the logic )

    when -


    .

    loop at screen .

    screen-name = 'give the screen field name '.

    screen-input = 'X' for input or ' ' for display .

    endloop .

    I m sure this logic will work !

    Thanks

    Ranjita

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 25, 2007 at 06:58 AM

    Dear all my query is resolved....

    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.