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

Check box in selection screen !!!

Former Member
0 Likes
5,979

Hi Experts !

In my selection screen I have a check box. When i checked the check box.

It has to display select option. I have showed the coding....

PARAMETER P_POTYPE AS CHECKBOX. "checkbox

SELECT-OPTIONS S_POTYPE FOR EKKO-BSART MODIF ID POT. "checkbox is checked then it has to display this select option.

AT SELECTION-SCREEN OUTPUT.

IF P_POTYPE = 'X'.

loop at screen.

IF SCREEN-NAME EQ 'P_POT'.

CLEAR SCREEN-INVISIBLE.

screen-invisible = 'X'.

SCREEN-ACTIVE = 0.

ENDIF.

endloop.

ENDIF.

If i checked the check box it has to display select option. if it is unchecked. select option is invisible.

Thanks in advance.

Arvind

Edited by: arvind nn on Oct 31, 2009 6:05 AM

1 ACCEPTED SOLUTION
Read only

nirajgadre
Active Contributor
0 Likes
2,891

Hi,

If you want to hide the selection option when you unchecked the check box then you need to check this condition as well in AT SELECTION SCREEN OUTPUT and make the screen option invisible to 0 so that it will disable the select option.

5 REPLIES 5
Read only

Former Member
0 Likes
2,891

I am not able to understand your exact problem .

But I can tell that screen-active should be true. Check it.

Read only

former_member156446
Active Contributor
0 Likes
2,891

in the loop use MODIFY screen. ur missing it.

Read only

nirajgadre
Active Contributor
0 Likes
2,892

Hi,

If you want to hide the selection option when you unchecked the check box then you need to check this condition as well in AT SELECTION SCREEN OUTPUT and make the screen option invisible to 0 so that it will disable the select option.

Read only

0 Likes
2,891

This message was moderated.

Read only

venkat_o
Active Contributor
0 Likes
2,891

Hi Arvind, Try this way.


REPORT ztest.
TABLES:ekko.
PARAMETER p_potype AS CHECKBOX USER-COMMAND uc1. "Add USER-COMMAND uc1
SELECT-OPTIONS s_potype FOR ekko-bsart MODIF ID pot.

AT SELECTION-SCREEN OUTPUT.
  IF p_potype = 'X'.
    LOOP AT SCREEN.
      IF screen-group1 EQ 'POT'. "Use screen-group1 instead of screen-name
        screen-active = '1'.
        MODIFY SCREEN.
        CLEAR  screen.
      ENDIF.
    ENDLOOP.
  ELSE.
    LOOP AT SCREEN.
      IF screen-group1 EQ 'POT'.
        screen-active = '0'.
        MODIFY SCREEN.
        CLEAR  screen.
      ENDIF.
    ENDLOOP.
  ENDIF.
Thanks Venkat.O