2007 Sep 12 9:52 AM
Hi all..
A small requirement is there. My selection screen consists of two radio buttons. 1. current period
2. Other period
My requirement is at Other Period radio button i need two text boxes.
Ex:- Other period: Textbox1 Textbox2(like this two boxes)
How to do this? pls help me.
Hi all..
A small requirement is there. My selection screen consists of two radio buttons. 1. current period
2. Other period
My requirement is at Other Period radio button i need two text boxes.
Ex:- Other period: Textbox1 Textbox2(like this two boxes)
How to do this? pls help me.
2007 Sep 12 9:55 AM
Hi ,
keep your checkboxes hidden initially and when user selects 'others' then you make this checkboxes visible...
Regards
Anuj
2007 Sep 12 9:55 AM
Check this sample code
selection-screen begin of block a with frame title text-100.
parameters : w_par1 radiobutton group aa user-command aa.
parameters : w_par2 radiobutton group aa default 'X'.
selection-screen : begin of block d with frame title text-400.
parameters : w_par11 radiobutton group bb default 'X'
modif id id2.
parameters : w_par12 radiobutton group bb modif id id2.
parameters : w_par13 radiobutton group bb modif id id2.
parameters : w_par14 radiobutton group bb modif id id2.
selection-screen : end of block d.
selection-screen end of block a.
at selection-screen output.
loop at screen.
if w_par1 = 'X'.
if screen-group1 = 'ID2'.
screen-active = 1.
screen-input = 0.
modify screen.
endif.
endif.
if w_par2 = 'X'.
if screen-group1 = 'ID1'.
screen-active = 1.
screen-input = 0.
modify screen.
endif.
endif.
endloop.
Regards
Gopi
2007 Sep 12 9:58 AM
Hi Sudha,
As far as I know, in radio button groups we can select only one radio button. And that radio button can have only one value. U can't use two TEXT boxes. If u want to do so, try like this. After clicking second radio button, two text boxes can be enabled. And these text boxes can be called using parameter statement.
Use AT SELECTION SCREEN EVENT.
Reward if useful.
2007 Sep 12 9:58 AM
TRY THIS
PARAMETERS : CURPER RADIOBUTTON GROUP RG1.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS : PREVPER RADIOBUTTON GROUP RG1,
TEXT1(10),
TEXT2(10).
SELECTION-SCREEN END OF LINE.
REGARDS
SHIBA DUTTA
2007 Sep 12 10:52 AM
hi..
Thanks for your immeadeate reply. To some extent it was helpful. but what i need exactly is at current period radio button i need two textboxes. means it should be like this.
currentperiod Text1 text2 (means current period should be visible and also in front of that i need two text boxes)
Thanks
Sudha
2007 Sep 12 11:05 AM
HI,
see this.
TABLES:sscrfields.
PARAMETERS:check RADIOBUTTON GROUP rad1 USER-COMMAND RAD DEFAULT 'X',
field RADIOBUTTON GROUP rad1.
PARAMETERS:field1(10),field2(10).
AT SELECTION-SCREEN OUTPUT.
if check = 'X'.
LOOP AT SCREEN.
if screen-name = 'FIELD1' OR SCREEN-NAME = 'FIELD2' OR
SCREEN-NAME = '%_FIELD1_%_APP_%-TEXT' OR SCREEN-NAME = '%_FIELD2_%_APP_%-TEXT'.
screen-ACTIVE = 1.
MODIFY SCREEN.
endif.
ENDLOOP.
else.
LOOP AT SCREEN.
if screen-name = 'FIELD1' OR SCREEN-NAME = 'FIELD2' OR
SCREEN-NAME = '%_FIELD1_%_APP_%-TEXT' OR SCREEN-NAME = '%_FIELD2_%_APP_%-TEXT'.
screen-ACTIVE = 0.
MODIFY SCREEN.
endif.
ENDLOOP.
endif.
at SELECTION-SCREEN.
case sscrfields-ucomm.
when 'RAD'.
if check = 'X'.
LOOP AT SCREEN.
if screen-name = 'FIELD1' OR SCREEN-NAME = 'FIELD2' OR
SCREEN-NAME = '%_FIELD1_%_APP_%-TEXT' OR SCREEN-NAME = '%_FIELD2_%_APP_%-TEXT'.
screen-ACTIVE = 1.
MODIFY SCREEN.
endif.
ENDLOOP.
else.
LOOP AT SCREEN.
if screen-name = 'FIELD1' OR SCREEN-NAME = 'FIELD2' OR
SCREEN-NAME = '%_FIELD1_%_APP_%-TEXT' OR SCREEN-NAME = '%_FIELD2_%_APP_%-TEXT'.
screen-ACTIVE = 0.
MODIFY SCREEN.
endif.
ENDLOOP.
endif.
ENDCASE.
rgds,
bharat.
2007 Sep 12 10:07 AM
Hi Sudha,
Check the below code.
SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME.
PARAMETERS: one RADIOBUTTON GROUP r1 DEFAULT 'X' USER-COMMAND rusr,
all RADIOBUTTON GROUP r1.
SELECTION-SCREEN END OF BLOCK blk1.
SELECTION-SCREEN BEGIN OF BLOCK blk2 WITH FRAME.
PARAMETERS : user LIKE usr02-bname DEFAULT sy-uname MODIF ID z1.
PARAMETERS : user1 LIKE usr02-bname DEFAULT sy-uname MODIF ID z1.
SELECTION-SCREEN END OF BLOCK blk2.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF screen-group1 = 'Z1'. "Name field
IF all = 'X'.
screen-active = 1.
ELSE.
screen-active = 0.
ENDIF.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
2007 Sep 12 10:11 AM
hi,
TRY THIS
PARAMETERS : CURRENT RADIOBUTTON GROUP RG1.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS : OPERIOD RADIOBUTTON GROUP RG1,
TEXT1(10),
TEXT2(10).
SELECTION-SCREEN END OF LINE.
REWARD POINTS FOR USEFUL ANSWERS.
with regards,
Suresh Aluri.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |