04-03-2008 7:30 AM
hi gurus
I have display checkbox with tick in front of row in output at simple report program. My query is that I want to do disable checkbox whose are on tick in output screen.
Please suggest me how can I do ?
Best Regards.
Pravin
04-03-2008 7:35 AM
Hi,
u can try this
if check eq 'X'.
loop at screen.
if screen-group1 = 'ABC'.
screen-input = 0.
screen-invisible = 1.
modify screen.
endif.
endloop.
endif.
here u have to provide ur check box field under group ABC
reward if helpful
04-03-2008 7:44 AM
Use INPUT OFF addition.
write: v1 as checkbox input off.
It will disable the checkbox for user input.
04-03-2008 7:44 AM
Use addition INPUT OFF with WRITE statement.
Eg:
DATA: chb(1) TYPE c VALUE 'X'.
WRITE chb AS CHECKBOX INPUT OFF.
04-03-2008 7:47 AM
Use INPUT OFF addition.
write: v1 as checkbox input off.
It will disable the checkbox for user input.
04-03-2008 8:27 AM
hey pravin tryout this code and each time u select checkbox press f8 .
REPORT hide_unhide_box
selection-SCREEN : begin of block b2 with frame.
PARAMETERS: chk1 as CHECKBOX MODIF ID M1,
chk2 as CHECKBOX MODIF ID M1 DEFAULT 'X'.
SELECTION-SCREEN:END OF BLOCK b2.
AT SELECTION-SCREEN OUTPUT.
if chk1 eq 'X'.
loop AT SCREEN.
if screen-group1 = 'M1'.
screen-invisible = 1.
endif.
MODIFY SCREEN.
ENDLOOP.
endif.
If usefull please reward with points .
thanks and regards
Anoop Gupta