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” %>
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.