Application Development 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: 

disable checkbox in output report

Former Member
0 Kudos

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

5 REPLIES 5

Former Member
0 Kudos

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

Former Member
0 Kudos

Use INPUT OFF addition.

write: v1 as checkbox input off.

It will disable the checkbox for user input.

Former Member
0 Kudos

Use addition INPUT OFF with WRITE statement. Eg:

DATA: chb(1) TYPE c VALUE 'X'.

WRITE chb AS CHECKBOX INPUT OFF.

Former Member
0 Kudos

Use INPUT OFF addition.

write: v1 as checkbox input off.

It will disable the checkbox for user input.

anoop_gupta2
Participant
0 Kudos

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