Important Transactions while working with BOPF:
- BOB: Business Object Builder.
- BOBX: Business Object Builder eXpert.
- BOBT: Business Object Builder – Test.
Simple step by step example for creating Business Object in BOPF.
- Start T-code: BOB (Business Object Builder). Click on “Custom Business Object”. A wizard opens as below proceed with continue.
- Provide with a Prefix and Name and continue.
- Propose a constant interface name and continue.
- Propose a Persistent structure name, the Root node name is auto filled with ROOT.
The Persistent Structure defines the attributes that are stored in the database.
The Transient Structure defines the attributes calculated at runtime.
Both structures are implemented as regular DDIC structures and are created in the DDIC transaction SE11. You can simply double click the structure to proceed with the structure creation.
I have created the following structure.
- Proceed with Continue in the wizard. The Combined Structure, Table type and the Database Table is automatically proposed.
- Proceed with Continue and complete the wizard. You will be prompted for package, which I have assigned to Local Object.
- The BO is created as below, by default a Query is created SELECT_ALL:
- We are now creating ITEM node. Right click ROOT and create a Sub node.
A wizard opens proceed with the ITEM as node name.
- Provide a Persistent structure which is created in se11 or create it through Forward navigation.
The following Item structure is created.
- Continuing we get the Combined Structure, Table type and Database Table.
Proceed with continue and complete the wizard. We now have the ITEM node created.
Testing: Let us now proceed with Testing of the BO:
- Open T-code BOBT (Business Object Builder – Test). Provide with your Business Object name.
- Select the ROOT and click Add node instance. Provide with your input data.
- Select the record and click “Execute Association” button and click on “ITEM”.
- You can add two item level records.
- Save your records by clicking the save button.