2010 Apr 23 11:25 AM
i have two radio button
if i click button1 two (A & B) parameters appears on the screen ? (i have programmed in at selecti)
if i click button2 THREE (C & D& E) parameters appears on the screen ?
Suppose i click button1, i get parameterS A & B ,i enter something on screen , i get
output .after that i press back button . two parameters A & B will be on screen but it will
be disabled and selection screen text is missing for A & B.
how to get around this problem,i want it(A & B) to enabled after i press back button and text should be present.
2010 Apr 23 11:30 AM
Can you share the code you have written in the at selection-screen event ?
2010 Apr 23 12:42 PM
sorry for dealy
AT SELECTION-SCREEN OUTPUT.
IF r_future = 'X'.
LOOP AT SCREEN.
IF screen-group1 = 'BUK'.
screen-active = 0.
screen-invisible = 1.
MODIFY SCREEN.
ELSEIF screen-group1 = 'BUF'.
screen-active = 1.
screen-invisible = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ELSE .
LOOP AT SCREEN.
IF screen-group1 = 'BUF'.
screen-active = 0.
screen-invisible = 1.
MODIFY SCREEN.
ELSEIF screen-group1 = 'BUK'.
screen-active = 1.
screen-invisible = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
IF r_detail = 'X'.
LOOP AT SCREEN.
IF screen-group1 = 'CUR'.
screen-active = 1.
screen-invisible = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ELSE.
LOOP AT SCREEN.
IF screen-group1 = 'CUR'.
screen-active = 0.
screen-invisible = 1.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
2010 Apr 26 5:25 AM
2010 Apr 26 7:16 AM
Hi,
Assign selection screen elements A and B to one screen group and C,D,E to one group.
Here I have assigned first two elements (which will be displayed on click of r_future ) to screen group G1 and next two elements to screen group G2.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-003.
PARAMETERS : A TYPE C,
B TYPE C,
C TYPE C,
D TYPE C.
PARAMETERS: r_future TYPE c RADIOBUTTON GROUP r1
DEFAULT 'X'
USER-COMMAND fcode,
r_detail TYPE c RADIOBUTTON GROUP r1.
SELECTION-SCREEN END OF BLOCK b1.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
CASE screen-group1.
WHEN 'G1'.
IF r_future = 'X'.
screen-active = 1.
ELSE.
screen-active = 0.
ENDIF.
WHEN 'G2'.
IF r_detail = 'X'.
screen-active = 1.
ELSE.
screen-active = 0.
ENDIF.
ENDCASE.
MODIFY SCREEN.
ENDLOOP.
Try to simplify your code.I am not sure why you have used three screen groups.
Try in above manner.It should work.
Thanks
Tejaswini Khante
Edited by: Tejaswini Khante on Apr 26, 2010 8:16 AM
2010 Apr 26 8:08 AM
Thanks tejaswini.
The problem was , i had written another piece of code in initialization event .which i had forgotten to comment.
2010 Apr 26 8:20 AM