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

Create checkbox !

Former Member
0 Likes
395

Hi all,

I created a form, now i want to add the checkbox. how can i do?

(Plz write code details)

Tks !

3 REPLIES 3
Read only

Former Member
0 Likes
371

It depends where you want the checkbox.

If it is in an ALV you need to modify the field catalog to set the checkbox attribute.

If it is using a write statement then..

data: gv_box type c.

write gv_box as checkbox.

or on a parameter screen.

parameters: p_box as checkbox.

Darren

Read only

0 Likes
371

Hi,

I use:

 '// Add Check box "Man"

'oCheckbox = oForm.Items.Add("Incentive",

SAPbouiCOM.BoFormItemTypes.it_CHECK_BOX)

 'oCheckbox.Caption = "Man"

'oCheckbox.Checked = True

'oItem.Left = 100

'oItem.Top = 150

''// Add Check box "Woman"

 'oCheckbox =

oForm.Items.Add("Incentive",SAPbouiCOM.BoFormItemTypes.it_CHECK_BOX)

'oCheckbox.Caption = "Woman"

'oCheckbox.Checked = True

But it not display on form

Read only

Mohamed_Mukhtar
Active Contributor
0 Likes
371

hi,

Create a box with BOX command 

BOX WIDTH '10' MM HEIGHT '10' MM FRAME 10 TW

check box can be acheived by drawing a box with minimum height and width.

Thanks & Regards