Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Customizing System Forms??

Hi all,

I want to customizing System Form like Sales Order. I want to add some more fields to the sales order while opening the Sales Order Form. Its very slow. What are the standard procedure i have to follow for adding new fields to the system forms.

I have a critical situation.let me know the solution for this.Any one help me!!!!



Former Member

Suresh, what exactly are you trying to add?

This will add a new button to the Sales Order form:

Shared Sub SBO_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent
	If pVal.EventType <> SAPbouiCOM.BoEventTypes.et_FORM_ACTIVATE And Not pVal.BeforeAction And pVal.ActionSuccess And pVal.EventType <> SAPbouiCOM.BoEventTypes.et_FORM_UNLOAD Then
			Dim frm As SAPbouiCOM.IForm = SBO_Application.Forms.Item(FormUID)
			Select Case pVal.FormType
	                	Case 139 'Sales Order form type
					Dim NewButtonItem As SAPbouiCOM.Item = frm.Items.Add(UID_NewBPButton_BP, SAPbouiCOM.BoFormItemTypes.it_BUTTON)
					NewButtonItem.Height = 10
					NewButtonItem.Width = 30
					NewButtonItem.Top = 100
					NewButtonItem.Left = 100
					Dim NewButton As SAPbouiCOM.Button = NewButtonItem.Specific
					NewButton.Caption = "Push me!"
			End Select
		Catch ex As Exception
	        End Try
	end if
End Sub

If you want to add a data field to be used regularly, I'd probably add a user-defined field, then SBO will handle all of the data and form manipulation.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question