Usually we no need to build a BOL object. We will end up changing the existing BOL. I came across a situation that I need a screen for a component and create a screen for add/ modify and search the Z table.
In this post let us see how we create a custom BOL object for a Z table. Once this bol is create we need to add this bol in the custom view and show that on the screen. For now let us see how we can create a custom BOL.
Let us create a z table(ZTEST_TEST_TBL) with name , age and sex. See the following screen shot for the table.
Let us use this table and create a bol for this table to add,modify and search data.
OK. Now we need to define two tables. One for the data elements that we are going to use in the BOL and another for the hierarchy of the data element that we are going to use in the BOL object. Once these table are defined then we need to mention the class module that we are going to use for the BOL object. All these information are configured in the spro for this bol object. See the following screen shot.
In the above configuration if you enter the Basic setting you will see all the BOL object defined here. OK for our custom let us define the bol object as ZTBOL. See the following screen.
Now select the component Definition(the first one) and click on the new entries. Let us define the BOL component and add the details. See the following screen.
Add a Component Set Definition. See the follow screen shot.
Now assign the Component definition to the component set definition. See the following screen shot.
Now the BOL component is assigned to the Component Set definition. You can assign More than one BOL component to the component set.