cancel
Showing results for 
Search instead for 
Did you mean: 

Modifying an existing form in SAP B1

former_member637595
Participant
0 Kudos

Hi everyone,

Is there any way to modify an existing form in SAP B1? If so can any one describe the complete procedure of doing that?Will highly appreciate it.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Its more advisable to do it in the Menu Event rather than the Form_Load event and its got to be done in the Before_Action = False.

In Menu Event,

paste this...

If pVal.BeforeAction = False Then

Dim objNewItem As SAPbouiCOM.Item

objItem = objForm.Items.Item("51")

objNewItem = objForm.Items.Add("cbSQ", SAPbouiCOM.BoFormItemTypes.it_CHECK_BOX)

objNewItem.Left = objItem.Left + objItem.Width + 10

objNewItem.Top = objItem.Top

objNewItem.Width = objItem.Width

objNewItem.Height = objItem.Height

objNewItem.FromPane = "5"

objNewItem.ToPane = "6"

objCheckBox = objForm.Items.Item("cbSQ").Specific

objCheckBox.Caption = "Sales Quotation"

objNewItem.Visible = False

objCheckBox = objForm.Items.Item("cbSQ").Specific

objCheckBox.DataBind.SetBound(True, "", "01")

Endif

The above is a small snippet for the addition of a checkbox.

Hope this helps.

Satish.

Answers (1)

Answers (1)

Former Member
0 Kudos

HI

Catch the Form_load event of that particular form in before action false and place your control relative to some other control.

Or you can fine one sample under SDK samples(SystemFormManipultaion)

Hope it helps

Regards

Vishnu