Code Inserted by the SAPforms Designer 
If you have decided to insert code when the form is generated, the
SAPforms Designer generates the following code:
Dim objSAPForm As Object
This line declares a global
SAPForm object which acts as an anchor to all other SAPforms objects during the lifetime of the form.
Private Sub Form_Load()
Set objSAPForm = CreateObject("SAPformsFVB4.SAPForm")
objForm.Init Me, Command
End Sub
This object is instantiated by the corresponding class in the Load event of the form and is then initialized.
The Init method receives Me, representing a Visual Basic form object, and Command representing the command line parameters. These parameters are filled when the application is started.
The Init method creates one entry in the Controls list of the SAPForm object from each control in the Visual Basic form object. It also analyzes the Tag property of the form and reconstructs the
SAPData object and the SAPXmit object from its contents. After the Init call, these objects can be accessed via the SAPData and SAPXmit property of the SAPForm object.The Command parameter is used to decide whether the form is invoked to process a work item or to start a workflow. If a work item is to be executed, the form must be started indirectly by the
SAPforms Helper, which itself is activated when an R3F mail attachment is started, for example.In some cases, it can be more advantageous to replace the code generated in the Load event with your own code, especially if the logic around the Command parameter is not suitable for your purposes.

Private Sub cmdStart_Click()
' Submit via selected Transmit object
objSAPForm.Start
End Sub
This code is generated in the "Click" event of the Send button. It activates the Start method of the SAPForm object which fills the elements of the SAPData object from the form controls, writes data to an appropriate file, and sends the file to the R/3 System. To do so, it uses the SAPXmit object.

The generated code does not contain any