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

How to handle multiple radiobutton groups in a selection screen?

Hi All,

I have tabbed selection screen.

----


* SELECTION SCREEN *

----


SELECTION-SCREEN BEGIN OF TABBED BLOCK TABB1 FOR 20 LINES.

SELECTION-SCREEN TAB (20) TAB1 USER-COMMAND TAB1

DEFAULT SCREEN 1010.

SELECTION-SCREEN TAB (20) TAB2 USER-COMMAND TAB2

DEFAULT SCREEN 1020.

SELECTION-SCREEN END OF BLOCK TABB1.

I have a radiobutton group in each of my tabs in the selection screen.

SELECTION-SCREEN BEGIN OF SCREEN 1010 AS SUBSCREEN.

SELECTION-SCREEN BEGIN OF BLOCK GUI WITH FRAME." TITLE TEXT-GUI.

PARAMETERS: P_GUI1 RADIOBUTTON GROUP GUI,

P_GUI2 RADIOBUTTON GROUP GUI,

P_GUI3 RADIOBUTTON GROUP GUI,

P_GUI4 RADIOBUTTON GROUP GUI,

P_GUI5 RADIOBUTTON GROUP GUI,

SELECTION-SCREEN END OF BLOCK GUI.

SELECTION-SCREEN END OF SCREEN 1010.

SELECTION-SCREEN BEGIN OF SCREEN 1020 AS SUBSCREEN.

SELECTION-SCREEN BEGIN OF BLOCK REP WITH FRAME." TITLE TEXT-REP.

PARAMETERS: P_REP1 RADIOBUTTON GROUP REP,

P_REP2 RADIOBUTTON GROUP REP,

P_REP3 RADIOBUTTON GROUP REP.

SELECTION-SCREEN END OF BLOCK REP.

SELECTION-SCREEN END OF SCREEN 1020.

The issue is I want to be able to process only one of the tabs based on the checked radiobutton, but by default both the groups will have one of the radiobuttons checked. My piece of code is something like this.

data : c_selected(1) value 'X'.

case c_selected.

when P_GUI1.

* Process GUI 1

when P_GUI2.

* Process GUI 2

when P_GUI3.

* Process GUI 3

when P_GUI4.

* Process GUI 4

when P_GUI5.

* Process GUI 5

when P_REP1.

* Process Report 1

when P_REP2.

* Process Report 2

when P_REP3.

* Process Report 3

endcase.

How do I acheive this?

Karthik

Edited by: Karthik Boyapalli on Jun 16, 2008 9:10 PM

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Jun 16, 2008 at 07:14 PM

    hi u need to use at selection screen even..

    you need to play with the screen global parameters..

    loop at screen.

    you need an additional condition on tab and radio button modif id..

    some think like... if tab = tab1 and if rd_1 = 'X'.

    ...

    endloop.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 16, 2008 at 07:24 PM

    The issue is I want to be able to process only one of the tabs based on the checked radiobutton, but by default both the groups will have one of the radiobuttons checked. My piece of code is something like this.

    You will be able to process the Radiobutton based on the tab. Use the sy-ucomm to determine the TAB that is selected on the selection screen. Then you can do further processing based on the radio button selected.

    Only one TAB will be available for User Interaction so there will be no issue with processing based on the radio button

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 07:47 PM

    Thanks Jack & Abhishek. Got around it with you guys help.

    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.