2009 Oct 31 5:05 AM
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
2009 Oct 31 6:08 AM
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.
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
2009 Oct 31 5:20 AM
I am not able to understand your exact problem .
But I can tell that screen-active should be true. Check it.
2009 Oct 31 5:28 AM
2009 Oct 31 6:08 AM
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.
2009 Oct 31 7:28 AM
2009 Oct 31 8:38 AM
Hi Arvind,
Try this way.
Thanks
Venkat.O
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.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |