<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Techskills</title>
	
	<link>http://blogs.moovar.com/sap</link>
	<description />
	<lastBuildDate>Fri, 11 Jun 2010 17:08:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/Moovar-Techskills" /><feedburner:info uri="moovar-techskills" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>Moovar-Techskills</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>Happy New Year – 2010</title>
		<link>http://feedproxy.google.com/~r/Moovar-Techskills/~3/IYch_2GrNKo/</link>
		<comments>http://blogs.moovar.com/sap/happy-new-year-2010/#comments</comments>
		<pubDate>Fri, 01 Jan 2010 18:39:46 +0000</pubDate>
		<dc:creator>kumar</dc:creator>
				<category><![CDATA[Family and Friends]]></category>
		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://blogs.moovar.com/sap/?p=662</guid>
		<description><![CDATA[I know this it is been long time since I posted, but this year went by so fast.
Any how wish you a Happy New Year to all. Hope this year brings all the wishs you have and let me bring you some new posts.
]]></description>
			<content:encoded><![CDATA[<p>I know this it is been long time since I posted, but this year went by so fast.</p>
<p>Any how wish you a Happy New Year to all. Hope this year brings all the wishs you have and let me bring you some new posts.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/AHIGE_HsTCmZijaOADLhLAzzhhc/0/da"><img src="http://feedads.g.doubleclick.net/~a/AHIGE_HsTCmZijaOADLhLAzzhhc/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/AHIGE_HsTCmZijaOADLhLAzzhhc/1/da"><img src="http://feedads.g.doubleclick.net/~a/AHIGE_HsTCmZijaOADLhLAzzhhc/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Moovar-Techskills/~4/IYch_2GrNKo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blogs.moovar.com/sap/happy-new-year-2010/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://blogs.moovar.com/sap/happy-new-year-2010/</feedburner:origLink></item>
		<item>
		<title>Learn SAP — Batch Data Communication BDC</title>
		<link>http://feedproxy.google.com/~r/Moovar-Techskills/~3/OgooUEj-1ps/</link>
		<comments>http://blogs.moovar.com/sap/learn-sap-batch-data-communication-bdc/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 02:45:28 +0000</pubDate>
		<dc:creator>kumar</dc:creator>
				<category><![CDATA[Learn SAP]]></category>
		<category><![CDATA[SAP]]></category>
		<category><![CDATA[SAP CRM]]></category>
		<category><![CDATA[learn]]></category>
		<category><![CDATA[SAP Background jobs]]></category>
		<category><![CDATA[SAP BAsic]]></category>
		<category><![CDATA[Sap Batch Jobs]]></category>
		<category><![CDATA[SAP BDC]]></category>

		<guid isPermaLink="false">http://blogs.moovar.com/sap/?p=643</guid>
		<description><![CDATA[In this post let us see how to use BDC on a program or function module to input from a text file or excel in batch mode. If you have more data to input for transaction then you need to create a background job to batch process to load the data. Manually entering takes lot of time. That [...]]]></description>
			<content:encoded><![CDATA[<p>In this post let us see how to use BDC on a program or function module to input from a text file or excel in batch mode. If you have more data to input for transaction then you need to create a background job to batch process to load the data. Manually entering takes lot of time. That is where the BDC plays its role.  I am just adding this with a example so that it will be much easier for a beginner to get a idea.<br />
<span id="more-643"></span><br />
Use the t-code /nSHDB. See the following screen shot.</p>
<p><a href="http://blogs.moovar.com/sap/wp-content/uploads/2009/10/bdc-001.jpg"><img class="alignnone size-full wp-image-644" title="bdc-001" src="http://blogs.moovar.com/sap/wp-content/uploads/2009/10/bdc-001.jpg" alt="bdc-001" width="765" height="370" /></a></p>
<p>The above screen shows all the recording until now.</p>
<p>In the BDC process first you have to record the session. This collects all the t-code , input screens and variables etc,. for creating a program. Once the recording is completed you need to create a program or a  function moudle from the recorded session.  Then you can go inside the program and change the code to what ever way you want. This is a very easy way of creating a batch input mode.  Let us see one example how this works.</p>
<p>Let us assume the we have 10 BP records and we use BP t-code that we need to give input from a text file.<br />
<script type="text/javascript"><!--
google_ad_client = "pub-2944144309223940";
/* 728x90, created 5/31/08 */
google_ad_slot = "4571329625";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />
Recording:</p>
<p>Click on new recording on the above screen.  A pop up asks the details. See the following screen shot.</p>
<p><a href="http://blogs.moovar.com/sap/wp-content/uploads/2009/10/bdc-002.jpg"><img class="alignnone size-full wp-image-645" title="bdc-002" src="http://blogs.moovar.com/sap/wp-content/uploads/2009/10/bdc-002.jpg" alt="bdc-002" width="595" height="512" /></a></p>
<p>I selected the BP transaction.  Now click on the Start recording. It takes me to the Bp screen. I click on the person to create a person. See the following screen shots.</p>
<p><a href="http://blogs.moovar.com/sap/wp-content/uploads/2009/10/bdc-003.jpg"><img class="alignnone size-full wp-image-646" title="bdc-003" src="http://blogs.moovar.com/sap/wp-content/uploads/2009/10/bdc-003.jpg" alt="bdc-003" width="833" height="430" /></a></p>
<p>I just enter the first name and last name and click save. See the following screen shots. The control takes me back to the recording.<br />
<script type="text/javascript"><!--
google_ad_client = "pub-2944144309223940";
/* 728x90, created 5/31/08 */
google_ad_slot = "4571329625";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>

<p><a href="http://feedads.g.doubleclick.net/~a/URyu5MKpLJQmiI8CntTaKV4YFhc/0/da"><img src="http://feedads.g.doubleclick.net/~a/URyu5MKpLJQmiI8CntTaKV4YFhc/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/URyu5MKpLJQmiI8CntTaKV4YFhc/1/da"><img src="http://feedads.g.doubleclick.net/~a/URyu5MKpLJQmiI8CntTaKV4YFhc/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Moovar-Techskills/~4/OgooUEj-1ps" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blogs.moovar.com/sap/learn-sap-batch-data-communication-bdc/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://blogs.moovar.com/sap/learn-sap-batch-data-communication-bdc/</feedburner:origLink></item>
		<item>
		<title>SAP CRM — PPR Factsheet</title>
		<link>http://feedproxy.google.com/~r/Moovar-Techskills/~3/gwz5j0lbpww/</link>
		<comments>http://blogs.moovar.com/sap/sap-crm-ppr-factsheet/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 01:00:22 +0000</pubDate>
		<dc:creator>kumar</dc:creator>
				<category><![CDATA[Learn SAP]]></category>
		<category><![CDATA[SAP]]></category>
		<category><![CDATA[SAP CRM]]></category>
		<category><![CDATA[WEB-IC]]></category>
		<category><![CDATA[WEB-UI]]></category>
		<category><![CDATA[Factsheet]]></category>
		<category><![CDATA[SAP CRM WEB-IC]]></category>
		<category><![CDATA[sap factsheet]]></category>
		<category><![CDATA[SAP How To]]></category>
		<category><![CDATA[SAP WEB-IC]]></category>
		<category><![CDATA[sap-crm-web-ui]]></category>
		<category><![CDATA[WEB-IC Component]]></category>

		<guid isPermaLink="false">http://blogs.moovar.com/sap/?p=563</guid>
		<description><![CDATA[This post is from my friend Juan Pedro Vargas Fernández. He did some sample for factsheet in his project and he is very kind to let me post his documentation about the factsheet on this blog. So I thank him for that.
You can follow him at @ :  http://twitter.com/juanpedrov
 
His documentation goes as follows.
Finally let me tell you that [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blogs.moovar.com/sap/wp-content/uploads/2009/07/ppr_factsheet_image008.jpg"></a><a href="http://blogs.moovar.com/sap/wp-content/uploads/2009/07/ppr_factsheet_image010.jpg"></a><a href="http://blogs.moovar.com/sap/wp-content/uploads/2009/07/ppr_factsheet_image012.jpg"></a><a href="http://blogs.moovar.com/sap/wp-content/uploads/2009/07/ppr_factsheet_image024.jpg"></a>This post is from my friend Juan Pedro Vargas Fernández. He did some sample for factsheet in his project and he is very kind to let me post his documentation about the factsheet on this blog. So I thank him for that.</p>
<p>You can follow him at @ :  <a href="http://twitter.com/juanpedrov">http://twitter.com/<span class="label screenname">juanpedrov</span></a></p>
<p> </p>
<p>His documentation goes as follows.</p>
<p>Finally let me tell you that in part got based in the explanation of this article: <a href="https://www.sdn.sap.com/irj/scn/wiki?path=/display/CRM/How+to+display+a+z-table+in+an+assignment+block">https://www.sdn.sap.com/irj/scn/wiki?path=/display/CRM/How+to+display+a+z-table+in+an+assignment+block</a></p>
<p>That article explain how to display a z table without using all the BOL concept that I&#8217;d like to understand. I tried to used a standard BOL (PRPAdvSearch) but it didn&#8217;t work. Maybe I should try creating my own BOL, maybe next time.</p>
<p><span id="more-563"></span></p>
<p>Overview: This document pretends to show how to add a new view at the BP_ACCOUNT factsheet. In particular, for this example, a table with the information of PPR (partner product rage) for a particular business partners (the one at the factsheet).</p>
<ul>
<li>1) Create z structure and table with the fields needed to show at the factsheet</li>
</ul>
<p><a href="http://blogs.moovar.com/sap/wp-content/uploads/2009/07/ppr_factsheet_image008.jpg"><img class="alignnone size-full wp-image-571" title="ppr_factsheet_image008" src="http://blogs.moovar.com/sap/wp-content/uploads/2009/07/ppr_factsheet_image008.jpg" alt="ppr_factsheet_image008" width="563" height="69" /></a></p>
<p><a href="http://blogs.moovar.com/sap/wp-content/uploads/2009/07/ppr_factsheet_image010.jpg"><img class="alignnone size-full wp-image-572" title="ppr_factsheet_image010" src="http://blogs.moovar.com/sap/wp-content/uploads/2009/07/ppr_factsheet_image010.jpg" alt="ppr_factsheet_image010" width="563" height="115" /></a></p>
<ul>
<li>2) Create a new component</li>
</ul>
<p><a href="http://blogs.moovar.com/sap/wp-content/uploads/2009/07/ppr_factsheet_image012.jpg"><img class="alignnone size-full wp-image-573" title="ppr_factsheet_image012" src="http://blogs.moovar.com/sap/wp-content/uploads/2009/07/ppr_factsheet_image012.jpg" alt="ppr_factsheet_image012" width="563" height="184" /></a></p>
<ul>
<li>3) Add BP_APPL model at Runtime Repository Editor</li>
</ul>
<p><a href="http://blogs.moovar.com/sap/wp-content/uploads/2009/07/ppr_factsheet_image014.jpg"><img class="alignnone size-full wp-image-574" title="ppr_factsheet_image014" src="http://blogs.moovar.com/sap/wp-content/uploads/2009/07/ppr_factsheet_image014.jpg" alt="ppr_factsheet_image014" width="563" height="185" /></a></p>
<ul><!--adsense--></p>
<li>4) Create a view with:</li>
<li>a. BuilHeader model node.</li>
<li>b. Value node.</li>
<li>c. Model attributes: for this example only the BP number.</li>
<li>d. Value attributes: select the fields wanted to show, indicate the z structure created at step 1.</li>
<li>e. Select table type &#8220;Table view&#8221; with the value node.</li>
</ul>
<p><a href="http://blogs.moovar.com/sap/wp-content/uploads/2009/07/ppr_factsheet_image016.jpg"><img class="alignnone size-full wp-image-575" title="ppr_factsheet_image016" src="http://blogs.moovar.com/sap/wp-content/uploads/2009/07/ppr_factsheet_image016.jpg" alt="ppr_factsheet_image016" width="563" height="300" /></a></p>
<p><!--adsense--></p>

<p><a href="http://feedads.g.doubleclick.net/~a/TqL_eZpG839E2kGwi3KAGcT7LqA/0/da"><img src="http://feedads.g.doubleclick.net/~a/TqL_eZpG839E2kGwi3KAGcT7LqA/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/TqL_eZpG839E2kGwi3KAGcT7LqA/1/da"><img src="http://feedads.g.doubleclick.net/~a/TqL_eZpG839E2kGwi3KAGcT7LqA/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Moovar-Techskills/~4/gwz5j0lbpww" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blogs.moovar.com/sap/sap-crm-ppr-factsheet/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://blogs.moovar.com/sap/sap-crm-ppr-factsheet/</feedburner:origLink></item>
		<item>
		<title>Learn SAP — Parallel Processing in ABAP programing</title>
		<link>http://feedproxy.google.com/~r/Moovar-Techskills/~3/zZP2G2ndRE4/</link>
		<comments>http://blogs.moovar.com/sap/learn-sap-parallel-processing-in-abap-programing/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 03:36:26 +0000</pubDate>
		<dc:creator>kumar</dc:creator>
				<category><![CDATA[Learn SAP]]></category>
		<category><![CDATA[SAP]]></category>
		<category><![CDATA[Function Moudle starting new task]]></category>
		<category><![CDATA[parallel processing]]></category>
		<category><![CDATA[Parallel processing New Task]]></category>
		<category><![CDATA[SAP Function Module Call New Task]]></category>
		<category><![CDATA[SAP Multi threading]]></category>
		<category><![CDATA[SAP Parallel Processing]]></category>
		<category><![CDATA[SAP starting new task]]></category>

		<guid isPermaLink="false">http://blogs.moovar.com/sap/?p=494</guid>
		<description><![CDATA[In this post let us see how we can write a parallel processing report. I explained here and the code is at end of the post.
 The usual way of programming is serial processing. The program executes one line at a time and if you call a function that will wait until the control returns from [...]]]></description>
			<content:encoded><![CDATA[<p>In this post let us see how we can write a parallel processing report. I explained here and the code is at end of the post.</p>
<p> The usual way of programming is serial processing. The program executes one line at a time and if you call a function that will wait until the control returns from the function and executes the rest of the code. In some case you might be calling the same function again and again for different set of master data. You know that there wont be any conflict between the data and you would like to execute the same function multiple times with different set of data. We need to do this in parallel processing this way the process will be completed much faster with multiple processes in different servers. Let us see how we can achieve this with an example.</p>
<p><span id="more-494"></span></p>
<p> Let us assume that we have 1 million BP and we need to check some condition and set a value Y or N according to that condition and this code is in a Z function which get input of 1000 BP at a time. Let write a program which can execute the same function multiple time until the process is ready.</p>
<p>I created a report in SE38 with name as  Z_TEST_PARALLEL .</p>
<p> First we need to get the number of max resources available and number of resources free using the following sap standard function. Only initialize only once and next times use the SPBT_GET_CURR_RESOURCE_INFO function to get the available resources.<br />
   SAP Function &#8216;SPBT_INITIALIZE&#8217;</p>
<p><!--adsense--></p>
<p>    This will give you the information that we need to do the parallel processing. Now loop thru the data and gather the information that you want to process let us say like 1000 bp at a time and execute the z function with 1000 bp at a time. once you reached the max number of resource you need to wait until some resource is available and if the resource is available then continue and wait until all the process is completed. <br />
You have to call the function not using the regular call but using the new task call. See the following<br />
CALL FUNCTION &#8216;Z***(your function name)&#8217;<br />
      STARTING NEW TASK taskname<br />
      DESTINATION IN GROUP srv_grp<br />
      PERFORMING return_back_this_task<br />
      ON END OF TASK<br />
      EXPORTING<br />
        &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..<br />
      TABLES<br />
        &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.<br />
      EXCEPTIONS<br />
        resource_failure      = 1<br />
        system_failure        = 2<br />
        communication_failure = 3<br />
        OTHERS                = 4.<br />
 </p>
<p>                                    The above function is called in the new task which process in a separate session. You call the above function multiple times with 1000 records at a time and wait for the process to be completed. On each task is completed the return_back_this_task perform is executed and the result will be received from that task. Once all the results are collected the process will be completed and the control will return back to the main program. See the following sample code for parallel processing.</p>
<p><!--adsense--></p>

<p><a href="http://feedads.g.doubleclick.net/~a/p7USMyuK3O_NGfFnEA-k3_kSaL0/0/da"><img src="http://feedads.g.doubleclick.net/~a/p7USMyuK3O_NGfFnEA-k3_kSaL0/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/p7USMyuK3O_NGfFnEA-k3_kSaL0/1/da"><img src="http://feedads.g.doubleclick.net/~a/p7USMyuK3O_NGfFnEA-k3_kSaL0/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Moovar-Techskills/~4/zZP2G2ndRE4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blogs.moovar.com/sap/learn-sap-parallel-processing-in-abap-programing/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		<feedburner:origLink>http://blogs.moovar.com/sap/learn-sap-parallel-processing-in-abap-programing/</feedburner:origLink></item>
		<item>
		<title>SAP CRM — WEB IC Search view and Result view Navigation</title>
		<link>http://feedproxy.google.com/~r/Moovar-Techskills/~3/d0kgkjo46PQ/</link>
		<comments>http://blogs.moovar.com/sap/sap-crm-web-ic-search-view-and-result-view-navigation/#comments</comments>
		<pubDate>Wed, 03 Jun 2009 01:41:56 +0000</pubDate>
		<dc:creator>kumar</dc:creator>
				<category><![CDATA[Learn SAP]]></category>
		<category><![CDATA[SAP]]></category>
		<category><![CDATA[SAP CRM]]></category>
		<category><![CDATA[WEB-IC]]></category>
		<category><![CDATA[WEB-UI]]></category>
		<category><![CDATA[CRM Search Navigation]]></category>
		<category><![CDATA[CRM Search View]]></category>
		<category><![CDATA[SAP CRM BOL]]></category>
		<category><![CDATA[SAP CRM VIEW]]></category>
		<category><![CDATA[SAP CRM WEB-IC]]></category>
		<category><![CDATA[sap-crm-web-ui]]></category>
		<category><![CDATA[WEB-IC Component]]></category>
		<category><![CDATA[Web-ic Component Navigation]]></category>
		<category><![CDATA[web-ic view navigation]]></category>

		<guid isPermaLink="false">http://blogs.moovar.com/sap/?p=533</guid>
		<description><![CDATA[Let us see how we can navigate between search and result view.
To learn how to create search and result view Click Here.
Once you know created the search and result view now we need to create a search button. I added the following code in the srviewset.htm.

 &#60;%@page language=&#8221;abap&#8221; %&#62;
&#60;%@extension name=&#8221;htmlb&#8221; prefix=&#8221;htmlb&#8221; %&#62;
&#60;%@extension name=&#8221;xhtmlb&#8221; prefix=&#8221;xhtmlb&#8221; %&#62;
&#60;%@extension name=&#8221;thtmlb&#8221; prefix=&#8221;thtmlb&#8221; %&#62;
&#60;%@extension name=&#8221;crm_bsp_ic&#8221; prefix=&#8221;crmic&#8221; %&#62;
&#60;%@extension name=&#8221;bsp&#8221; prefix=&#8221;bsp&#8221; %&#62;
&#60;%@extension name=&#8221;chtmlb&#8221; prefix=&#8221;chtmlb&#8221; %&#62;
&#60;%
***  Determine if search is to be collapsed
DATA lv_show_fields TYPE string.
&#8220;  lv_show_fields = &#8217;X&#8217;.
&#8220;  IF lv_show_fields EQ abap_false.
lv_show_fields = &#8216;true&#8217;.
&#8220;  ELSE. 
&#8220; lv_show_fields = &#8217;false&#8217;.
&#8220;  ENDIF.
%&#62;
&#60;chtmlb:pageType type=&#8220;SEARCH&#8221; &#62;
&#60;thtmlb:searchFrame showSearchFields   = &#8220;&#60;%= lv_show_fields %&#62;&#8221;
onShowSearchFields = &#8220;TOGGLESEARCHDISPLAY&#8221;
onHideSearchFields = &#8220;TOGGLESEARCHDISPLAY&#8221; &#62;
&#60;thtmlb:searchCriteriaFrame&#62;
&#60;%
&#8220;  IF lv_show_fields EQ abap_false.
%&#62;
&#60;thtmlb:searchArea&#62;
&#60;thtmlb:searchTagArea&#62;
&#60;bsp:call comp_id = &#8220;&#60;%= controller-&#62;GET_VIEWAREA_CONTENT_ID( &#8217;SV&#8217; ) %&#62;&#8221;
url     = &#8220;&#60;%= controller-&#62;GET_VIEWAREA_CONTENT_URL( &#8217;SV&#8217; ) %&#62;&#8221; /&#62;
&#60;/thtmlb:searchTagArea&#62;
&#60;thtmlb:searchButtonsArea&#62;
&#60;thtmlb:button id = &#8220;SearchBtn&#8221;
design  = &#8220;EMPHASIZED&#8221;
onClick = &#8220;SEARCH&#8221;
text [...]]]></description>
			<content:encoded><![CDATA[<p>Let us see how we can navigate between search and result view.</p>
<p>To learn how to create search and result view <strong><a title="Create Search and Result view" href="http://blogs.moovar.com/sap/sap-crm-web-ic-create-a-new-search-view-and-result-view/" target="_blank">Click Here</a>.</strong></p>
<p>Once you know created the search and result view now we need to create a search button. I added the following code in the srviewset.htm.<br />
<span id="more-533"></span><br />
<!--StartFragment --> <span><span class="L3S54">&lt;%@page language=&#8221;abap&#8221; %&gt;</span><br />
<span class="L3S54">&lt;%@extension name=&#8221;htmlb&#8221; prefix=&#8221;htmlb&#8221; %&gt;</span><br />
<span class="L3S54">&lt;%@extension name=&#8221;xhtmlb&#8221; prefix=&#8221;xhtmlb&#8221; %&gt;</span><br />
<span class="L3S54">&lt;%@extension name=&#8221;thtmlb&#8221; prefix=&#8221;thtmlb&#8221; %&gt;</span><br />
<span class="L3S54">&lt;%@extension name=&#8221;crm_bsp_ic&#8221; prefix=&#8221;crmic&#8221; %&gt;</span><br />
<span class="L3S54">&lt;%@extension name=&#8221;bsp&#8221; prefix=&#8221;bsp&#8221; %&gt;</span><br />
<span class="L3S54">&lt;%@extension name=&#8221;chtmlb&#8221; prefix=&#8221;chtmlb&#8221; %&gt;</span><br />
<span class="L3S53">&lt;%</span><br />
<span class="L1S31">***  Determine if search is to be collapsed</span><br />
<span class="L1S52">DATA</span> lv_show_fields <span class="L1S52">TYPE</span> string.<br />
<span class="L1S31">&#8220;  lv_show_fields = &#8217;X&#8217;.</span><br />
<span class="L1S31">&#8220;  IF lv_show_fields EQ abap_false.</span><br />
lv_show_fields = <span class="L1S33">&#8216;true&#8217;</span>.<br />
<span class="L1S31">&#8220;  ELSE. </span><br />
<span class="L1S31">&#8220; lv_show_fields = &#8217;false&#8217;.</span><br />
<span class="L1S31">&#8220;  ENDIF.</span><br />
<span class="L3S53">%&gt;</span><br />
&lt;chtmlb:pageType <span class="L3S51">type</span>=<span class="L3S33">&#8220;SEARCH&#8221;</span> &gt;<br />
&lt;thtmlb:searchFrame showSearchFields   = <span class="L3S33">&#8220;&lt;%= lv_show_fields %&gt;&#8221;</span><br />
onShowSearchFields = <span class="L3S33">&#8220;TOGGLESEARCHDISPLAY&#8221;</span><br />
onHideSearchFields = <span class="L3S33">&#8220;TOGGLESEARCHDISPLAY&#8221;</span> &gt;<br />
&lt;thtmlb:searchCriteriaFrame&gt;<br />
<span class="L3S53">&lt;%</span><br />
<span class="L1S31">&#8220;  IF lv_show_fields EQ abap_false.</span><br />
<span class="L3S53">%&gt;</span><br />
&lt;thtmlb:searchArea&gt;<br />
&lt;thtmlb:searchTagArea&gt;<br />
&lt;bsp:call comp_id = <span class="L3S33">&#8220;&lt;%= controller-&gt;GET_VIEWAREA_CONTENT_ID( &#8217;SV&#8217; ) %&gt;&#8221;</span><br />
url     = <span class="L3S33">&#8220;&lt;%= controller-&gt;GET_VIEWAREA_CONTENT_URL( &#8217;SV&#8217; ) %&gt;&#8221;</span> /&gt;<br />
&lt;/thtmlb:searchTagArea&gt;<br />
&lt;thtmlb:searchButtonsArea&gt;<br />
&lt;thtmlb:<span class="L3S50">button</span> <span class="L3S51">id</span> = <span class="L3S33">&#8220;SearchBtn&#8221;</span><br />
design  = <span class="L3S33">&#8220;EMPHASIZED&#8221;</span><br />
<span class="L3S51">onClick</span> = <span class="L3S33">&#8220;SEARCH&#8221;</span><br />
<span class="L3S51">text</span> = <span class="L3S33">&#8220;Search&#8221;</span><br />
tooltip = <span class="L3S33">&#8220;Search&#8221;</span> /&gt;<br />
&lt;thtmlb:<span class="L3S50">button</span> <span class="L3S51">id</span> = <span class="L3S33">&#8220;Clearbtn&#8221;</span><br />
<span class="L3S51">onClick</span> = <span class="L3S33">&#8220;CLEAR&#8221;</span><br />
<span class="L3S51">text</span> = <span class="L3S33">&#8220;Clear&#8221;</span><br />
tooltip = <span class="L3S33">&#8220;Clear&#8221;</span> /&gt;<br />
&lt;/thtmlb:searchButtonsArea&gt;<br />
&lt;/thtmlb:searchArea&gt;<br />
<span class="L3S53">&lt;%</span><br />
<span class="L1S31">&#8220;Endif.</span><br />
<span class="L3S53">%&gt;</span><br />
&lt;/thtmlb:searchCriteriaFrame&gt;<br />
&lt;thtmlb:searchResultFrame&gt;<br />
&lt;bsp:call comp_id = <span class="L3S33">&#8220;&lt;%= controller-&gt;GET_VIEWAREA_CONTENT_ID( &#8217;RV&#8217; ) %&gt;&#8221;</span><br />
url     = <span class="L3S33">&#8220;&lt;%= controller-&gt;GET_VIEWAREA_CONTENT_URL( &#8217;RV&#8217; ) %&gt;&#8221;</span> /&gt;<br />
&lt;/thtmlb:searchResultFrame&gt;<br />
&lt;/thtmlb:searchFrame&gt;<br />
&lt;/chtmlb:pageType&gt;</span></p>
<p>With the above html I added the search button on the viewset. The button code is placed in between the view.</p>
<p>See the following screen shot for the button.</p>
<p><a href="http://blogs.moovar.com/sap/wp-content/uploads/2009/06/srv_nvg_01.jpg"><img class="alignnone size-full wp-image-534" title="srv_nvg_01" src="http://blogs.moovar.com/sap/wp-content/uploads/2009/06/srv_nvg_01.jpg" alt="srv_nvg_01" width="806" height="359" /></a></p>
<p>Now we have the button. We need to add the search event on the viewset as well as in the search view. See the following screen shots for event creation.</p>
<p><a href="http://blogs.moovar.com/sap/wp-content/uploads/2009/06/srv_nvg_02.jpg"><img class="alignnone size-full wp-image-534" title="srv_nvg_02" src="http://blogs.moovar.com/sap/wp-content/uploads/2009/06/srv_nvg_02.jpg" alt="srv_nvg_02" /></a></p>
<p><a href="http://blogs.moovar.com/sap/wp-content/uploads/2009/06/srv_nvg_03.jpg"><img class="alignnone size-full wp-image-534" title="srv_nvg_03" src="http://blogs.moovar.com/sap/wp-content/uploads/2009/06/srv_nvg_03.jpg" alt="srv_nvg_03" /></a></p>
<p><a href="http://blogs.moovar.com/sap/wp-content/uploads/2009/06/srv_nvg_04.jpg"><img class="alignnone size-full wp-image-534" title="srv_nvg_04" src="http://blogs.moovar.com/sap/wp-content/uploads/2009/06/srv_nvg_04.jpg" alt="srv_nvg_04" /></a></p>
<p>Add the following code in the searchadv view on the event handler.</p>
<p><strong><em>METHOD eh_onsearch.<br />
DATA: query_service TYPE REF TO cl_crm_bol_dquery_service.<br />
DATA: result TYPE REF TO if_bol_bo_col.</em></strong></p>
<p><strong><em>query_service ?= me-&gt;typed_context-&gt;<!--StartFragment --></em></strong><strong><span>TestSearch</span></strong><em><strong>-&gt;collection_wrapper-&gt;get_current( ).<br />
result = query_service-&gt;get_query_result( ).</strong></em></p>
<p><strong><em>me-&gt;typed_context-&gt;testresult-&gt;collection_wrapper-&gt;clear( ).</em></strong></p>
<p><strong><em>me-&gt;typed_context-&gt;testresult-&gt;set_collection( result ).<br />
ENDMETHOD.</em></strong></p>
<p>Once the code is added  your component should trigger when ever you click on the search and get the result and show in the result view.</p>
<p>Now we need to add some code in the DO_HANDLE_EVENT method of the implementation class of srviewset view. In that method you are asking the event to be raised for the searchadv view, so that the code in the advsearch will be called. You can directly put the code in the viewset so you no need to do the above.</p>
<p>Add the following code in the DO_HANDLE_EVENT method of the ZL_ZSRCMP1_SRVIEWSET_IMPL.</p>
<p><!--StartFragment --> <span><span class="L1S52">METHOD</span> do_handle_event.<br />
<span class="L1S31">* Eventhandler dispatching</span><br />
<span class="L1S52">DATA</span>: lv_viewname <span class="L1S52">TYPE</span> string,<br />
lr_viewctrl <span class="L1S52">TYPE</span> <span class="L1S52">REF</span> <span class="L1S52">TO</span> cl_bsp_wd_view_controller.<br />
<span class="L1S52">CASE</span> htmlb_event_ex-&gt;event_server_name.</span></p>
<p><span class="L1S31">*     Added by wizard</span><br />
<span class="L1S31">**      WHEN &#8217;SEARCH&#8217;.                                        &#8221;#EC NOTEXT</span><br />
<span class="L1S31">*        EH_ONSEARCH( htmlb_event    = htmlb_event</span><br />
<span class="L1S31">*                    htmlb_event_ex = htmlb_event_ex ).</span></p>
<p><span class="L1S52">WHEN</span> <span class="L1S52">OTHERS</span>.<br />
lv_viewname = me-&gt;get_viewarea_content( <span class="L1S33">&#8216;SV&#8217;</span> ).       <span class="L1S31">&#8220;#EC NOTEXT</span><br />
<span class="L1S52">IF</span> lv_viewname <span class="L1S52">IS</span> <span class="L1S52">NOT</span> <span class="L1S52">INITIAL</span>.<br />
lr_viewctrl = me-&gt;get_subcontroller_by_viewname( lv_viewname ).<br />
<span class="L1S52">IF</span> lr_viewctrl <span class="L1S52">IS</span> <span class="L1S52">BOUND</span>.<br />
<span class="L1S52">TRY</span>.<br />
<span class="L1S52">CALL</span> <span class="L1S52">METHOD</span> lr_viewctrl-&gt;(<span class="L1S33">&#8216;DO_HANDLE_EVENT&#8217;</span>)<br />
<span class="L1S52">EXPORTING</span><br />
<span class="L1S52">event</span> = <span class="L1S52">event</span><br />
htmlb_event     = htmlb_event<br />
htmlb_event_ex  = htmlb_event_ex<br />
global_messages = global_messages<br />
RECEIVING<br />
global_event    = global_event.</p>
<p><span class="L1S52">CATCH</span> cx_sy_dyn_call_error.<br />
<span class="L1S52">RETURN</span>.<br />
<span class="L1S52">ENDTRY</span>.<br />
<span class="L1S52">ENDIF</span>.<br />
<span class="L1S52">ENDIF</span>.<br />
<span class="L1S52">ENDCASE</span>.</p>
<p><span class="L1S52">ENDMETHOD</span>.</p>
<p>Now your code is ready to execute had show the results. See the following screen shot.</p>
<p><a href="http://blogs.moovar.com/sap/wp-content/uploads/2009/06/srv_nvg_05.jpg"><img class="alignnone size-full wp-image-539" title="srv_nvg_05" src="http://blogs.moovar.com/sap/wp-content/uploads/2009/06/srv_nvg_05.jpg" alt="srv_nvg_05" width="721" height="461" /></a></p>
<p>Now you get the result in the result view. Let me know if you have any questions.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/X5TB9h5gt_JrHuiiidKle4BqWZU/0/da"><img src="http://feedads.g.doubleclick.net/~a/X5TB9h5gt_JrHuiiidKle4BqWZU/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/X5TB9h5gt_JrHuiiidKle4BqWZU/1/da"><img src="http://feedads.g.doubleclick.net/~a/X5TB9h5gt_JrHuiiidKle4BqWZU/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Moovar-Techskills/~4/d0kgkjo46PQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blogs.moovar.com/sap/sap-crm-web-ic-search-view-and-result-view-navigation/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		<feedburner:origLink>http://blogs.moovar.com/sap/sap-crm-web-ic-search-view-and-result-view-navigation/</feedburner:origLink></item>
		<item>
		<title>SAP CRM — Web-IC Component — Navigation between views</title>
		<link>http://feedproxy.google.com/~r/Moovar-Techskills/~3/Khr7vqYIX34/</link>
		<comments>http://blogs.moovar.com/sap/sap-crm-web-ic-component-navigation-between-views/#comments</comments>
		<pubDate>Fri, 15 May 2009 16:12:58 +0000</pubDate>
		<dc:creator>kumar</dc:creator>
				<category><![CDATA[SAP]]></category>
		<category><![CDATA[SAP CRM]]></category>
		<category><![CDATA[WEB-IC]]></category>
		<category><![CDATA[WEB-UI]]></category>
		<category><![CDATA[SAP CRM WEB-IC]]></category>
		<category><![CDATA[sap-crm-web-ui]]></category>
		<category><![CDATA[WEB-IC configuration]]></category>
		<category><![CDATA[WEB-IC Screen Configuration]]></category>
		<category><![CDATA[WEB-IC View]]></category>
		<category><![CDATA[WEB-IC View Configuration]]></category>
		<category><![CDATA[web-ic view navigation]]></category>

		<guid isPermaLink="false">http://blogs.moovar.com/sap/?p=497</guid>
		<description><![CDATA[In this post let us create two view and navigate between the views.
First create a veiw firstview in the component.  (to get more information on view creation Click Here).
Once the view is created then make the view as configurable and add all the fields in structure to the screen. (for more info Click Here).
Once you made [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blogs.moovar.com/sap/wp-content/uploads/2009/05/view-nav-13.jpg"></a>In this post let us create two view and navigate between the views.</p>
<p>First create a veiw firstview in the component.  (to get more information on view creation <strong><a href="http://blogs.moovar.com/sap/sap-crm-create-new-web-ic-component-using-bsp-wd-workbench-bsp_wd_cmpwb/" target="_blank">Click Here</a></strong>).</p>
<p>Once the view is created then make the view as configurable and add all the fields in structure to the screen. (for more info <strong><a title="Configurable view" href="http://blogs.moovar.com/sap/sap-crm-web-ic-make-view-configurable/" target="_blank">Click Here</a></strong>).</p>
<p>Once you made the view configurable then add the following code addition the the existing code.</p>
<p><!--StartFragment -->  <span>&lt;thtmlb:<span class="L3S50">button</span> <span class="L3S51">id</span>      = <span class="L3S33">&#8220;NextBtn&#8221;</span><br />
               design  = <span class="L3S33">&#8220;EMPHASIZED&#8221;</span><br />
               <span class="L3S51">onClick</span> = <span class="L3S33">&#8220;NEXT&#8221;</span><br />
               <span class="L3S51">text</span>    = <span class="L3S33">&#8220;Next&#8221;</span><br />
               tooltip = <span class="L3S33">&#8220;Second View&#8221;</span> /&gt;</span></p>
<p>This will create a button on the first view. See the following screen shot.<br />
<span id="more-497"></span><br />
<a href="http://blogs.moovar.com/sap/wp-content/uploads/2009/05/view-nav-01.jpg"><img class="alignnone size-full wp-image-499" title="view-nav-01" src="http://blogs.moovar.com/sap/wp-content/uploads/2009/05/view-nav-01.jpg" alt="view-nav-01" width="1061" height="381" /></a></p>
<p>Now we added the button to the HTML. The other steps that we need to do is add a event as we mentioned in this HTML and add the inbound and outbound plug.</p>
<p>First let us add the event for the first view.  The event name is NEXT that is what we mentioned in the OnClick html. See the following screen shot.<br />
<!--adsense--><br />
<a href="http://blogs.moovar.com/sap/wp-content/uploads/2009/05/view-nav-02.jpg"><img class="alignnone size-full wp-image-500" title="view-nav-02" src="http://blogs.moovar.com/sap/wp-content/uploads/2009/05/view-nav-02.jpg" alt="view-nav-02" width="647" height="295" /></a></p>
<p>On now the event is created.  SAP by default add EH_ON as prefix for the events.  So the event method is called as EH_ONCLICK. See the following screen shot.</p>
<p><a href="http://blogs.moovar.com/sap/wp-content/uploads/2009/05/view-nav-03.jpg"><img class="alignnone size-full wp-image-501" title="view-nav-03" src="http://blogs.moovar.com/sap/wp-content/uploads/2009/05/view-nav-03.jpg" alt="view-nav-03" width="339" height="102" /></a></p>
<p>Now let us create inbound plug and outbound plug.</p>
<p>   Inbound plug and outbound plug in a view is used to send the control to and from the view.  For example if we want to nagvigate from first view to second view then we need to use the outbound plug of firstview to the inbound plug of the second view that way the navigation know where to go and what plug to use.</p>
<p>Let us create a inbound plug as fromsecondview and a outbound plug as tosecondview.  Just right click and give the name that will create the inbound and outbound plugs. SAP by default put IP_ and OP_ inforunt of the name that you are defining for the plugs. See the following screen shots.</p>
<p><a href="http://blogs.moovar.com/sap/wp-content/uploads/2009/05/view-nav-04.jpg"><img class="alignnone size-full wp-image-502" title="view-nav-04" src="http://blogs.moovar.com/sap/wp-content/uploads/2009/05/view-nav-04.jpg" alt="view-nav-04" width="490" height="234" /></a></p>
<p><a href="http://blogs.moovar.com/sap/wp-content/uploads/2009/05/view-nav-05.jpg"><img class="alignnone size-full wp-image-503" title="view-nav-05" src="http://blogs.moovar.com/sap/wp-content/uploads/2009/05/view-nav-05.jpg" alt="view-nav-05" width="482" height="118" /></a></p>
<p><!--adsense--></p>

<p><a href="http://feedads.g.doubleclick.net/~a/q_7Lz9eEer3xIuFGKldLbD1lJ5Q/0/da"><img src="http://feedads.g.doubleclick.net/~a/q_7Lz9eEer3xIuFGKldLbD1lJ5Q/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/q_7Lz9eEer3xIuFGKldLbD1lJ5Q/1/da"><img src="http://feedads.g.doubleclick.net/~a/q_7Lz9eEer3xIuFGKldLbD1lJ5Q/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Moovar-Techskills/~4/Khr7vqYIX34" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blogs.moovar.com/sap/sap-crm-web-ic-component-navigation-between-views/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		<feedburner:origLink>http://blogs.moovar.com/sap/sap-crm-web-ic-component-navigation-between-views/</feedburner:origLink></item>
		<item>
		<title>SAP CRM — WEB IC Create a new search view and result view</title>
		<link>http://feedproxy.google.com/~r/Moovar-Techskills/~3/aOaPAt0kXwQ/</link>
		<comments>http://blogs.moovar.com/sap/sap-crm-web-ic-create-a-new-search-view-and-result-view/#comments</comments>
		<pubDate>Sun, 10 May 2009 01:14:53 +0000</pubDate>
		<dc:creator>kumar</dc:creator>
				<category><![CDATA[Learn SAP]]></category>
		<category><![CDATA[SAP]]></category>
		<category><![CDATA[SAP CCS]]></category>
		<category><![CDATA[SAP CRM]]></category>
		<category><![CDATA[WEB-IC]]></category>
		<category><![CDATA[WEB-UI]]></category>
		<category><![CDATA[CRM Search View]]></category>
		<category><![CDATA[SAP CRM Component]]></category>
		<category><![CDATA[SAP CRM VIEW]]></category>
		<category><![CDATA[SAP CRM WEB-IC]]></category>
		<category><![CDATA[sap-crm-web-ui]]></category>
		<category><![CDATA[VIEW SET]]></category>
		<category><![CDATA[WEB-IC Component]]></category>

		<guid isPermaLink="false">http://blogs.moovar.com/sap/?p=424</guid>
		<description><![CDATA[In this post let is see how to create a search and result view and link the view to the BOL object.
To learn about Custom BOL for a Z Table Click here.
Click Here to Go thru that post to understand how to create a New component and the new view.

Pre request. A new Component and a [...]]]></description>
			<content:encoded><![CDATA[<p>In this post let is see how to create a search and result view and link the view to the BOL object.</p>
<p>To learn about Custom BOL for a Z Table <strong><a title="How to Create Custom BOL Object" href="http://blogs.moovar.com/sap/sap-crm-create-a-custom-bol-for-web-ic/" target="_blank">Click here</a>.</strong></p>
<p><strong><a title="New Component and View" href="http://blogs.moovar.com/sap/sap-crm-create-new-web-ic-component-using-bsp-wd-workbench-bsp_wd_cmpwb/" target="_blank">Click Here</a></strong> to Go thru that post to understand how to create a New component and the new view.<br />
<span id="more-424"></span><br />
Pre request. A new Component and a BOL object. Use the above link to learn about that before start going forward.</p>
<p>OK now you have a component. Let us go thru and see how we can create a search and result views.</p>
<p>For search you need to have 3 views one is search view and another is result view and a third view is the View set. In this view set you combine the view one and two. We are going to use the ZTBOL as our BOL object for this example.</p>
<p><strong>Component Initial Preparation for Search and Result View creation</strong></p>
<p>First we need to link the custom BOL object to this Component. Go to the Runtime Repository Editor and click on the edit. Now add the ztbol to this component.  See the following screen shot.</p>
<p><a href="http://blogs.moovar.com/sap/wp-content/uploads/2009/05/search-result-01.jpg"><img class="alignnone size-full wp-image-425" title="search-result-01" src="http://blogs.moovar.com/sap/wp-content/uploads/2009/05/search-result-01.jpg" alt="search-result-01" width="686" height="274" /></a></p>
<p><a href="http://blogs.moovar.com/sap/wp-content/uploads/2009/05/search-result-02.jpg"><img class="alignnone size-full wp-image-426" title="search-result-02" src="http://blogs.moovar.com/sap/wp-content/uploads/2009/05/search-result-02.jpg" alt="search-result-02" width="561" height="265" /></a></p>
<p><!--adsense--></p>
<p><a href="http://blogs.moovar.com/sap/wp-content/uploads/2009/05/search-result-03.jpg"><img class="alignnone size-full wp-image-427" title="search-result-03" src="http://blogs.moovar.com/sap/wp-content/uploads/2009/05/search-result-03.jpg" alt="search-result-03" width="630" height="211" /></a></p>
<p>Now the custom BOL component (ZTBOL) is added to our search and result component. Make sure you save this. </p>
<p><strong>Search View</strong></p>
<p>Create a view with the MODEL Node using the custom BOL.</p>
<p>Now click  on the browser component structure tab and go to the ZSRCMP component. Click on the View and right click to create a view. The Create New View Wizard will popup and continue the process. See the following screen shots for the process.</p>
<p><a href="http://blogs.moovar.com/sap/wp-content/uploads/2009/05/search-result-05.jpg"><img class="alignnone size-full wp-image-428" title="search-result-05" src="http://blogs.moovar.com/sap/wp-content/uploads/2009/05/search-result-05.jpg" alt="search-result-05" width="702" height="150" /></a></p>
<p>The Above is the name of the View.</p>
<p><a href="http://blogs.moovar.com/sap/wp-content/uploads/2009/05/search-result-06.jpg"><img class="alignnone size-full wp-image-429" title="search-result-06" src="http://blogs.moovar.com/sap/wp-content/uploads/2009/05/search-result-06.jpg" alt="search-result-06" width="978" height="360" /></a></p>
<p>In the above screen you need to enter the name for the model nodes(like a abap structure name) and the BOL entity that you created during the Custom BOL creation( for more info <a title="How to Create Custom BOL Object" href="http://blogs.moovar.com/sap/sap-crm-create-a-custom-bol-for-web-ic/" target="_blank"><strong>Click here</strong></a> for custom BOL)</p>
<p>Select the TestSearchAdv structure that we need for the search view. TestResult structure will be used for the result view. Now let us go to the next screen in the wizard .  Now we need to identify the attributes fields that we need to use for this model nodes.  So go to model attributes screen. Skip the value node screen. In the <strong>Add Model Attributes to Modell Node </strong>click on the + sign to add the attributes. See the following screen shot.</p>
<p><!--adsense--></p>

<p><a href="http://feedads.g.doubleclick.net/~a/DEekR55RB9-6XzncQdURlfnpC2E/0/da"><img src="http://feedads.g.doubleclick.net/~a/DEekR55RB9-6XzncQdURlfnpC2E/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/DEekR55RB9-6XzncQdURlfnpC2E/1/da"><img src="http://feedads.g.doubleclick.net/~a/DEekR55RB9-6XzncQdURlfnpC2E/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Moovar-Techskills/~4/aOaPAt0kXwQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blogs.moovar.com/sap/sap-crm-web-ic-create-a-new-search-view-and-result-view/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		<feedburner:origLink>http://blogs.moovar.com/sap/sap-crm-web-ic-create-a-new-search-view-and-result-view/</feedburner:origLink></item>
		<item>
		<title>SAP CRM — Create Custom Controller for a WEB-IC Component</title>
		<link>http://feedproxy.google.com/~r/Moovar-Techskills/~3/YjSMjCx3k90/</link>
		<comments>http://blogs.moovar.com/sap/sap-crm-create-custom-controller-for-a-web-ic-component/#comments</comments>
		<pubDate>Sat, 09 May 2009 16:13:16 +0000</pubDate>
		<dc:creator>kumar</dc:creator>
				<category><![CDATA[SAP]]></category>
		<category><![CDATA[SAP CRM]]></category>
		<category><![CDATA[WEB-IC]]></category>
		<category><![CDATA[WEB-UI]]></category>
		<category><![CDATA[SAP CRM Context Node]]></category>
		<category><![CDATA[SAP CRM WEB-IC]]></category>
		<category><![CDATA[sap-crm-web-ui]]></category>
		<category><![CDATA[Web IC Component Context Node]]></category>
		<category><![CDATA[Web IC Context Node]]></category>
		<category><![CDATA[WEB-IC Component]]></category>

		<guid isPermaLink="false">http://blogs.moovar.com/sap/?p=432</guid>
		<description><![CDATA[In this post let us see how to create custom controller to a component.
Once the custom controller is created we need to link this custom controller in the views so that the data will be available to all views that are linked together. See the following screen shot.


Once you clicked on the create you will [...]]]></description>
			<content:encoded><![CDATA[<p>In this post let us see how to create custom controller to a component.</p>
<p>Once the custom controller is created we need to link this custom controller in the views so that the data will be available to all views that are linked together. See the following screen shot.<br />
<span id="more-432"></span><br />
<a href="http://blogs.moovar.com/sap/wp-content/uploads/2009/05/custom-controller-01.jpg"><img class="alignnone size-full wp-image-433" title="custom-controller-01" src="http://blogs.moovar.com/sap/wp-content/uploads/2009/05/custom-controller-01.jpg" alt="custom-controller-01" width="891" height="329" /></a></p>
<p>Once you clicked on the create you will get a pop up wizard that will take you thru the process. Let us name the custom controller as TestCuCo. See the following screen shot.</p>
<p><a href="http://blogs.moovar.com/sap/wp-content/uploads/2009/05/custom-controller-02.jpg"><img class="alignnone size-full wp-image-434" title="custom-controller-02" src="http://blogs.moovar.com/sap/wp-content/uploads/2009/05/custom-controller-02.jpg" alt="custom-controller-02" width="733" height="417" /></a></p>
<p>Let us go to the next screen and add the Model node. Let us add a Model node and tie that node to the custom BOL. (if you want to know about how to create the custom BOL <a title="How to Create Custom BOL Object" href="http://blogs.moovar.com/sap/sap-crm-create-a-custom-bol-for-web-ic/" target="_blank"><strong>Click here</strong></a>).</p>
<p>See the following screen shots for the Custom controller creation. The whole process is like creating the view. ( for more info about the New view creation see here <a title="New Component and View" href="http://blogs.moovar.com/sap/sap-crm-create-new-web-ic-component-using-bsp-wd-workbench-bsp_wd_cmpwb/" target="_blank"><strong>Click Here</strong></a> )</p>
<p><!--adsense--><br />
<a href="http://blogs.moovar.com/sap/wp-content/uploads/2009/05/custom-controller-03.jpg"><img class="alignnone size-full wp-image-435" title="custom-controller-03" src="http://blogs.moovar.com/sap/wp-content/uploads/2009/05/custom-controller-03.jpg" alt="custom-controller-03" width="696" height="418" /></a></p>
<p>I added tow Model nodes. I will be using this two nodes to pass data between two views, where I will create a link while creating the view for that particular node. Now let us go and add the attributes for these nodes. Skip the next screen and go to Add Model Attributes. See the following screen shot.</p>
<p><a href="http://blogs.moovar.com/sap/wp-content/uploads/2009/05/custom-controller-04.jpg"><img class="alignnone size-full wp-image-436" title="custom-controller-04" src="http://blogs.moovar.com/sap/wp-content/uploads/2009/05/custom-controller-04.jpg" alt="custom-controller-04" width="751" height="356" /></a></p>
<p>Click on the + sign and add the fields that you want. I added all the fields for each node. Let us click continue all the way and complete the process. Now our custom controller is ready for use.</p>
<p><strong><a title="Create Search and Result View in WEB IC" href="http://blogs.moovar.com/sap/sap-crm-web-ic-create-a-new-search-view-and-result-view" target="_blank">Click Here</a></strong>  and see how I created the links between the Model node in view to custom controller model node while creating the Search view.</p>
<p><!--adsense--></p>

<p><a href="http://feedads.g.doubleclick.net/~a/VuNDc8OGWlxG-hkY-ezjPMf3qk4/0/da"><img src="http://feedads.g.doubleclick.net/~a/VuNDc8OGWlxG-hkY-ezjPMf3qk4/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/VuNDc8OGWlxG-hkY-ezjPMf3qk4/1/da"><img src="http://feedads.g.doubleclick.net/~a/VuNDc8OGWlxG-hkY-ezjPMf3qk4/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Moovar-Techskills/~4/YjSMjCx3k90" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blogs.moovar.com/sap/sap-crm-create-custom-controller-for-a-web-ic-component/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://blogs.moovar.com/sap/sap-crm-create-custom-controller-for-a-web-ic-component/</feedburner:origLink></item>
		<item>
		<title>SAP CRM — Create a Custom BOL for WEB-IC</title>
		<link>http://feedproxy.google.com/~r/Moovar-Techskills/~3/HZ5ut4Wa1rc/</link>
		<comments>http://blogs.moovar.com/sap/sap-crm-create-a-custom-bol-for-web-ic/#comments</comments>
		<pubDate>Sat, 09 May 2009 11:12:40 +0000</pubDate>
		<dc:creator>kumar</dc:creator>
				<category><![CDATA[SAP]]></category>
		<category><![CDATA[SAP CRM]]></category>
		<category><![CDATA[WEB-IC]]></category>
		<category><![CDATA[WEB-UI]]></category>
		<category><![CDATA[CRM BOL]]></category>
		<category><![CDATA[CUSTOM BOL]]></category>
		<category><![CDATA[IC WEB]]></category>
		<category><![CDATA[IC WEB BOL]]></category>
		<category><![CDATA[SAP CRM BOL]]></category>
		<category><![CDATA[sap-crm-web-ui]]></category>
		<category><![CDATA[WEB IC BOL]]></category>

		<guid isPermaLink="false">http://blogs.moovar.com/sap/?p=231</guid>
		<description><![CDATA[BOL &#8212; Business 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 [...]]]></description>
			<content:encoded><![CDATA[<p><strong><a href="http://blogs.moovar.com/sap/wp-content/uploads/2009/05/bol-14.jpg"></a><a href="http://blogs.moovar.com/sap/wp-content/uploads/2009/05/bol-21.jpg"></a>BOL</strong> &#8212; <strong>B</strong>usiness <strong>O</strong>bject <strong>L</strong>ayer.</p>
<p>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.</p>
<p>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.</p>
<p><span id="more-231"></span></p>
<p>Let us create a z table(ZTEST_TEST_TBL) with name , age and sex. See the following screen shot for the table.</p>
<p><img class="alignnone size-medium wp-image-378" title="bol-01" src="http://blogs.moovar.com/sap/wp-content/uploads/2009/05/bol-01-300x262.jpg" alt="bol-01" width="300" height="262" /></p>
<p>Let us use this table and create a bol for this table to add,modify and search data.</p>
<p>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.</p>
<p><img class="alignnone size-full wp-image-379" title="bol-02" src="http://blogs.moovar.com/sap/wp-content/uploads/2009/05/bol-02.jpg" alt="bol-02" width="600" height="362" /></p>
<p>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.<br />
<!--adsense--><br />
<img class="alignnone size-full wp-image-380" title="bol-03" src="http://blogs.moovar.com/sap/wp-content/uploads/2009/05/bol-03.jpg" alt="bol-03" width="666" height="160" /></p>
<p>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.</p>
<p><img class="alignnone size-full wp-image-381" title="bol-04" src="http://blogs.moovar.com/sap/wp-content/uploads/2009/05/bol-04.jpg" alt="bol-04" width="815" height="154" /></p>
<p>Add a Component Set Definition. See the follow screen shot.</p>
<p><img class="alignnone size-full wp-image-382" title="bol-05" src="http://blogs.moovar.com/sap/wp-content/uploads/2009/05/bol-05.jpg" alt="bol-05" width="723" height="153" /></p>
<p>Now assign the Component definition to the component set definition. See the following screen shot.</p>
<p><img class="alignnone size-full wp-image-383" title="bol-06" src="http://blogs.moovar.com/sap/wp-content/uploads/2009/05/bol-06.jpg" alt="bol-06" width="658" height="216" /></p>
<p>Now the BOL component is assigned to the Component Set definition. You can assign  More than one BOL component to the component set.<br />
<!--adsense--></p>

<p><a href="http://feedads.g.doubleclick.net/~a/1H-GGZ0aVask_-TsJZbRQRSq8Sk/0/da"><img src="http://feedads.g.doubleclick.net/~a/1H-GGZ0aVask_-TsJZbRQRSq8Sk/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/1H-GGZ0aVask_-TsJZbRQRSq8Sk/1/da"><img src="http://feedads.g.doubleclick.net/~a/1H-GGZ0aVask_-TsJZbRQRSq8Sk/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Moovar-Techskills/~4/HZ5ut4Wa1rc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blogs.moovar.com/sap/sap-crm-create-a-custom-bol-for-web-ic/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		<feedburner:origLink>http://blogs.moovar.com/sap/sap-crm-create-a-custom-bol-for-web-ic/</feedburner:origLink></item>
		<item>
		<title>SAP CRM Create New Web IC Component using BSP WD workbench (BSP_WD_CMPWB)</title>
		<link>http://feedproxy.google.com/~r/Moovar-Techskills/~3/_B1W80OnnC4/</link>
		<comments>http://blogs.moovar.com/sap/sap-crm-create-new-web-ic-component-using-bsp-wd-workbench-bsp_wd_cmpwb/#comments</comments>
		<pubDate>Sat, 25 Apr 2009 16:20:15 +0000</pubDate>
		<dc:creator>kumar</dc:creator>
				<category><![CDATA[Learn SAP]]></category>
		<category><![CDATA[SAP]]></category>
		<category><![CDATA[SAP CRM]]></category>
		<category><![CDATA[WEB-IC]]></category>
		<category><![CDATA[WEB-UI]]></category>
		<category><![CDATA[SAP CRM Component]]></category>
		<category><![CDATA[SAP CRM WEB-IC]]></category>
		<category><![CDATA[sap-crm-web-ui]]></category>
		<category><![CDATA[WEB-IC Component]]></category>

		<guid isPermaLink="false">http://blogs.moovar.com/sap/?p=281</guid>
		<description><![CDATA[Let us see how we can create a new WEB-IC component using the BSP WD Workbench (BSP_WD_CMPWB). Once you create a component using this work bench you need to integrate this in the WEB-IC.
In this post let us see how we can create custom webic component.
Go to the workbench using the t-code BSP_WD_CMPWB. See the screen [...]]]></description>
			<content:encoded><![CDATA[<p>Let us see how we can create a new WEB-IC component using the BSP WD Workbench (BSP_WD_CMPWB). Once you create a component using this work bench you need to integrate this in the WEB-IC.</p>
<p>In this post let us see how we can create custom webic component.</p>
<p>Go to the workbench using the t-code BSP_WD_CMPWB. See the screen shots.<br />
<span id="more-281"></span><br />
<img class="alignnone size-full wp-image-283" title="cpwb-01" src="http://blogs.moovar.com/sap/wp-content/uploads/2009/04/cpwb-01.jpg" alt="cpwb-01" width="820" height="259" /></p>
<p>Now  create a ztestcmp as follows.</p>
<p><img class="alignnone size-full wp-image-284" title="cpwb-02" src="http://blogs.moovar.com/sap/wp-content/uploads/2009/04/cpwb-02.jpg" alt="cpwb-02" width="813" height="379" /></p>
<p><!--adsense--></p>
<p>Click OK and it will ask for the package and transport to store the information in the system. Just go thru that and give the necessary information according to your system.</p>
<p>Once your component is created just click on test you should see your component launch on the browser. If there is no issue you should see an empty screen. See the following screen shot.</p>
<p><img class="alignnone size-medium wp-image-285" title="cpwb-03" src="http://blogs.moovar.com/sap/wp-content/uploads/2009/04/cpwb-03-300x158.jpg" alt="cpwb-03" width="385" height="158" /></p>
<p> Now let us create a view with some input like first name , last name and city of birth and  display the input on the screen.</p>
<p>Let us create the first view(fview). Right click on the views and click create a wizard will popup. See the following screen shot.</p>
<p><img class="alignnone size-full wp-image-286" title="cpwb-04" src="http://blogs.moovar.com/sap/wp-content/uploads/2009/04/cpwb-04.jpg" alt="cpwb-04" width="358" height="281" /></p>
<p><!--adsense--></p>

<p><a href="http://feedads.g.doubleclick.net/~a/78xdycPkNKJNtrXNJqMsXvMXZYM/0/da"><img src="http://feedads.g.doubleclick.net/~a/78xdycPkNKJNtrXNJqMsXvMXZYM/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/78xdycPkNKJNtrXNJqMsXvMXZYM/1/da"><img src="http://feedads.g.doubleclick.net/~a/78xdycPkNKJNtrXNJqMsXvMXZYM/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Moovar-Techskills/~4/_B1W80OnnC4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blogs.moovar.com/sap/sap-crm-create-new-web-ic-component-using-bsp-wd-workbench-bsp_wd_cmpwb/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		<feedburner:origLink>http://blogs.moovar.com/sap/sap-crm-create-new-web-ic-component-using-bsp-wd-workbench-bsp_wd_cmpwb/</feedburner:origLink></item>
	</channel>
</rss>
