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

selection screen probleam

Former Member
0 Likes
475

hi all develpers,

i have 2 radio button and one check box in one block.

radio button : pdh plant

radio button :pp plant , here in same line one checkbox(a).

so requirement is if i select pdh plant check box should be

disable mode.if i select pp plant check box should again enable mode.

how to do this in same block...

help me ..

thanks subhasis

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
459

Hi,

Check this Code



SELECTION-SCREEN : BEGIN OF BLOCK blk2 WITH FRAME TITLE text-002.
PARAMETER : pdh_plnt RADIOBUTTON  GROUP g1 DEFAULT 'X' USER-COMMAND change,
            pp_plant  RADIOBUTTON GROUP g1,
            PARAMETER : chk1 as checkbox   MODIF ID m3.       
SELECTION-SCREEN:END OF BLOCK blk2.


AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    IF screen-group1 = 'M3'.
      IF pdh_plnt EQ 'X'.

        screen-INPUT = 0.
      ELSE.

        screen-INPUT = 1.
      ENDIF.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.

Do reward Points if Helpful

Regards

Sandipan

Edited by: Sandipan Ghosh on Mar 18, 2008 8:40 AM

3 REPLIES 3
Read only

Former Member
0 Likes
460

Hi,

Check this Code



SELECTION-SCREEN : BEGIN OF BLOCK blk2 WITH FRAME TITLE text-002.
PARAMETER : pdh_plnt RADIOBUTTON  GROUP g1 DEFAULT 'X' USER-COMMAND change,
            pp_plant  RADIOBUTTON GROUP g1,
            PARAMETER : chk1 as checkbox   MODIF ID m3.       
SELECTION-SCREEN:END OF BLOCK blk2.


AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    IF screen-group1 = 'M3'.
      IF pdh_plnt EQ 'X'.

        screen-INPUT = 0.
      ELSE.

        screen-INPUT = 1.
      ENDIF.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.

Do reward Points if Helpful

Regards

Sandipan

Edited by: Sandipan Ghosh on Mar 18, 2008 8:40 AM

Read only

0 Likes
459

THANKS SANDEEP & EVERYBODY

Read only

Former Member
0 Likes
459

Delcare the 2 Radio Buttons.

In AT SELECTION-SCREEN OUTPUT event.

LOOP AT SCREEN.

IF P_RAD1 EQ C_X.

IF SCREEN-NAME EQ 'Description of Ra1'.

MOVE 'data' TO parameter.

CLEAR P_PFILE.

SCREEN-INPUT = '0'.

MODIFY SCREEN.

ENDIF.

ELSEIF P_RAD2 EQ C_X.

IF SCREEN-NAME EQ 'Rad2'.

CLEAR Rad2.

SCREEN-INPUT = '0'.

MODIFY SCREEN.

ENDIF.

ENDIF.

Hope this helps.

Regards

Vinayak