Application Development and Automation 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: 
Read only

checkbox

Former Member
0 Likes
563

Please show some sample programs where we use checkbox.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
530

Hi ,

Go through this report surelt it will help you.

report zcheckbox.

parameters: p_cat8 as checkbox user-command chk.

parameters: p_lifnr type lfa1-lifnr modif id chk.

parameters: p_belnr type bsak-belnr modif id chk.

at selection-screen output.

if p_cat8 ne 'X'."p_cat8 = space.

loop at screen.

if screen-group1 = 'CHK'.

screen-input = '0'.

modify screen.

endif.

endloop.

endif.

at selection-screen.

check sy-ucomm <> 'CHK'.

if p_cat8 = 'X'.

if p_lifnr is initial.

message e001(00) with 'Please fill in the LIFNR field'.

endif.

if p_belnr is initial.

message e001(00) with 'Please fill in the BELNR field'.

endif.

endif.

Regards,

Sheethal

3 REPLIES 3
Read only

Former Member
0 Likes
530

Go to XK02 Transaction to change Vendors. There you see the check box which is a best example for you.

Reward with points if it helps you.

Read only

Former Member
0 Likes
530

Hi,

You can check the program DEMO_SEL_SCREEN_PARAM_CHECKBOX

Thanks

Naren

Read only

Former Member
0 Likes
531

Hi ,

Go through this report surelt it will help you.

report zcheckbox.

parameters: p_cat8 as checkbox user-command chk.

parameters: p_lifnr type lfa1-lifnr modif id chk.

parameters: p_belnr type bsak-belnr modif id chk.

at selection-screen output.

if p_cat8 ne 'X'."p_cat8 = space.

loop at screen.

if screen-group1 = 'CHK'.

screen-input = '0'.

modify screen.

endif.

endloop.

endif.

at selection-screen.

check sy-ucomm <> 'CHK'.

if p_cat8 = 'X'.

if p_lifnr is initial.

message e001(00) with 'Please fill in the LIFNR field'.

endif.

if p_belnr is initial.

message e001(00) with 'Please fill in the BELNR field'.

endif.

endif.

Regards,

Sheethal