Vous êtes sur la page 1sur 12

BOPF Application Framework: BOPFCreating a Business Object

Posted by Mayur B 22-Apr-2014


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.


1. Start T-code: BOB (Business Object Builder). Click on Custom
Business Object. A wizard opens as below proceed with

continue.
2. Provide with a Prefix and Name and continue.

Generated by Jive on 2016-09-21Z


1

BOPF Application Framework: BOPF- Creating a Business Object

3. Propose a constant interface name and continue.

Generated by Jive on 2016-09-21Z


2

BOPF Application Framework: BOPF- Creating a Business Object

4. 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.

Generated by Jive on 2016-09-21Z


3

BOPF Application Framework: BOPF- Creating a Business Object

I have created the following structure.

Generated by Jive on 2016-09-21Z


4

BOPF Application Framework: BOPF- Creating a Business Object

5. Proceed with Continue in the wizard. The Combined Structure, Table type and the Database Table is
automatically proposed.

Generated by Jive on 2016-09-21Z


5

BOPF Application Framework: BOPF- Creating a Business Object

6. Proceed with Continue and complete the wizard. You will be prompted for package, which I have
assigned to Local Object.

Generated by Jive on 2016-09-21Z


6

BOPF Application Framework: BOPF- Creating a Business Object

7. The BO is created as below, by default a Query is created SELECT_ALL:

8. We are now creating ITEM node. Right click ROOT and create a Sub node.

Generated by Jive on 2016-09-21Z


7

BOPF Application Framework: BOPF- Creating a Business Object

A wizard opens proceed with the ITEM as node name.

9. Provide a Persistent structure which is created in se11 or create it through Forward navigation.

Generated by Jive on 2016-09-21Z


8

BOPF Application Framework: BOPF- Creating a Business Object

The following Item structure is created.

10.Continuing we get the Combined Structure, Table type and Database Table.

Generated by Jive on 2016-09-21Z


9

BOPF Application Framework: BOPF- Creating a Business Object

Proceed with continue and complete the wizard. We now have the ITEM node created.

Testing: Let us now proceed with Testing of the BO:


1. Open T-code BOBT (Business Object Builder Test). Provide with your Business Object
name.

Generated by Jive on 2016-09-21Z


10

BOPF Application Framework: BOPF- Creating a Business Object

2. Select the ROOT and click Add node instance. Provide with your input data.

3. Select the record and click Execute Association button and click on ITEM.

4. You can add two item level records.

5. Save your records by clicking the save button.

Thank you.
4168 Views Tags: bopf, bopf_creating_bo

Mayur B in response to Venu P on page 11


09-Dec-2014 07:36
Hi Venu,
http://scn.sap.com/docs/DOC-60410
Regards,
Mayur

Generated by Jive on 2016-09-21Z


11

BOPF Application Framework: BOPF- Creating a Business Object

Venu P in response to Mayur B on page 12


08-Dec-2014 12:26
Hi Mayur,
Can you please give me the link please.

Regards,
Venugopal
Mayur B in response to Venu P on page 12
05-Dec-2014 18:40
Hi Venu,
Sorry for my late reply. I have added a document for creating a delegate node and consuming in FPM, hope it
might help you. .
Regards,
Mayur
Venu P
17-Nov-2014 14:29
Hello Mayur,
thank you for posting the document on bopf, its very useful for beginners .Please post the document on other
topics what you said in the above document.

thank you

Generated by Jive on 2016-09-21Z


12

Vous aimerez peut-être aussi