Defining and Generating a Binding: Workflow 

Prerequisites

You have created a form with Visual Basic.

You have either defined a single-step task to be executed as a form and copied this task to your workflow definition or have defined a single or multistep task that is to be started by a form. You have maintained the plug-ins for the interface and the communication method.

You have launched the SAPforms Designer and are in the main window. The form controls are shown in the table displayed in the bottom control. The top control displays the container definition for your task as a tree structure.

Procedure

Defining and Generating a Binding

You must first assign the individual in the container structure to the fields in the current Visual Basic form. This assignment is stored as part of the form and is evaluated at runtime to transfer data from the form to the R/3 System.

  1. Expand the container structure.
  2. The elements are displayed.

  3. Assign (using "drag and drop") the parameter that you want to fill with the form to the form controls.
  4. You can release the binding by selecting the required row in the table and choosing Binding ® Release.

  5. Choose File ® Generate.
  6. The Generate tab page on the SAPforms Options dialog box is then displayed.

  7. Select Insert initialization code in Load()- method and button to trigger the insert action.
  8. Choose OK.
  9. This is only recommended the first time you generate your form and if the form does not already have these buttons. Otherwise, you might receive an error when compiling the form because some of the declarations and event procedures are contained twice in the form. You must remove duplicate code from the form by hand.

  10. Choose File ® Exit to exit the SAPforms Designer.

Result

Your form is now complete. You can now start it in Visual Basic by choosing Run or compile an EXE file.

The procedure is the same if you are using the stand-alone version of the SAPforms Designer.

If you want to process a work item with the form using the Submit control, you must insert the following line in the load event of the VB code.

SAPformsSubmit1.SAPform.Init Me, Command