Show TOC Start of Content Area

Function documentation Interactive Form Prefilling  Locate the document in its SAP Library structure

Use

The Guided Procedures (GP) framework enables you to define prefilling for the interactive forms exposed as callable objects.

This function can be used in a variety of real-life scenarios. For example, the form can be prefilled with payroll data, and then sent to a customer, as the first phase of a more complex business process.

Prerequisites

To use a service for interactive form prefilling, you must expose it as a callable object. For more information about the relevant callable object type, see Creating Callable Objects.

Features

The interactive forms prefilling within the GP framework it is made possible by exposing both the service that provides the data and the interactive form as callable objects. The prefilling function itself is implemented by mapping the service parameters to the parameters of the form itself.

You can retrieve the data for prefilling using a synchronous service, such as:

·        RFC-enabled function module

·        BAPI

·        CAF application service, and so on

Activities

Defining the prefilling is part of the procedure for exposing an interactive form as a callable object.

To define prefilling:

...

       1.      Open the design time for the relevant callable object.

       2.      Open the Input tab page.

       3.      Choose the link Define Prefilling in the upper left-hand corner of the tab page.

       4.      Follow the procedure to define the prefilling:

                            a.      Choose Select a prefilling service. The available callable objects are displayed. Select the required object, and choose Select.

                            b.      Choose Define input for service <prefilling service name>. In this step you define a mapping between the input parameters for the selected service and the output parameters of the interactive form.

You can use this feature if some of the form fields have already been prefilled, and you want to send the relevant values to the service.

The parameters of the prefilling service are displayed in the left-hand table, and those of the interactive form are displayed in the right-hand table. To create a mapping, select a service parameter and then the interactive form parameter that you want to map. When you have created all required mappings, choose Done.

                            c.      Choose Define prefilling for form <callable object name>. In this step you define mapping between the input parameters of the form, and the output parameters of the prefilling service.

You use this feature to insert data from a back-end system in the interactive form.

To define the mapping, select an interactive form parameter, and then the service parameter that you want to map. When you have created all the required mappings, choose Done.

       5.      To complete the procedure, choose Save.

 

 

End of Content Area