<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	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/"
	>

<channel>
	<title>Techskills &#187; Learn SAP</title>
	<atom:link href="http://blogs.moovar.com/sap/category/learn-sap/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.moovar.com/sap</link>
	<description></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>
			<item>
		<title>Learn SAP &#8212; Batch Data Communication BDC</title>
		<link>http://blogs.moovar.com/sap/learn-sap-batch-data-communication-bdc/</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>
]]></content:encoded>
			<wfw:commentRss>http://blogs.moovar.com/sap/learn-sap-batch-data-communication-bdc/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>SAP CRM &#8212; PPR Factsheet</title>
		<link>http://blogs.moovar.com/sap/sap-crm-ppr-factsheet/</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>
]]></content:encoded>
			<wfw:commentRss>http://blogs.moovar.com/sap/sap-crm-ppr-factsheet/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Learn SAP &#8212; Parallel Processing in ABAP programing</title>
		<link>http://blogs.moovar.com/sap/learn-sap-parallel-processing-in-abap-programing/</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>
]]></content:encoded>
			<wfw:commentRss>http://blogs.moovar.com/sap/learn-sap-parallel-processing-in-abap-programing/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>SAP CRM &#8212; WEB IC Search view and Result view Navigation</title>
		<link>http://blogs.moovar.com/sap/sap-crm-web-ic-search-view-and-result-view-navigation/</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>
]]></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>
		</item>
		<item>
		<title>SAP CRM &#8212; WEB IC Create a new search view and result view</title>
		<link>http://blogs.moovar.com/sap/sap-crm-web-ic-create-a-new-search-view-and-result-view/</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>
]]></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>
		</item>
		<item>
		<title>SAP CRM Create New Web IC Component using BSP WD workbench (BSP_WD_CMPWB)</title>
		<link>http://blogs.moovar.com/sap/sap-crm-create-new-web-ic-component-using-bsp-wd-workbench-bsp_wd_cmpwb/</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>
]]></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>
		</item>
		<item>
		<title>SAP CRM Web IC make view Configurable</title>
		<link>http://blogs.moovar.com/sap/sap-crm-web-ic-make-view-configurable/</link>
		<comments>http://blogs.moovar.com/sap/sap-crm-web-ic-make-view-configurable/#comments</comments>
		<pubDate>Sat, 25 Apr 2009 16:19:12 +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 View Configuration]]></category>
		<category><![CDATA[SAP CRM WEB-IC]]></category>
		<category><![CDATA[sap-crm-web-ui]]></category>
		<category><![CDATA[WEB-IC Screen Configuration]]></category>
		<category><![CDATA[WEB-IC View]]></category>
		<category><![CDATA[WEB-IC View Configuration]]></category>

		<guid isPermaLink="false">http://blogs.moovar.com/sap/?p=300</guid>
		<description><![CDATA[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. [...]]]></description>
			<content:encoded><![CDATA[<p>In this post let us see how to make the ordinary view in to configurable.</p>
<p>If we create a view in the web ic the view will look like as follows.<br />
<span id="more-300"></span></p>
<p><img class="alignnone size-medium wp-image-301" title="config-view-01" src="http://blogs.moovar.com/sap/wp-content/uploads/2009/04/config-view-01-300x125.jpg" alt="config-view-01" width="300" height="125" /></p>
<p>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.</p>
<p>Double click on the fview .htm file. That will take you to a html editor. See the following screen shot.</p>
<p><img class="alignnone size-full wp-image-302" title="config-view-02" src="http://blogs.moovar.com/sap/wp-content/uploads/2009/04/config-view-02.jpg" alt="config-view-02" width="817" height="366" /></p>
<p><!--adsense--></p>
<p>Replace the above code with the following code.</p>
<h4><span style="color: #0000ff;"><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;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="L3S54">&lt;%@extension name=&#8221;thtmlb&#8221; prefix=&#8221;thtmlb&#8221; %&gt;</span><br />
<span class="L3S53">&lt;%</span><br />
  <span class="L1S52">DATA</span>:<br />
  lv_xml    <span class="L1S52">TYPE</span> string.<br />
  lv_xml = controller-&gt;configuration_descr-&gt;get_config_data( ).<br />
<span class="L3S53">%&gt;</span></span></h4>
<h4><span style="color: #0000ff;">&lt;chtmlb:overviewFormConfig <span class="L3S50">xml</span>  = <span class="L3S33">&#8220;&lt;%= lv_xml %&gt;&#8221;</span><br />
               mode = <span class="L3S33">&#8220;RUNTIME&#8221;</span> /&gt;</span></h4>
<p>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.</p>
<p> <img class="alignnone size-medium wp-image-304" title="config-view-03" src="http://blogs.moovar.com/sap/wp-content/uploads/2009/04/config-view-03-300x95.jpg" alt="config-view-03" width="300" height="95" /></p>
<p> 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.</p>
<p><img class="alignnone size-full wp-image-305" title="config-view-04" src="http://blogs.moovar.com/sap/wp-content/uploads/2009/04/config-view-04.jpg" alt="config-view-04" width="943" height="286" /></p>
<p><!--adsense--></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.moovar.com/sap/sap-crm-web-ic-make-view-configurable/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Learn SAP &#8212; Batch and Background Jobs &#8212; SM37</title>
		<link>http://blogs.moovar.com/sap/learn-sap-batch-and-background-jobs-sm37/</link>
		<comments>http://blogs.moovar.com/sap/learn-sap-batch-and-background-jobs-sm37/#comments</comments>
		<pubDate>Sat, 25 Apr 2009 16:18:30 +0000</pubDate>
		<dc:creator>kumar</dc:creator>
				<category><![CDATA[Learn SAP]]></category>
		<category><![CDATA[SAP]]></category>
		<category><![CDATA[Background Jobs]]></category>
		<category><![CDATA[SAP BAsic]]></category>
		<category><![CDATA[Sap Batch Jobs]]></category>

		<guid isPermaLink="false">http://blogs.moovar.com/sap/?p=228</guid>
		<description><![CDATA[In this post let us see how to look in to the SAP Batch and background Jobs.
To see all the jobs that is in the SAP system use SM37 see the screen shot below.


Here you can search by Job name or the user who created the job or if you know the SAP report name [...]]]></description>
			<content:encoded><![CDATA[<p>In this post let us see how to look in to the SAP Batch and background Jobs.</p>
<p>To see all the jobs that is in the SAP system use SM37 see the screen shot below.<br />
<span id="more-228"></span><br />
<a href="http://blogs.moovar.com/sap/wp-content/uploads/2008/10/sjob.jpg"><img class="alignnone size-medium wp-image-233" title="sjob" src="http://blogs.moovar.com/sap/wp-content/uploads/2008/10/sjob-300x245.jpg" alt="" width="300" height="245" /></a></p>
<p>Here you can search by Job name or the user who created the job or if you know the SAP report name (Program Name)  you can look in to the job. As soon as you setup the job the job will be in the scheduled state. As soon as the time comes(you assigned time for the job execution) the job will change in to released and it will show active and show as finished. If there is any error in the job then it will show as the job canceled.</p>
<p>To setup up the job in the SAP system you can do that in two ways. One is by using SM36. See the following screen shots.</p>
<p><a href="http://blogs.moovar.com/sap/wp-content/uploads/2008/10/sjob-1.jpg"><img class="alignnone size-medium wp-image-234" title="sjob-1" src="http://blogs.moovar.com/sap/wp-content/uploads/2008/10/sjob-1-300x181.jpg" alt="" width="300" height="181" /></a><br />
<!--adsense--><br />
after you click the save it will take you to the next screen see the following screen shot.</p>
<p><a href="http://blogs.moovar.com/sap/wp-content/uploads/2008/10/sjob-2.jpg"><img class="alignnone size-medium wp-image-235" title="sjob-2" src="http://blogs.moovar.com/sap/wp-content/uploads/2008/10/sjob-2-300x76.jpg" alt="" width="300" height="76" /></a></p>
<p>Once you are back click on the condition and set up when and how often you want to run the job. see the screen shot.</p>
<p><a href="http://blogs.moovar.com/sap/wp-content/uploads/2008/10/sjob-3.jpg"><img class="alignnone size-medium wp-image-236" title="sjob-3" src="http://blogs.moovar.com/sap/wp-content/uploads/2008/10/sjob-3-300x260.jpg" alt="" width="300" height="260" /></a></p>
<p>Save the job now your job is ready to run.</p>
<p> The other way to setup the job is from se38 where you can setup the job directly. See the following screen shot<a href="http://blogs.moovar.com/sap/wp-content/uploads/2008/10/sjob-4.jpg"></a>.</p>
<p><a href="http://blogs.moovar.com/sap/wp-content/uploads/2008/10/sjob-4.jpg"><img class="alignnone size-medium wp-image-237" title="sjob-4" src="http://blogs.moovar.com/sap/wp-content/uploads/2008/10/sjob-4-300x162.jpg" alt="" width="300" height="162" /></a></p>
<p>From the above menu you can setup the job immediately.</p>
<p><!--adsense--></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.moovar.com/sap/learn-sap-batch-and-background-jobs-sm37/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Learn SAP &#8212; Debug Background Jobs &#8212; SM37</title>
		<link>http://blogs.moovar.com/sap/learn-sap-debug-background-jobs-sm37/</link>
		<comments>http://blogs.moovar.com/sap/learn-sap-debug-background-jobs-sm37/#comments</comments>
		<pubDate>Sat, 25 Apr 2009 16:17:54 +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[Debug ABAP]]></category>
		<category><![CDATA[Debug Background Jobs]]></category>
		<category><![CDATA[SAP Background jobs]]></category>
		<category><![CDATA[SAP BAsic]]></category>

		<guid isPermaLink="false">http://blogs.moovar.com/sap/?p=354</guid>
		<description><![CDATA[In this post let us see how we can debug the Background jobs in SAP.
To setup the jobs click here.

first setup the job as mentioned in the above link. Once the job is setup go to SM37. You should see the job that you setup in sm37. See the following screen shot.
 
Now the job is [...]]]></description>
			<content:encoded><![CDATA[<p>In this post let us see how we can debug the Background jobs in SAP.</p>
<p>To setup the jobs <a title="Setup back ground job" href="http://blogs.moovar.com/sap/learn-sap-batch-and-background-jobs-sm37" target="_blank"><strong>click here</strong></a><strong>.</strong><br />
<span id="more-354"></span><br />
first setup the job as mentioned in the above link. Once the job is setup go to SM37. You should see the job that you setup in sm37. See the following screen shot.</p>
<p> <img class="alignnone size-full wp-image-356" title="job-debug-01" src="http://blogs.moovar.com/sap/wp-content/uploads/2009/04/job-debug-01.jpg" alt="job-debug-01" width="747" height="190" /></p>
<p>Now the job is setup and not released.</p>
<p>Now select the job and enter JDBG in the command center with out /n. See the following screen shot.</p>
<p><!--adsense--></p>
<p><img class="alignnone size-full wp-image-357" title="job-debug-02" src="http://blogs.moovar.com/sap/wp-content/uploads/2009/04/job-debug-02.jpg" alt="job-debug-02" width="731" height="348" /></p>
<p>Once you click enter press <strong>F7</strong>  until control goes to your Z code. This is important else you will have some issues.</p>
<p>* Cancelled jobs can also be debugged in this way.<br />
But please keep in mind, this is no simulation. All updates, deletes or whatever else is done in this job will be executed !</p>
<p>Thanks to  Sadananda Chinnahalli  who provided this information. He is one of the best programmer that I know and very good  knowledge in SAP.</p>
<p><!--adsense--></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.moovar.com/sap/learn-sap-debug-background-jobs-sm37/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Learn SAP &#8212; IDOC Configuration</title>
		<link>http://blogs.moovar.com/sap/learn-sap-idoc-configuration/</link>
		<comments>http://blogs.moovar.com/sap/learn-sap-idoc-configuration/#comments</comments>
		<pubDate>Sat, 20 Sep 2008 02:29:03 +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[IDOC]]></category>
		<category><![CDATA[SAP IDOC]]></category>

		<guid isPermaLink="false">http://blogs.moovar.com/sap/?p=206</guid>
		<description><![CDATA[If you want to know the IDOC basic (create , execute and select the list) then Click Here.
In this post let us see how to configure a new IDOC message type in the SAP system.
The Main SAP Transaction for IDOC processing is WEDI. AS soon as you go there you will see all the t-code associated [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blogs.moovar.com/sap/wp-content/uploads/2008/09/idc-2.jpg"></a><a href="http://blogs.moovar.com/sap/wp-content/uploads/2008/09/idc-9.jpg"></a>If you want to know the IDOC basic (create , execute and select the list) then <a href="http://blogs.moovar.com/sap/learn-sap-idoc-basic/" target="_blank"><strong>Click Here</strong></a>.</p>
<p>In this post let us see how to configure a new IDOC message type in the SAP system.</p>
<p>The Main SAP Transaction for IDOC processing is WEDI. AS soon as you go there you will see all the t-code associated with the IDOC will appear. This contains all the IDOC t-codes  from creating to processing to configuration.</p>
<p>Here we are going to look in to a business case and see how we can configure the IDOC and how to process the IDOC.  We have a Text file coming from a 3rd party with customer first name, last name and Age.<br />
<span id="more-206"></span><br />
We need to create a new message type and store this information as idoc. Once we received this IDOC we need to process the data and load this data to a table(real life we call a SAP BAPI or sap function module normally BP create).</p>
<p>The text file format is as follows</p>
<p>First name char(20), last name char(20) and age number (3).</p>
<p>All of the following things are transportable. Save the transports. You can move the same config and the data from one system to another using this transport.</p>
<p><strong>Create and/or Configure New IDOC segments:</strong></p>
<p>T-Code is WE31.</p>
<p>Create a new Segment type ZTEST_CUST. See the following screen shot. </p>
<p><a href="http://blogs.moovar.com/sap/wp-content/uploads/2008/09/idc-2.jpg"><img class="alignnone size-medium wp-image-207" title="idc-2" src="http://blogs.moovar.com/sap/wp-content/uploads/2008/09/idc-2-300x292.jpg" alt="" width="300" height="292" /></a></p>
<p>Click create and see the following  screen shot. Now the Segment is created we are ready to create Idoc types and Message type.</p>
<p>Create and/or Configure New IDOC types:</p>
<p>T-Code is WE31.</p>
<p><strong>Create a new IDOC type ZTEST_IDOC_TYPE.</strong></p>
<p><a href="http://blogs.moovar.com/sap/wp-content/uploads/2008/09/idc-4.jpg"><img class="alignnone size-medium wp-image-208" title="idc-4" src="http://blogs.moovar.com/sap/wp-content/uploads/2008/09/idc-4-300x150.jpg" alt="" width="300" height="150" /></a></p>
<p>Click create that will take you to the next screen. see the screen shot.</p>
<p><a href="http://blogs.moovar.com/sap/wp-content/uploads/2008/09/idc-5.jpg"><img class="alignnone size-medium wp-image-209" title="idc-5" src="http://blogs.moovar.com/sap/wp-content/uploads/2008/09/idc-5-300x120.jpg" alt="" width="300" height="120" /></a></p>
<p>Click on the create segment. A pop-up will display. See the following screen shot. Select the created segment type and click continue.</p>
<p><a href="http://blogs.moovar.com/sap/wp-content/uploads/2008/09/idc-6.jpg"><img class="alignnone size-medium wp-image-210" title="idc-6" src="http://blogs.moovar.com/sap/wp-content/uploads/2008/09/idc-6-300x172.jpg" alt="" width="300" height="172" /></a><a href="http://blogs.moovar.com/sap/wp-content/uploads/2008/09/idc-7.jpg"><img class="alignnone size-medium wp-image-211" title="idc-7" src="http://blogs.moovar.com/sap/wp-content/uploads/2008/09/idc-7-300x105.jpg" alt="" width="300" height="105" /></a></p>
<p>Now click save and save the IDOC type. Now we have a IDOC structure that can have the first,last name and the age.Now let us go to the message type.<br />
<!--adsense--><br />
<strong>Create and/or Configure New Message types:</strong></p>
<p>T-Code is WE81.</p>
<p>Go to the screen click on edit/change and add new entries and add a new message type ZTEST_MES_TYPE. See the following screen shot.</p>
<p><a href="http://blogs.moovar.com/sap/wp-content/uploads/2008/09/idc-8.jpg"></a></p>
<p>Now the new message type is created.</p>
<p><strong>Configure the New Message type and the New IDOC Type:</strong></p>
<p> T-Code is WE82.</p>
<p>Now connect the Message type and the IDOC type. Go to the screen click on edit/change and add new entries and add the ZTEST_MES_TYPE ,ZTEST_IDOC_TYPE and version  as 46C or any SAP valid Version. Save the data and store the transport. See  the following screen shot.</p>
<p><a href="http://blogs.moovar.com/sap/wp-content/uploads/2008/09/idc-9.jpg"><img class="alignnone size-medium wp-image-213" title="idc-9" src="http://blogs.moovar.com/sap/wp-content/uploads/2008/09/idc-9-300x134.jpg" alt="" width="300" height="134" /></a></p>
<p>Now Assign a function module to this new message type.</p>
<p><strong>Create and/or Configure New Message types / Application Object :</strong></p>
<p>T-Code is WE57.</p>
<p>Add the new function module to this message type so that when ever we get a new IDOC data then the SAP will call this function module where we need to put the code in for what ever process we need to do.(usually decode the idoc and validate the data and post the data in the system).</p>
<p>Go in to this transaction and go to change mode and add new entries. See the following screen shots.</p>
<p><a href="http://blogs.moovar.com/sap/wp-content/uploads/2008/09/idc-10.jpg"><img class="alignnone size-medium wp-image-214" title="idc-10" src="http://blogs.moovar.com/sap/wp-content/uploads/2008/09/idc-10-300x74.jpg" alt="" width="300" height="74" /></a></p>
<p>In the new entry screen add the function module that you want to execute for this IDOC data. See the following screen shot.</p>
<p><a href="http://blogs.moovar.com/sap/wp-content/uploads/2008/09/idc-11.jpg"><img class="alignnone size-medium wp-image-215" title="idc-11" src="http://blogs.moovar.com/sap/wp-content/uploads/2008/09/idc-11-300x184.jpg" alt="" width="300" height="184" /></a></p>
<p>Now setup the Inbound processing code. It is in WE42. Go to BD51 and add your function module.</p>
<p>go to WE42 and add your input processing code. See the following screen shot.</p>
<p><a href="http://blogs.moovar.com/sap/wp-content/uploads/2008/09/idc-13.jpg"><img class="alignnone size-medium wp-image-216" title="idc-13" src="http://blogs.moovar.com/sap/wp-content/uploads/2008/09/idc-13-300x218.jpg" alt="" width="300" height="218" /></a></p>
<p>Now go to the Partner function and add this IDOC. So that for the same data type we can control what function we need to do if that comes from different partners.</p>
<p> </p>
<p><strong>Create and/or Configure Partner Profile:</strong></p>
<p>T-Code is WE20.</p>
<p>Go to this transaction and setup this Message type to the partner that are sending the data to the SAP system. Our message is inbound so add this to the inbound parameters. See the following screen shot.</p>
<p><a href="http://blogs.moovar.com/sap/wp-content/uploads/2008/09/idc-14.jpg"><img class="alignnone size-medium wp-image-217" title="idc-14" src="http://blogs.moovar.com/sap/wp-content/uploads/2008/09/idc-14-300x253.jpg" alt="" width="300" height="253" /></a></p>
<p>Hope this helps.  Let me know if you have any questions.</p>
<p><!--adsense--></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.moovar.com/sap/learn-sap-idoc-configuration/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
