Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Radio button disabled after executing and pressed back button

Former Member
0 Kudos
152

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.

6 REPLIES 6

SuhaSaha
Advisor
Advisor
0 Kudos
117

Can you share the code you have written in the at selection-screen event ?

Former Member
0 Kudos
117

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.

Former Member
0 Kudos
117

Any answer

Former Member
0 Kudos
117

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

Former Member
0 Kudos
117

Thanks tejaswini.

The problem was , i had written another piece of code in initialization event .which i had forgotten to comment.

Former Member
0 Kudos
117

above