Designing an Electronic Form for Use as an IDoc 

Purpose

You want to use an electronic form to call a BAPI. This is necessary, for example, if the user does not have access to SAPGUI. As the user has no technical know-how at all (and perhaps do not even know that they have called an R/3 System), a potential error message should not go back to the user, as would be the case with direct calling of a BAPI.

The use of IDocs would be suitable here as a recipient can be entered. In contrast to direct calling, it is then the recipient (for example an administrator) who has to correct the error.

This scenario is just one example of how IDocs can be used in conjunction with SAPforms. Naturally, the entire functionality of the IDoc interface can be leveraged with electronic forms.

In order to use IDocs, an online connection to the R/3 System is required.

Process Flow

In the process described here, it is assumed that you are using Visual Basic. This also applies to the individual sections in this chapter. However, you can also design forms with MS Outlook .

To call a BAPI from an electronic form using an IDoc, you must carry out the following steps:

In R/3:

Generating an IDoc

Defining a Partner Profile and Port

In Visual Basic:

Designing forms with Visual Basic

In the SAPforms Designer:

Maintaining Plug-Ins and Opening a Structure: IDoc

Defining and Generating a Binding: IDoc

Result

Once your form has been designed and processed by the SAP Forms Designer, you can make the form accessible to the end users.