Purpose
The form interface allows you to load data from the R/3 System into a form in a desktop office application and return them from the application to the R/3 System after the form has been processed. The desktop office application must support this interface (see the method
has_form_interface).Prerequisites
You must create the instance document for document management before you can use the interface.
Process flow
1. Declare an instance for the central object of the Office Integration with reference to the interface i_oi_form:
DATA form TYPE REF TO i_oi_form.
2. Use the method
get_form_interface on the document instance for document management to create the instance for the form interface.3. Use the methods of the form interface:
Methods of the form interface
Method |
Function |
set_data |
Passes the data from the R/3 System to the desktop application. |
get_data |
Transfers the contents of the form in the desktop application to the R/3 System. |
add_field |
Adds a form field. |
delete_fields |
Deletes a form field in the desktop application. |
disconnect_fields |
Terminates the connection between the form field and the R/3 System. |
get_form_fields |
Reads the form fields from the desktop application. |
protect |
Controls whether the document can accept input. |
set_modus |
Changes the display mode. |
Remember that you should include
error handling after each method call.Any parameters not contained in the individual method descriptions are listed under
Generic Parameters.