Use
The SAPforms interface allows you to call any BAPI using an electronic form. As is the case with the workflow container, you can define a binding between fields in the electronic form (form controls) and the BAPI parameters.
You can also call function modules that are not BAPIs. In order to do so, however, the process type Remote Function Call Supported must be specified in the administration data of the function modules.
Prerequisites
BAPI Selection
You know the BAPI in the R/3 System that you want to call. You also know the obligatory parameters of this BAPI. If these parameters are not filled with data, the BAPI cannot be called. You can display the import and export parameters of a BAPI in the BAPI Browser (transaction
BAPI ).Create a Form and Process it with the SAPforms Designer
After you have
created the electronic form, you must prepare it for communication with the R/3 System. This is the task of the SAPforms Designer.Features
The electronic form is filled out and sent to the R/3 System. The BAPI parameters are filled with data from the form fields after you have logged on to the system. This method will be used here to create a new customer (synchronously).
In many applications, some of the parameters are not to be filled from the inputs in the form fields, for example, because the BAPI requires input data that would only confuse the person filling out the form. In this case, the data can be filled in the background.
In the
CALLBAPI.VBP model, which is stored in the ...\SAPforms\Samples directory, this function is carried out by the CUSTOMER.TXT file ( ...\SAPforms\Forms). The file must be in the same directory as the compiled EXE file for this purpose. Example: Create customer master record