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

Radio Button on Selection screen

Hi Friends,

I have a requirement in which two radio button are required on selection screen. But initially both of them should be unchecked. User should go on select either of the two.

Is it possible to achive this? Please guide me how this can be achieved.

Thanks,

Punit

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

7 Answers

  • Posted on Oct 01, 2010 at 07:05 AM

    If you are using radiobuttons on your selection screen then by default one of them will be checked.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 01, 2010 at 07:08 AM

    not possible via radio-buttons , use check box instead.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 01, 2010 at 07:29 AM

    HI Punit

    Yes this is possible.

    You need to create two radio buttons on selection screen one with default check, like:

    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.

    PARAMETERS: p_rdbt1 RADIOBUTTON GROUP gi default 'X',

    p_rdbt2 RADIOBUTTON GROUP gi.

    SELECTION-SCREEN END OF BLOCK B1.

    after that you need to do the coding accordingly.

    like:

    if p_rdbt1 = 'X'.

    <do your coding here>.

    elseif p_rdbt2 = 'X'.

    <do your coding>.

    endif.

    I hope this will work for you.

    Thanks

    Lalit Gupta

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 01, 2010 at 07:32 AM

    Hi Punit,

    You can try below logic.

    PARAMETERS : r1 RADIOBUTTON GROUP g1 DEFAULT 'X',

    r2 RADIOBUTTON GROUP g1,

    r3 RADIOBUTTON GROUP g1.

    Now hide this radiobutton r1 by using loop at screen

    AT SELECTION-SCREEN OUTPUT.

    LOOP AT SCREEN.

    IF screen-name = 'R1'.

    screen-invisible = '1'.

    MODIFY SCREEN.

    ENDIF.

    ENDLOOP.

    Regards,

    Pawan

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 01, 2010 at 09:09 AM

    Hi,

    You can do this only using check box. In the at selection screen event, you have to ensure that both are not selected simultaneouly and only one has been selected.

    Hope it helps.

    Sujay

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 01, 2010 at 09:14 AM

    Hi,

    Always when you use the radiobuttons gets displayed with one them being tick marked.

    We cant do anything to it even programmitically.

    Thanks.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 08, 2010 at 08:00 AM

    Check the following code Hide one radio button .

    < http://www.sapfans.com/forums/viewtopic.php?f=13&t=12324 removed>>

    Moderator Message: Copy-paste is a serious offense, which can lead to account deletion.

    Edited by: kishan P on Oct 8, 2010 7:50 PM

    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.