2006 Dec 18 11:53 AM
Hi,
I want to create a check box with NO-DISPLAY option how can i declare it.
Means i need to create a check box with default value 'X' and it should not be displayed in selection screen.
How can i do it!
Thanks in advance.
Thanks,
Deep.
2006 Dec 18 11:57 AM
Hi Deep,
You could hide the check box in the display in the event AT SELECTION-SCREEN OUTPUT.
Try this...
PARAMETERS p_matnr LIKE mara-matnr.
PARAMETERS p_CHK AS CHECKBOX DEFAULT 'X' MODIF ID m1.
AT SELECTION-SCREEN OUTPUT.
LOOP AT screen.
IF screen-group1 = 'M1'.
screen-invisible = '1'.
ENDIF.
MODIFY screen.
ENDLOOP.
Regards
Wenceslaus.
Hi,
I want to create a check box with NO-DISPLAY option how can i declare it.
Means i need to create a check box with default value 'X' and it should not be displayed in selection screen.
How can i do it!
Thanks in advance.
Thanks,
Deep.
2006 Dec 18 11:57 AM
Hi Deep,
You could hide the check box in the display in the event AT SELECTION-SCREEN OUTPUT.
Try this...
PARAMETERS p_matnr LIKE mara-matnr.
PARAMETERS p_CHK AS CHECKBOX DEFAULT 'X' MODIF ID m1.
AT SELECTION-SCREEN OUTPUT.
LOOP AT screen.
IF screen-group1 = 'M1'.
screen-invisible = '1'.
ENDIF.
MODIFY screen.
ENDLOOP.
Regards
Wenceslaus.
2006 Dec 18 11:59 AM
Hi ,
I do not think you can use checkbox and no-display together .
You will have to use the AT SELECTION-SCREEN OUTPUT to make the checkbox innvisible.
Why do you want such a scenario.
Regards
Arun
Message was edited by:
Arun R
2006 Dec 18 12:04 PM
try this code -
parameters: p_pernr(8) no-display default 'X'.
it wil work..
pls reward points..
amit
2006 Dec 18 12:08 PM
SORRY ,i forgot to see the check box..
please write following code it wil work -
parameters: p_cbox as checkbox MODIF ID ABC USER-COMMAND CH DEFAULT 'X'.
Check sy-ucomm = 'CH'.
AT SELECTION-SCREEN OUTPUT.
loop at screen.
if p_CBOX = 'X'.
if screen-group1 = 'ABC'.
SCREEN-ACTIVE = '0'.
MODIFY SCREEN.
ENDIF.
ENDIF.
endloop.
**award points****
amit
2006 Dec 18 12:05 PM
hi deep,
check this...
parameters: c_check as checkbox default 'X'.
at selection-screen output.
loop at screen.
if screen-name = 'C_CHECK'.
screen-invisible = 1.
modify screen.
endif.
endloop.
hope this helps,
do reward if it helps,
priya.
2006 Dec 18 12:13 PM
Hi
Try like this
parameters: c_checkbox as checkbox default 'X'.
at selection-screen output.
loop at screen.
if screen-name = 'C_CHECKBOX'.
screen-invisible = 1.
modify screen.
endif.
endloop.
Regards
Haritha.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |