Techskills


May 9, 2009

SAP CRM — Create a Custom BOL for WEB-IC

Filed under: SAP, SAP CRM, WEB-IC, WEB-UI — Tags: , , , , , , , — kumar @ 5:12 am

BOLBusiness Object Layer.

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.

bol-01

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.

bol-02

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.

bol-03

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.

bol-04

Add a Component Set Definition. See the follow screen shot.

bol-05

Now assign the Component definition to the component set definition. See the following screen shot.

bol-06

Now the BOL component is assigned to the Component Set definition. You can assign  More than one BOL component to the component set.

5 Comments »

  1. That is a very good example.
    Thank you very much.

    Comment by Musti — July 15, 2009 @ 8:39 am

  2. Its very good example to create Custom BOL for Web-IC

    Thank you very much

    Comment by Chakri — August 30, 2009 @ 4:15 pm

  3. Really a very good example , can you quote some e.g. some scenario where you had to create a BOL model

    Comment by Sujoy — September 7, 2009 @ 8:39 am

  4. Nice one which helps a lot to create new Custom Component..

    Comment by RAFI — December 29, 2009 @ 3:41 am

  5. Hi Kumar,
    The article is great. Great worka dn effort I really appriciate it.
    I am wondering that how a transaction can be done. I need to create a BOL for a transaction (from ERP) in CRM. Can you please provide me soem idea that how it should be done. SHould a BOL be created for transaction or ….?
    Any kind of help would be great. I need to start the work ASAP and your help/feed back would a be great help.
    thanks

    Comment by hansen — January 21, 2010 @ 2:16 pm

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress