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: 

Parameter with checkboxes

Former Member
0 Kudos

Hi folks,

can anybody help in this issue.

There is a parameter with searchhelp option(f4).Below that there are five checkboxes.Now if i select the entry from searchhelp,i want some of the checbox below shd not be displayed,only some shd be there.

if i hit enter i was able to do so,i want it without hitting enter this to be done,while selecting the option from search help itself,it shd happen.

Thanks in advance,

Ponraj.s.

1 ACCEPTED SOLUTION

vinod_gunaware2
Active Contributor
0 Kudos

**********************************************************************

      • SELECTION SCREEN

**********************************************************************

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.

PARAMETERS: p_ver RADIOBUTTON GROUP g1 USER-COMMAND rad DEFAULT 'X',

p_sab RADIOBUTTON GROUP g1 .

SELECTION-SCREEN END OF BLOCK b1.

SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.

SELECT-OPTIONS: s_vbeln FOR vbak-vbeln NO INTERVALS MODIF ID gr1.

PARAMETERS: p_dwfile TYPE rlgrap-filename

DEFAULT 'C:\test1.txt' MODIF ID gr2, "#EC NOTEXT

p_upfile TYPE rlgrap-filename

DEFAULT 'C:\test.txt' <b>MODIF ID gr3.</b>

"#EC NOTEXT

SELECTION-SCREEN END OF BLOCK b2.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF p_sab = 'X'.

IF screen-group1 = 'GR1' OR screen-group1 = 'GR2'.

screen-active = '0'.

screen-invisible = '1'.

ELSE.

screen-active = '1'.

screen-invisible = '0'.

ENDIF.

MODIFY SCREEN.

ELSE.

IF screen-group1 = 'GR3'.

screen-active = '0'.

screen-invisible = '1'.

ELSE.

<b>screen-active = '1'.

screen-invisible = '0'.</b> \

ENDIF.

<b>MODIFY SCREEN.</b>

ENDIF.

ENDLOOP.

and use <b>USER-Command</b>

regards

vinod

2 REPLIES 2

vinod_gunaware2
Active Contributor
0 Kudos

**********************************************************************

      • SELECTION SCREEN

**********************************************************************

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.

PARAMETERS: p_ver RADIOBUTTON GROUP g1 USER-COMMAND rad DEFAULT 'X',

p_sab RADIOBUTTON GROUP g1 .

SELECTION-SCREEN END OF BLOCK b1.

SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.

SELECT-OPTIONS: s_vbeln FOR vbak-vbeln NO INTERVALS MODIF ID gr1.

PARAMETERS: p_dwfile TYPE rlgrap-filename

DEFAULT 'C:\test1.txt' MODIF ID gr2, "#EC NOTEXT

p_upfile TYPE rlgrap-filename

DEFAULT 'C:\test.txt' <b>MODIF ID gr3.</b>

"#EC NOTEXT

SELECTION-SCREEN END OF BLOCK b2.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF p_sab = 'X'.

IF screen-group1 = 'GR1' OR screen-group1 = 'GR2'.

screen-active = '0'.

screen-invisible = '1'.

ELSE.

screen-active = '1'.

screen-invisible = '0'.

ENDIF.

MODIFY SCREEN.

ELSE.

IF screen-group1 = 'GR3'.

screen-active = '0'.

screen-invisible = '1'.

ELSE.

<b>screen-active = '1'.

screen-invisible = '0'.</b> \

ENDIF.

<b>MODIFY SCREEN.</b>

ENDIF.

ENDLOOP.

and use <b>USER-Command</b>

regards

vinod

Former Member
0 Kudos

well i dont know the full code of this but u try to check for IF SCREEN-INPUT = 1 , WHICH IS YOUR PARAMETER INPUT , THEN DISABLE THE CHECK BOXES .