Application Development and Automation 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: 
Read only

input activate when radio button selected

Former Member
0 Likes
939

sorry frnds my requirement is like this

PARAMETERS : rb1 RADIOBUTTON GROUP rad1,

rb2 RADIOBUTTON GROUP rad1.

PARAMETERS: fpath TYPE filename.

my requirement is that fpath will be in input mode when rb2 selected. initially it should be greyed out.

plz help

1 ACCEPTED SOLUTION
Read only

naimesh_patel
Active Contributor
0 Likes
914

Hello,

PARAMETERS : rb1 RADIOBUTTON GROUP rad1 USER-COMMAND USR,

rb2 RADIOBUTTON GROUP rad1.

PARAMETERS: fpath TYPE filename modif id Gp1.

At selection-screen output.

if rb2 = ' '.

loop at screen.

if screen-group1 = 'GP1'.

screen-input = 0.

modify screen.

endif.

endloop.

endif.

Regards,

Naimesh

8 REPLIES 8
Read only

Former Member
0 Likes
914

Hi Sharada,

Try this:

SELECTION-SCREEN BEGIN OF BLOCK FILE WITH FRAME TITLE TEXT-005.

PARAMETERS: P_SEL1 TYPE C RADIOBUTTON GROUP SEL USER-COMMAND UPD.

PARAMETERS: P_DIR TYPE PFEFLNAMEL DEFAULT '/filetransfer/download' MODIF ID DIR.

PARAMETERS: P_SEL2 TYPE C RADIOBUTTON GROUP SEL.

PARAMETERS: P_LOCAL TYPE LOCALFILE MODIF ID LCL.

SELECTION-SCREEN END OF BLOCK FILE.

AT SELECTION-SCREEN OUTPUT.

  • setting the properties of selection-screen

PERFORM SET_SELECTION_SCREEN.

FORM SET_SELECTION_SCREEN .

IF ( P_SEL1 NE GC_X ) AND

( P_SEL2 NE GC_X ).

LOOP AT SCREEN.

CHECK SCREEN-GROUP1 = GC_LCL.

SCREEN-INPUT = GC_ZERO.

MODIFY SCREEN.

ENDLOOP.

ENDIF.

IF P_SEL2 = GC_X.

LOOP AT SCREEN.

CHECK SCREEN-GROUP1 = GC_DIR.

SCREEN-INPUT = GC_ZERO.

MODIFY SCREEN.

ENDLOOP.

ENDIF.

IF P_SEL1 = GC_X.

LOOP AT SCREEN.

CHECK SCREEN-GROUP1 = GC_LCL.

SCREEN-INPUT = GC_ZERO.

MODIFY SCREEN.

ENDLOOP.

ENDIF.

ENDFORM. " set_selection_screen

Please you could declare the constants they are straight forward from the names itself.

Regards,

YJR.

Message was edited by: YJR

Read only

naimesh_patel
Active Contributor
0 Likes
915

Hello,

PARAMETERS : rb1 RADIOBUTTON GROUP rad1 USER-COMMAND USR,

rb2 RADIOBUTTON GROUP rad1.

PARAMETERS: fpath TYPE filename modif id Gp1.

At selection-screen output.

if rb2 = ' '.

loop at screen.

if screen-group1 = 'GP1'.

screen-input = 0.

modify screen.

endif.

endloop.

endif.

Regards,

Naimesh

Read only

Former Member
0 Likes
914

Hi Sharadha,

Then you have to do the coding in both <b>INITIALIZATION</b> as well as <b>AT SELECTION SCREEN OUTPUT</b>.

<b>Initialization:</b>

if rb2 is initial.

loop at screen.

if screen-name = 'FPATH'.

screen-input = 0.

modify screen.

endif.

endloop.

endif.

<b>AT SELECTION-SCREEN OUTPUT:</b>

if not rb2 is initial.

loop at screen.

if screen-name = 'FPATH'.

screen-input = 1.

modify screen.

endif.

endloop.

else.

loop at screen.

if screen-name = 'FPATH'.

screen-input = 0.

modify screen.

endif.

endloop.

endif.

Reward if helpful.

Regards,

Tushar

Message was edited by: Tushar Marshall Dass

Read only

Former Member
0 Likes
914

AT SELECTION-SCREEN OUTPUT.

if rb2 = 'X'.

loop at screen.

if screen-name = 'FPATH'.

screen-input = '0'.

modify screen.

endif.

endloop.

Regards

Ashok P

Read only

Former Member
0 Likes
914

hai,

use the following

Initialization:

loop at screen.

if screen-name = 'FPATH'.

screen-input = 0.

endif.

endloop.

AT SELECTION-SCREEN OUTPUT:

if rb2 = 'X'.

loop at screen.

if screen-name = 'FPATH'.

screen-input = 1.

endif.

endloop.

endif.

Reward if helpful.

Regards,

Umasankar

Read only

Former Member
0 Likes
914

Hi Sharadha

Use it this way.

At selection-screen output.

loop at screen.

if screen-group1 = 'GP1'.

screen-input = 0.

modify screen.

endif.

endloop.

if rb2 = 'X'.

loop at screen.

if screen-group1 = 'GP1'.

screen-input = 1.

modify screen.

endif.

endloop.

endif.

Hope it helps.

Regards

-


Sachin Dhingra

Read only

Former Member
0 Likes
914
INITIALIZATION.

  IF rb2 IS INITIAL.
    LOOP AT SCREEN.
      IF screen-name = 'FPATH'.
        screen-input = 0.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ENDIF.


AT SELECTION-SCREEN OUTPUT.

  IF NOT rb2 IS INITIAL.
    LOOP AT SCREEN.
      IF screen-name = 'FPATH'.
        screen-input = 1.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.

  ELSE.

    LOOP AT SCREEN.
      IF screen-name = 'FPATH'.
        screen-input = 0.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ENDIF.
Read only

Former Member
0 Likes
914

Hi Sharadha,

I have solve ur problem in previous post.

u just need to take correct radio button for the condition.

rest all remains the same.

<b>

Reward Points & Mark Helpful Answers.</b>

<b>if ur problem is solved ; please close the thread</b>