Adding Fields to the User Interface

Use

You can add fields to the user interface (UI) of a Web Dynpro application that is based on the integration of the Floorplan Manager and the Business Object Processing Framework (BOPF).

Prerequisites

You have experience using data definitions in the ABAP Dictionary, have some experience with business objects based on BOPF (transaction /BOBF/CUST_UI), and have experience configuring Web Dynpro ABAP user interfaces with the Floorplan Manager for Web Dynpro ABAP (FPM).

Procedure

To add fields, you have to perform two main activities:

  1. Add the fields to the business object

  2. Modify the GUIBB configuration to include the fields

Adding Fields to the Business Object

  1. Call transaction /BOBF/CUST_UI and select the business object that you want to change.

  2. Then select the node structure that you want to enhance.

  3. Double-click the Extension Include to display the ABAP Dictionary maintenance for this structure.

  4. Then choose Start of the navigation pathGoto Next navigation step Append StructureEnd of the navigation path to display the ABAP Dictionary maintenance for the append structure.

  5. In the dialog box, enter the name of the append structure. Then click Continue.

  6. In the Dictionary maintenance for this structure, provide a short description of the structure. Enter the components (in this case, the fields) that you want to add and specify their type. Then choose Activate to activate the changed structure.

Modifying the GUIBB Configuration

  1. Start the configuration editor in administrator mode.

    You use the administrator mode of the Web Dynpro Explorer to make modification-free changes to a user interface with the configuration editor for Floorplan Manager. To start the configuration editor in administrator mode, perform the steps described in the Procedure of Administrator Mode in the SAP Library for SAP NetWeaver on the SAP Help Portal at http://help.sap.com/nw702Information published on SAP site. Go to section Application Help and open the documentation for Function-Oriented View. Go to Start of the navigation pathApplication Platform by Key Capability Next navigation step ABAP Technology Next navigation step UI Technology Next navigation step Web UI Technology Next navigation step Floorplan Manager for Web Dynpro ABAP  Next navigation step Fitting Web Dynpro to Your Needs  Next navigation step Administrator ModeEnd of the navigation path.

  2. The Component Configuration screen is now displayed. Choose Configure UIBB for Form UIBB (1).

  3. On the next screen, choose the group to which the new field is to be added. Choose Configure Group.

  4. The Configure Group dialog box is displayed. Here you can select which of the available fields shall be displayed in the GUIBB at runtime. The list of Available Fields should include the previously added component. Select this field and choose Add Fields. You can change the display sequence for the field you just added. Then choose OK.

  5. The new field is now displayed on the Component Configuration screen. Here you can select the field to change the properties of the Attributes Element. Choose Save to save your changes to the UIBB. The next time the GUIBB is loaded, the new fields will be displayed.

Result

You have successfully added the new field to your Web Dynpro application. Since the new field is part of a BO node extension include, the data that was entered is saved and retrieved successfully without any additional changes or modifications to the BO itself. The FBI-based Web Dynpro application itself also handles the data access without you needing to make any changes or modifications to the BO or the UI.

This approach to adapt the Web Dynpro screens applies not only to adding fields, but also to other screen changes, for example, renaming labels and changing the sequence of fields and groups.

More Information

For more information about the BOPF enhancement framework, see SAP Note 1457235 Information published on SAP site.

For more information , see SAP Library for SAP NetWeaver on the SAP Help Portal at http://help.sap.com/nw702Information published on SAP site. Go to section Application Help and open the documentation for Function-Oriented View. Go to Start of the navigation pathApplication Platform by Key Capability Next navigation step ABAP Technology Next navigation step UI Technology Next navigation step Web UI Technology Next navigation step Floorplan Manager for Web Dynpro ABAP End of the navigation path.