‎2010 Feb 24 11:24 AM
Hi all,
how to create a checkbox as import parameter in function module,
thnx in advance
‎2010 Feb 24 11:27 AM
Hello,
Just create a parameter of type C of length 1. If it contains a value then it is selected else not.
Regards,
Sachin
‎2010 Feb 24 11:27 AM
hi...
Define a parameter of Char1. if it is "X" then check box is checked or unchecked.
regards,
Lokeswari.
‎2010 Feb 24 11:31 AM
Hi all,
thnx for reply.
But my custom fm's initial screen will have the checkbox wil be exctly look like the checkbox as we seen in report
then how to du it
‎2010 Feb 24 11:35 AM
Hello,
Please be a bit clear on your requirement. What exactly are you trying to attain ? You will call the FM in some program , so when you call the FM you want a checkbox be displayed like a screen ?
Sachin
‎2010 Feb 24 11:37 AM
How can a FM have a initial screen? If you are meaning SE37 sxecution of the FM, i dont think you can have visible checkboxes as in report selection screens.
‎2010 Feb 24 11:40 AM
Thnx vikrant,
my test fm initial screen will have report like check boxes
‎2010 Feb 24 12:45 PM
?? Function modules don't have screens...they do have import, export parameters.
If you look at how "checkboxes" are stored in db tables, you'll see that the previous replies are precisely correct. A check box is a char1 field...it is on when 'X' (ABAP_TRUE) and off when blank (initial)....you would call your FM with an import field of type char1 set to 'X' or set to space, and handle accordingly in your FM code.
If you have a checkbox on a selection screen, then the value of that parameter is either 'X' or space, depending upon whether or not the user checked the box.
‎2010 Feb 24 3:24 PM
Rajdeep,
FM test screens are only for developers; end users never see it. Why do you care whether it shows a check box or a field with a width of 1 char? Instead of checking a box, you would type X in it.
What do you REALLY want to accomplish?