‎2008 Mar 11 10:12 AM
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
‎2008 Mar 11 10:30 AM
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
‎2008 Mar 11 10:30 AM
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
‎2008 Mar 11 1:34 PM
Hey, again.
What do you mean by "drag & drop the checkbox" ? From where ??
Thanks in advance,
Rebeka
‎2008 Mar 11 1:54 PM
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
‎2008 Mar 11 2:44 PM
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.
‎2008 Mar 11 3:22 PM
Hi Rebeka,
Is it possible to use Table control on selection screens? Are you sure?
thanks
Dan
‎2008 Mar 12 1:15 PM
i think just declare the field in the internal table which you want to diplay as check box as checkbox
‎2008 Mar 11 1:53 PM
just declare the field in the internal table as check box
i think this will solve ur problem
field type checkbox.