Skip to Content
0
Former Member
Oct 26, 2012 at 09:14 AM

Create check box in SAP Standard Form and Store value in Database

63 Views

Hi,

I have created the one check box through Coding for SAP Standard form.

Using following Coding


Dim oitm As SAPbouiCOM.Item Dim oLbl As SAPbouiCOM.StaticText Dim oTxt As SAPbouiCOM.EditText Dim oLink As SAPbouiCOM.LinkedButton Dim ochkbox As SAPbouiCOM.CheckBox

oitm = frmProductionOrder.Items.Add("chk_subcon", SAPbouiCOM.BoFormItemTypes.it_CHECK_BOX) oitm.Width = 500 oitm.Height = frmProductionOrder.Items.Item("20").Height oitm.Top = frmProductionOrder.Items.Item("20").Top oitm.Left = frmProductionOrder.Items.Item("20").Left + 126 ochkbox = oitm.Specific ochkbox.DataBind.SetBound(True, "OWOR", "U_subcon") 'ochkbox.Visible = True ochkbox.ValOff = "N" ochkbox.ValOn = "Y"

In form Add Mode , I have checked the Check Box but it not stored into Database .

but when i can update the Record that time Stored into Database .

Regards,

K Sakthivel