In this recipe, we will see how we can create an application based on the OIF Floorplan. We will create the application configuration, then the IDR and the component configuration.
We will use the Web Dynpro component and application used in the Integrating Adobe forms in Web Dynpro recipe in Chapter 14, Web Dynpro for ABAP. However, we need to make certain changes in the component and its application in order for them to be used in the FPM design.
First, on the Properties tab of the created application, we will assign the FPM_OIF_COMPONENT
component in the Component field and the FPM_WINDOW
component in the Interface View field.
Next, at the component level, a change is also required. On the Implemented Interfaces tab, we will add the IF_FPM_UI_BUILDING_BLOCK
component.
Then, click on the Reimplement button in the Action column. The Implementation State column should show a green signal. A message will appear saying that the interface was successfully implemented.
This adds a number of methods (related to the Floorplan design) to the component controller. Each method is called at a particular instance during the execution of the application. Each method serves a particular purpose and we can write coding within them in order to serve our requirement.
For creating an FPM OIF application, proceed as follows:
SE80
. In the left-hand pane, choose the Web Dynpro Component option in the list box and enter FPM_OIF_COMPONENT
in the field provided. Then press Enter.zst8_adobe_form
, and from the context menu that appears, choose the option Create/Change Configuration.ZST8_MY_OIF_DEMO
) and click the Create button.ZST8_MY_OIF_CONFIG
and ZST8_MY_IDR_CONFIG
in the fields provided.$TMP
). Press the OK button.ZST8_ADOBE_FORM
). Also, enter ZST8_WEB_DYNPRO
in the View field, the respective window containing the view that we like to display in the subview at the execution of the application.We created an application configuration based on OIF Floorplan. It comprised of the IDR configuration in which we specified the application title. We also created the component configuration of the component FPM_OIF_COMPONENT and within the view and subview we assigned the window (and view) that has been created earlier by us. You may add further subviews to the application. The views displayed within the subviews may be in different Web Dynpro components.
On the left-hand side of the component configuration, click the Add button and select the Initial Screen option. You may then specify the component and view to be used as an initial screen. The Initial Screen window is displayed before the OIF application is displayed.
Similarly, we may add a confirmation screen as well. The confirmation screen is displayed at the end of the execution of the OIF application.
In addition, we need to make sure that the Implemented Interfaces tab on the used components have the interface IF_FPM_UI_BUILDING_BLOCK implemented, otherwise the error occurs as shown in the following screenshot:
18.223.170.223