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.

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.

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.

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.

Pages: 1 2
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.
Comment by farhan — June 25, 2009 @ 5:51 am