Header Ads

Create a Z BOL Object


Here we will be creating a Z BOL object. In the second part we will use this Z BOL object in our Web component.

Step 1: Create a Ztable with the following fields. You can also structure the table as desired by you but the only prerequisite is - The user-defined database table should contain a key field with the GUID name and the GUID data type.






Step 2: Go to the customizing path as shown in the screenshot.




Step 3: Create an object name. Specify our table name as the "attrib structure" and "Mand. flds at create".

 




   
Step 4: Define Search object definition. This is very important because using this, we will fill the data in the BOL object.

 


Step 5: Go to tcode SM30. Open the view as shown in the screenshot.


 


Step 6: Click New entries and do the mapping between the object and the table  which we have created. Basically maintain the entries as shown in the screenshot.


 


Step 7: Simple GenIL objects are assigned to the SO2 component set automatically. Open tcode GENIL_BOL_BROWSER. Enter Component Set SO2 and Click on Execute. Click the button "New Root Object" as shown in the screenshot. In the left hand side of the screen you will see the BOL object which we have created. Double click it.



Step 8:  Click the button "Create Object". The GUID will be automatically created. Enter the other field details and choose the SAVE button to save the entries.





Step 9: In Tcode Se16 you will be able to see the following entries.



Step 10: Open tcode GENIL_BOL_BROWSER. Click the button "New Search" as shown in the screenshot.
 

Step 11: Enter object ID and click the button find.


Step 12: If the other entries get populated as shown in the screenshot means our BOL object is working fine.


  Next we will be using this in our web component. That I will be writing in my next blog. 
Powered by Blogger.