
Maintaining Plug-Ins and Opening a Structure: IDoc
Prerequisites
You have created a form in Microsoft Visual Basic and have launched the
SAPforms Designer as an add-in and are in the main screen. The form controls are shown in the table displayed in the bottom screen area. 
The procedure described below is the same if you are using the
Submit Control or the stand-alone version of the SAPforms Designer.
Procedure
Maintain Plug-Ins
The Options dialog box is displayed.
Enter
SAPforms Data Plug-In for IDoc in the SAPData Plug-In.
The value in the SAPforms Plug-In box is set by default according to the form development environment you are using. If you are using the stand-alone version of the SAPforms Designer, you must also maintain this plug-in.
SAPforms Transmit Plug-In for RFC in the SAP Transmit Plug-In.
Opening a Structure
A dialog box is then displayed in which you can choose whether you want to retrieve an IDoc description from the SAP System using RFC (From R/3) or import it from a local file (From File).
You can only import the description from a local file if you have already exported it from the SAP System.

Accessing the local file is the faster option. For more information, see
Generating an IDoc.When you select this the top control is divided in two. You can now display an instance of your IDoc structure in the right-hand control.
Result
The segment description of the IDoc is exported from the SAP System and displayed in the top area of the main SAPforms Designer.