Skip to Content
0
Former Member
Sep 25, 2008 at 12:35 PM

Mandatory Fields & Transaction Notifications

162 Views

Hi,

I've been reading various other threads about stopping the Form ADD process if a field is empty on the form - hence making the user enter data.

I have read various examples none of which make sense to me, if anyon has any full subroutine examples I would appreciate it.

Going to search the rest of the forums........

Private Sub oApplication_FormDataEvent(ByRef BusinessObjectInfo As SAPbouiCOM.BusinessObjectInfo, ByRef BubbleEvent As Boolean) Handles oApp.FormDataEvent
        If BusinessObjectInfo.FormTypeEx = "149" And BusinessObjectInfo.BeforeAction = True And BusinessObjectInfo.EventType = SAPbouiCOM.BoEventTypes.et_FORM_DATA_ADD Then
            Try
                Dim oform As SAPbouiCOM.Form
                oform = oApp.Forms.GetForm("149", 1)
              
                '***************************
                '
                'add code to make certain fields mandatory
                '
                '***************************
            Catch ex As Exception
                MsgBox(ex.Message)
            End Try
        End If