SAP CRM Web IC make view Configurable

In this post let us see how to make the ordinary view in to configurable.

If we create a view in the web ic the view will look like as follows.

config-view-01

You have only two tabs on the right hand side of the screen. This way you cannot do a drag and drop the field in the screen. You need to make the screen configurable. There is no check box or any radio button that you can click and make them config. You have to go in to the HTML code and add some code that will make them config.

Double click on the fview .htm file. That will take you to a html editor. See the following screen shot.

config-view-02

Replace the above code with the following code.

<%@page language=”abap” %>
<%@extension name=”htmlb” prefix=”htmlb” %>
<%@extension name=”xhtmlb” prefix=”xhtmlb” %>
<%@extension name=”crm_bsp_ic” prefix=”crmic” %>
<%@extension name=”bsp” prefix=”bsp” %>
<%@extension name=”chtmlb” prefix=”chtmlb” %>
<%@extension name=”thtmlb” prefix=”thtmlb” %>
<%
  DATA:
  lv_xml    TYPE string.
  lv_xml = controller->configuration_descr->get_config_data( ).
%>

<chtmlb:overviewFormConfig xml  = “<%= lv_xml %>”
               mode = “RUNTIME” />

Now activate this html and double click on the view name. You should able to see different tab with name as configuration. see the screen shot below.

 config-view-03

 Now click on the new configuration and click on the show avaliable fields that will show all the fields avaliable to add to the screen. See the screen shot.

config-view-04

3 thoughts on “SAP CRM Web IC make view Configurable

  1. Thanks for the wonderful blog,
    I am trying to add fields while changing the configuration, but I am not able to add fields to the screen as “+” sign is greyed out throughout the process, please advice if I need to do some other settings/role selection, right now I am working with Default parameters.

    • You will have to select the field which you want to place on view and then click + sign. Just clicking + sign will not work!!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s