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 Within Table Control At Selection Screen

Former Member
0 Likes
906

Hello, there.

In my selection screen (dialog) I'm using a table control which is based on an internal table.

In that internal table I have a simple Yes/No field (declared as type XNULL for example).

The problem is that I want it to be displayed as checkbox on the selection screen's table control and not as a simple string with size = 1 like it is..

I hope it's clear and understood ...

Thanks in advance,

Rebeka

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
868

Rebeka,

Its very simple,

In that field of table control just drag & drop the checkbox.

In Screen modules ,

loop at itab.

If Field = 'YES'.

Checkbox = 'X'.

else .

clear checkbox.

endif.

endloop.

Regards,

TAlwinder

7 REPLIES 7
Read only

Former Member
0 Likes
869

Rebeka,

Its very simple,

In that field of table control just drag & drop the checkbox.

In Screen modules ,

loop at itab.

If Field = 'YES'.

Checkbox = 'X'.

else .

clear checkbox.

endif.

endloop.

Regards,

TAlwinder

Read only

0 Likes
868

Hey, again.

What do you mean by "drag & drop the checkbox" ? From where ??

Thanks in advance,

Rebeka

Read only

0 Likes
868

In screen painter (se51),

where you are making your table control ,there is a option for checkbox,just drag that checkbox into your field of table control,

your problem will be resolved

Read only

0 Likes
868

Thanks for the help, but ....

It's not possible to drug into an existing field cause the table control is based on an internal table.

I can add it near the spesific field, that's all.

Read only

0 Likes
868

Hi Rebeka,

Is it possible to use Table control on selection screens? Are you sure?

thanks

Dan

Read only

0 Likes
868

i think just declare the field in the internal table which you want to diplay as check box as checkbox

Read only

Former Member
0 Likes
868

just declare the field in the internal table as check box

i think this will solve ur problem

field type checkbox.