Entering content frameProcedure documentation Defining and Generating a Binding: Workflow Locate the document in its SAP Library structure

Prerequisites

You have created a form with Microsoft Visual Basic.

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

You have started the SAPforms Designer. The form controls are shown in the table displayed in the bottom screen area. The container definition of the workflow or the output is displayed in the top screen area.

Procedure

Defining and Generating a Binding

You must now assign the individual elements of the container structure to the fields in the current SAPforms form. This assignment is stored as part of the SAPforms form and is evaluated at runtime to transfer data from the form to the SAP System.

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

  3. Using Drag&Drop assign the parameters that you want to fill with the SAPforms 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 General tab of the SAPforms Options dialog box is displayed.

  7. Select Insert initialization code in Load()- method and Button to trigger the insert action and choose OK.
  8. Caution

    This is only recommended the first time you generate your SAPforms form and if the SAPforms form does not already have the corresponding buttons. Otherwise, you receive an error when compiling the SAPforms form because the declarations and event procedures are contained twice in the source text. You must remove the duplicate source code from the SAPform form by hand.

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

Result

The creation of the SAPforms form is now complete. You can now start it in Microsoft Visual Basic by choosing Run or compile it in an EXE file.

Note

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

Note

If you want to process a work item with the SAPforms form using the Submit control, you must insert the following line in the load event of the Microsoft Visual Basic source text code.

SAPformsSubmit1.SAPform.Init Me, Command

Leaving content frame