cancel
Showing results for 
Search instead for 
Did you mean: 

Custom component for search view and result view

Former Member
0 Kudos

Hi Experts,

I have a requirement to create a custom component for search view and result view.

To have BP num, Name and zip code in search view,

and result view should bring Role, Name and contact details (selection is based on ship to party postal code)

First I went ahead with adding model node using BUilHeader as BOL entity and in attributes added BP num, Name and Postal code in Search view as well as custom controller and result view also had attributes from BuilHeader.

After adding required code in searchview.htm, in view configuration, when I tried to drag and drop fields it was throwing exceptions.

Exception Class CX_CRM_UNSUPPORTED_OBJECT - Object BuilHeader is not (yet) supported

Method: CL_CRM_GENIL_OBJ_MODEL=>IF_GENIL_OBJ_MODEL~GET_DQUERY_AVAIL_ATTR_OPTIONS

So I went ahead with using value nodes for search and result views and also for custom controller.

This time fields are not seen in configuration.

Can you pls guide me to complete this object.

Kindly help, Highly rewarded!!!

Regards,

Lakshmi

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Lakshmi,

Based on your postings it looks like that you were able to resolve the problem including that you were able to create a new BOL object in the system with its implementation as well. I am having a same problem/issue and was wondering that would it be possible for you to share the knowledge that how you implemented the BOL?

Any help in this matter would be highly appreciated.

regards,

Hasnain

Former Member
0 Kudos

Hi Hasnain,

I was using BUILHEADER as BOL entity for model node, and for value nodes individual attributes I placed with data elements selected from BUT000, BUT100, BUT050 etc.

I am still not able to resolve my issue.

For custom BOL , there is a Blog available,

http://blogs.moovar.com/sap/?s=sap+crm

Regards,

Lakshmi

Former Member
0 Kudos

Hi Lakshmi,

After adding the BOL Nodes/Value nodes to the view. Edit the HTML page and place the following code. Which will enable the configuration.



  <%
  data: lv_xml   TYPE string.
  lv_xml = controller->CONFIGURATION_DESCR->GET_CONFIG_DATA( ).
    %>
    <chtmlb:config xml  = "<%= lv_xml %>"
                   mode = "RUNTIME" />

Node: After changing the HTML go back to SESSION_MANAGER transaction and then come back to view through BSP_WD_CMPWB. Then you will be able to see the Configuration tab.

If you have already placed and if you did not get the value node fields after you changed from BOL to value nodes. Delete the BOL Node and value node. Try adding again. If you need a grid to have the value node attributes use the following code after the above code:



<chtmlb:configGrid columnSize = "30"
                       rowSize    = "2" >
    </chtmlb:configGrid>

Regards,

Karthik