2010 Feb 03 1:15 AM
In a selection screen, how do i make check boxes disappear for a specific tcode.
does this code work below:
loop at screen.
if tcode = ' xyz'.
if screen-name = 'CHK1'.
screen-input = 0.
screen-invisible = 1.
modify screen.
endif.
endif.
endloop.
2010 Feb 03 1:51 AM
Hi,
you can try this code:
*specify the parameter of your checkbox.
PARAMETER : p_check AS CHECKBOX.
* Event at screen PBO
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF screen-NAME = 'P_CHECK' "Check the screen name
AND sy-tcode = 'SE38'. "Check for your t-code
screen-invisible = 1. "if satisfy, set the invisible on
MODIFY SCREEN. "and modify the screen properties
ENDIF.
ENDLOOP.Have a nice try
In a selection screen, how do i make check boxes disappear for a specific tcode.
does this code work below:
loop at screen.
if tcode = ' xyz'.
if screen-name = 'CHK1'.
screen-input = 0.
screen-invisible = 1.
modify screen.
endif.
endif.
endloop.
2010 Feb 03 1:51 AM
Hi,
you can try this code:
*specify the parameter of your checkbox.
PARAMETER : p_check AS CHECKBOX.
* Event at screen PBO
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF screen-NAME = 'P_CHECK' "Check the screen name
AND sy-tcode = 'SE38'. "Check for your t-code
screen-invisible = 1. "if satisfy, set the invisible on
MODIFY SCREEN. "and modify the screen properties
ENDIF.
ENDLOOP.Have a nice try
2010 Feb 03 3:57 AM
hi,
in the PBO of the screen ,
loop at screen.
if tcode = ' xyz'.
if screen-name = 'CHK1'.
screen-invisible = 1.
modify screen.
endif.
endif.
endloop.
regards
gaurav
2010 Feb 03 4:02 AM
Hi
Run this code. Making active = 0 will hide the checkbox.
at selection screen.
loop at screen.
if screen-name = 'CHK1'.
if sy-tcode = 'XYZ'.
screen-active = 0.
modify screen.
endif.
endif.
endloop.
2010 Feb 03 6:14 AM
Hi ,
If you are working on report program.
You need to code your logic in AT SELECTION SCREEN OUTPUT .
Im Module pool program , you need to decide the exact palce depending on your requirement and put code in PAI/PBO.
Hope this helps you.
2010 Feb 03 6:18 AM
>
> does this code work below:
>
why dont you run and check did you !!!
2010 Feb 03 6:49 AM
hi vinay,
try this code
AT SELECTION-SCREEN OUTPUT.
loop at screen.
if sy-tcode = 'XYZ'.
if screen-name = 'CHK1'.
screen-active = 0.
modify screen.
endif.
endif.
endloop.
Regards,
Abhilash
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |