Show TOC

Creating a Form with the Default Create FeatureLocate this document in the navigation structure

Use

Default Create (also known as Create on Demand) is a UIBB feature that enables you to automatically create node instances when you are creating subnodes. For example, if you want to create a TEXT node as a subnode of the ROOT node, the ROOT node is automatically created when you select the Default Create option. Previously, you would have had to create the ROOT node manually before creating the TEXT subnode.

Prerequisites

You know how to create a Web Dynpro application and an application business object.

Procedure

Previously, if you wanted to create an instance of the child node, you would have had to create an instance of the parent node first, then create an instance of the child node. By using the Default Create feature, you can create an instance of the child node without having to create the previous node instances.

Creating and Configuring a FORM UIBB

  1. On the Component Configuration screen, choose New and select Main Page.

  2. To create a form UIBB for the Main page, on the Overview Page Schema tab, choose the UIBB pushbutton and select Add Form Component.

  3. The system adds another UIBB row to the table with predefined entries for the selected component in the Component and Window Name columns. Enter any required configuration name in the Configuration Name column. The form component is FPM_FORM_UIBB.

  4. Save the configuration.

  5. Choose the Configure UIBB button.

  6. To create the configuration for your UIBB, in the Editor for the Web Dynpro ABAP Component Configuration screen, choose New

  7. In the Create Configuration dialog box, enter any required description and confirm your entry.

  8. In the Select Package dialog box, enter your required package and confirm your entry.

  9. In the Edit Feeder Class dialog box, enter the /BOFU/CL_FBI_GUIBB_FORM feeder class and choose the Edit Parameters button.

    • Business Object: Name of the business object (BO) to which you have referred; for example, /BOFU/DEMO_SALES_ORDER

    • Node: Name of the node; for example, ROOT

    • Select the Create On Demand checkbox.

      Note

      Select this checkbox only in the parent node configuration.

Add Elements

  1. On the Component Configuration screen, on the form UIBB Schema tab, choose the Element pushbutton and select Add Group.

  2. In the Group Title column, enter a suitable title for the group.

  3. Choose the Child Element button and select Add Elements to Group.

  4. In the Edit Group dialog box, select the elements and choose OK

  5. Save the UIBB configuration.

Creating a Form UIBB for the child Node

Follow the same steps as mentioned in the section Creating and Configuring a FORM UIBB.