Adding Nodes

This option allows you to perform the following tasks: create a node; embed a dependent object; delete a node; filter a node; sort a node; edit persistent and transient structure details. NOTE: Click the respective cell for editing.

Context

To define a structure for a business object, you need to add one or several nodes to the business object. The Business Object Processing Framework creates the Root node as the default node for a business object. You can add all the other nodes as a sub-node under the Root node.

Prerequisite

You have already created a business object.

Procedure

  1. In the Project Explorer view, choose a business object.
  2. In the context menu, choose Open.

    The business object Overview page appears.

  3. Choose the Nodes page.
  4. Choose a parent node in the nodes table.
  5. Choose New.

    The New Node wizard appears.

  6. Enter the following details in the respective fields:
    1. Name: Enter a name for the node.
    2. Description: This is an optional field. Enter a short description of the purpose of the node.
    3. Persistent structure: This is a mandatory field. The Persistent structure contains Persistent attributes of a node. You can either use an existing Persistent structure or create a new one. The wizard auto-generates the Persistent structure name when you enter a node name. Based on your requirements, you can carry out any one of the following actions:
      To Create a New Persistent structure To Use an Existing Persistent structure

      Either retain the auto-generated name or enter a new name.

      Choose Browse.
    4. Transient structure: This is an optional field. Transient structure contains Transient attributes of a node. You can use either an existing Transient structure or create a new Transient structure. Based on your requirement, you can carry out any one of the following actions:
      To Create a New Transient structure To Use an Existing Transient structure

      Either choose Suggest Name or enter a new name.

      Choose Browse.
  7. Choose a required functionality from the following options:
    • Create Enabled: Select this option to create root node instances. You can use the associations page to define relationship between node instances.
    • Update Enabled: Select this option to update existing node instances.
    • Delete Enabled: Select this option to delete existing node instances.
    • Text Node: Select this option to enable a text node and store text information. This node contains a field called LANGUAGE_CODE that is part of the association. This node enables a user to decide the language in which the user interface texts and messages must appear.
  8. In the Implementation Details section, provide the following details:
    • Node Default Class: If you have defined a business logic to display default values for specific fields of a table then you need to provide the node default class to display the default values.
    • Define Own Data Class: Choose this option if you have a database and want to apply BOPF to an existing class. Provide the required table details.
  9. Choose Finish.
    1. If the transient structure or the persistent structure already exists, a warning appears. To reuse the structure, choose Yes; otherwise choose No and enter a different name.
    2. The Business Object Processing Framework adds the Select ALL query and the Select By Elements query for the node.
    3. The Composition association is also added to the source node of the Association.
  10. Save the node.

    The node appears in the nodes table. To create a new Persistent or a Transient structure, position the mouse pointer on the respective entry for these columns and press Ctrl + click.

  11. To check for correctness of business object, choose (Check ABAP Development Object) from the toolbar.
  12. To activate the business object, choose Edit > Activate ABAP Development Object.
    1. To edit the details of a Persistent or Transient structure in the nodes table, double-click the respective entry in the table.
    2. After the business object is activated, the combined structure, table type, and database tables are generated.