<?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/"
	>

<channel>
	<title>Richard Santos</title>
	<atom:link href="http://www.richardsantos.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.richardsantos.net</link>
	<description>Just another WordPress weblog</description>
	<pubDate>Thu, 31 Mar 2011 00:28:12 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>ABAP Debugging a Popup Window</title>
		<link>http://www.richardsantos.net/2011/02/08/abap-debugging-a-popup-window/</link>
		<comments>http://www.richardsantos.net/2011/02/08/abap-debugging-a-popup-window/#comments</comments>
		<pubDate>Tue, 08 Feb 2011 17:29:23 +0000</pubDate>
		<dc:creator>rs</dc:creator>
		
		<category><![CDATA[ABAP]]></category>

		<category><![CDATA[General]]></category>

		<category><![CDATA[SAP]]></category>

		<category><![CDATA[Technical]]></category>

		<category><![CDATA[DEBUG]]></category>

		<guid isPermaLink="false">http://www.richardsantos.net/?p=366</guid>
		<description><![CDATA[To enter a debugging mode we simply type &#8220;/h&#8221; in the command field. But do you ever wonder how to enter a debugging mode on a popup window? I mean there is no command field to type in the &#8220;/h&#8221;.
I stumble upon this really great SDN article about ABAP debugging tips and found out that [...]]]></description>
			<content:encoded><![CDATA[<p>To enter a debugging mode we simply type &#8220;/h&#8221; in the command field. But do you ever wonder how to enter a debugging mode on a popup window? I mean there is no command field to type in the &#8220;/h&#8221;.</p>
<p>I stumble upon this really great <a href="http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/e0e8b21b-e1b4-2c10-49b5-fd6a95162976">SDN article</a> about ABAP debugging tips and found out that there is actually 2 ways to debug a popup window.</p>
<p><strong>Option 1:</strong> From any SAP windows click the &#8220;Generate a Shortcut&#8221; button <img src="http://farm6.static.flickr.com/5260/5428057033_6582065009_s.jpg" width="22" height="22" alt="sap_shortcuticon" /> and in the window that appears make the below changes and click “Finish”.  A file will be generated on the location you specified. Now drag the file onto the popup window and your ABAP debugger should be switched on!</p>
<p>Make sure to set the Title, Type, Command, and Location.<br />
<img src="http://farm6.static.flickr.com/5257/5428658656_f8fd09428e.jpg" width="500" height="407" alt="sap_shortcut" /></p>
<p><strong>Option 2:</strong> Create a text file <em>(any file name will do)</em> anywhere on your computer where you could easily get it, and type the code below and save it:<br />
[codesyntax lang="c++" lines="no" title=""]<br />
[FUNCTION]<br />
Command=/h<br />
Title=Debugger<br />
Type=SystemCommand<br />
[/codesyntax]</p>
<p>Same thing with option 1, you may drag this file onto the popup window to switched on the ABAP debugger.<br />
Enjoy!</p>
<p><a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/3.0/ph/" title="License - Copyright Protected"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-nc-nd/3.0/ph/88x31.png" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.richardsantos.net/2011/02/08/abap-debugging-a-popup-window/feed/</wfw:commentRss>
		</item>
		<item>
		<title>SAP: Quick Way To Search For Enhancement Points</title>
		<link>http://www.richardsantos.net/2011/02/06/sap-quick-way-to-search-for-enhancement-points/</link>
		<comments>http://www.richardsantos.net/2011/02/06/sap-quick-way-to-search-for-enhancement-points/#comments</comments>
		<pubDate>Sun, 06 Feb 2011 19:13:54 +0000</pubDate>
		<dc:creator>rs</dc:creator>
		
		<category><![CDATA[ABAP]]></category>

		<category><![CDATA[General]]></category>

		<category><![CDATA[SAP]]></category>

		<category><![CDATA[Technical]]></category>

		<category><![CDATA[ABAPNINJA]]></category>

		<category><![CDATA[ENHANCEMENT]]></category>

		<guid isPermaLink="false">http://www.richardsantos.net/?p=352</guid>
		<description><![CDATA[Enhancement Points allow you to modify standard SAP code, but in a structured way that will allow you to upgrade and deploy enhancement packs without the conflicts of traditional modifications. Enhancement points are basically can be found at certain defined points within the ABAP code. This allow you to add your own custom code which [...]]]></description>
			<content:encoded><![CDATA[<p>Enhancement Points allow you to modify standard SAP code, but in a structured way that will allow you to upgrade and deploy enhancement packs without the conflicts of traditional modifications. Enhancement points are basically can be found at certain defined points within the ABAP code. This allow you to add your own custom code which will be executed as if it had been hard coded into the code using a modification. Unlike hard coded modifications, these will not be lost during upgrade or patching exercises.</p>
<p>It is hard to tell which enhancement points are available for the process you want to customize. There’s very little documentation, and it could take an SAP developer several hours to find the best point. But thanks to <a href="http://www.panayainc.com/">Panaya</a> team, we can now enjoy <a href="http://www.abapninja.org">ABAPNinja.</a></p>
<p><a href="http://www.abapninja.org/pages/about">ABAPNinja</a> is a free web site that allows us to quickly search for the best enhancement points for our business process. How did they do it? According to their website, deciding which enhancement points impact a given transaction, directly or indirectly, is not an easy feat, to say the least. There are some 13,000 enhancement points, and over 60,000 SAP transactions, which gives over a billion possible combinations. They have have analyzed close to 250 Million lines of ERP 6.0 code, using Panaya&#8217;s program comprehension technology, and a grid of 50 servers over a period of one month, to compile this huge database. Then then used Ruby on Rails to format the data as web pages.</p>
<p>Try it out now, go to <a href="http://www.abapninja.org">www.abapninja.org</a> and enjoy searching for enhancement points!<br />
<a href="http://www.abapninja.org"><img alt="ABAPNinja.org" src="http://www.abapninja.org/images/abap-ninja-logo.png" title="ABAPNinja" width="380" height="80" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.richardsantos.net/2011/02/06/sap-quick-way-to-search-for-enhancement-points/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Where to download MiniSAP</title>
		<link>http://www.richardsantos.net/2011/02/02/where-to-download-minisap/</link>
		<comments>http://www.richardsantos.net/2011/02/02/where-to-download-minisap/#comments</comments>
		<pubDate>Wed, 02 Feb 2011 15:29:22 +0000</pubDate>
		<dc:creator>rs</dc:creator>
		
		<category><![CDATA[BASIS]]></category>

		<category><![CDATA[SAP]]></category>

		<category><![CDATA[Technical]]></category>

		<category><![CDATA[MINISAP]]></category>

		<category><![CDATA[SAP TRIAL VERSION]]></category>

		<guid isPermaLink="false">http://www.richardsantos.net/?p=338</guid>
		<description><![CDATA[MiniSAP is a trial version or sneak preview of SAP software. It is a downscaled version of SAP system without the SAP applications (FI, CO, MM, SD, HR etc.). This is very helpful to those who are just starting to learn ABAP.
MiniSAP are available via the SAP Developer Network (SDN)
- register yourself.
- go to software [...]]]></description>
			<content:encoded><![CDATA[<p>MiniSAP is a trial version or sneak preview of SAP software. It is a downscaled version of SAP system without the SAP applications (FI, CO, MM, SD, HR etc.). This is very helpful to those who are just starting to learn ABAP.</p>
<p>MiniSAP are available via the <a href="http://www.sdn.sap.com/irj/scn/nw-downloads">SAP Developer Network (SDN)</a><br />
- register yourself.<br />
- go to software download page.<br />
- you will see different trial versions of SAP software with different system requirements.</p>
<p>Below are the links on some of the trial version of SAP you can download:</p>
<p>-<a href="http://www.sdn.sap.com/irj/sdn/index?rid=/library/uuid/80db43c2-9ee5-2d10-de8e-8547de363868">SAP NetWeaver AS ABAP 7.02 SP6 32-bit Trial</a><br />
-<a href="http://www.sdn.sap.com/irj/scn/downloads?rid=/library/uuid/70b58216-00e7-2c10-f6a9-c59f3a351b63">SAP NetWeaver 7.01 SR1 SP3 Developer Edition</a><br />
-<a href="http://www.sdn.sap.com/irj/scn/downloads?rid=/library/uuid/c0d7422b-4ee9-2b10-0baf-af588a2126f4">SAP NetWeaver 7.01 SR1 SP3 ABAP Trial Version</a><br />
-<a href="http://www.sdn.sap.com/irj/scn/downloads?rid=/library/uuid/80fd9a0a-e306-2a10-c896-b84c77c13ed2">SAP NetWeaver 7.01 ABAP Trial Version</a><br />
-<a href="http://www.sdn.sap.com/irj/scn/downloads?rid=/library/uuid/60d6c8b7-5d8f-2910-31bf-ebdf74fefd8b">SAP NetWeaver 7.0 - Trial Version on Linux</a></p>
<p>Once you finished installing a MiniSAP, you have to determine your hardware key to apply for an evaluation license key: You may refer to <a href="https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/minisap/minisap.htm">SAP Sneak Preview License Key Request</a> for a complete instructions.</p>
<p><a title="License - Copyright Protected" rel="license" href="http://creativecommons.org/licenses/by-nc-nd/3.0/ph/"><img style="border-width:0" src="http://i.creativecommons.org/l/by-nc-nd/3.0/ph/88x31.png" alt="Creative Commons License" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.richardsantos.net/2011/02/02/where-to-download-minisap/feed/</wfw:commentRss>
		</item>
		<item>
		<title>SAPlink</title>
		<link>http://www.richardsantos.net/2011/02/02/saplink/</link>
		<comments>http://www.richardsantos.net/2011/02/02/saplink/#comments</comments>
		<pubDate>Wed, 02 Feb 2011 14:48:01 +0000</pubDate>
		<dc:creator>rs</dc:creator>
		
		<category><![CDATA[ABAP]]></category>

		<category><![CDATA[SAP]]></category>

		<category><![CDATA[Technical]]></category>

		<category><![CDATA[saplink]]></category>

		<guid isPermaLink="false">http://www.richardsantos.net/?p=335</guid>
		<description><![CDATA[Ever wonder if it is possible to copy or download your ABAP programs, functions, classes, tables, smartforms, etc. and share it to other programmers or use it when you needed it on other SAP systems? Well EnterpriseGeeks created a project called SAPlink which enables us to share abap codes, objects and components.
SAPlink is a project [...]]]></description>
			<content:encoded><![CDATA[<p>Ever wonder if it is possible to copy or download your ABAP programs, functions, classes, tables, smartforms, etc. and share it to other programmers or use it when you needed it on other SAP systems? Well <a href="http://enterprisegeeks.com/blog/about/">EnterpriseGeeks</a> created a project called <a href="http://code.google.com/p/saplink/">SAPlink</a> which enables us to share abap codes, objects and components.</p>
<p>SAPlink is a project that aims to make it easier to share ABAP developments between programmers. It provides the ability to easily distribute and package custom objects.</p>
<p>Below is the site for the complete instructions on how to install and use SAPlink.<br />
<a href="http://wiki.sdn.sap.com/wiki/display/ABAP/SAPlink+User+Documentation">SAPlink User Documentation</a></p>
<p><a title="License - Copyright Protected" rel="license" href="http://creativecommons.org/licenses/by-nc-nd/3.0/ph/"><img style="border-width:0" src="http://i.creativecommons.org/l/by-nc-nd/3.0/ph/88x31.png" alt="Creative Commons License" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.richardsantos.net/2011/02/02/saplink/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Step-by-Step Saprouter Certificate Renewal</title>
		<link>http://www.richardsantos.net/2010/07/26/step-by-step-saprouter-certificate-renewal/</link>
		<comments>http://www.richardsantos.net/2010/07/26/step-by-step-saprouter-certificate-renewal/#comments</comments>
		<pubDate>Mon, 26 Jul 2010 07:37:16 +0000</pubDate>
		<dc:creator>rs</dc:creator>
		
		<category><![CDATA[BASIS]]></category>

		<category><![CDATA[Technical]]></category>

		<category><![CDATA[SAP]]></category>

		<category><![CDATA[sap blogger]]></category>

		<category><![CDATA[saprouter]]></category>

		<category><![CDATA[sdn blogger]]></category>

		<guid isPermaLink="false">http://www.richardsantos.net/?p=330</guid>
		<description><![CDATA[1. You need to remove the old generated files(certreq, cred_v2, local.pse, srcert) from previous certificate request. To do this you can either rename these files or create a new folder and move these files into it.
2. Login to http://service.sap.com/saprouter-sncadd and click the &#8220;Apply now&#8221; button. From the list of SAProuters registered to your installation, choose [...]]]></description>
			<content:encoded><![CDATA[<p>1. You need to remove the old generated files(certreq, cred_v2, local.pse, srcert) from previous certificate request. To do this you can either rename these files or create a new folder and move these files into it.</p>
<p>2. Login to http://service.sap.com/saprouter-sncadd and click the &#8220;Apply now&#8221; button. From the list of SAProuters registered to your installation, choose the relevant “Distinguished Name”.</p>
<p>3. Generate the certificate Request. To do this go to your SAProuter server and run this command on the saprouter directory.</p>
<p>sapgenpse get_pse -v -r certreq -p local.pse “&lt;Distinguished Name&gt;”</p>
<p>Example:  sapgenpse get_pse -v -r certreq -p local.pse “CN=example, OU=0000123456, OU=SAProuter, O=SAP, C=DE”</p>
<p>You will be asked twice for a PIN here. Please choose a PIN and document it, you have to enter it identically both times. Then you will have to enter the same PIN every time you want to use this PSE.</p>
<p>4. Display the output file &#8220;certreq&#8221; and with copy&amp;paste (including the BEGIN and END statement) insert the certificate request into the text area of the same form on the SAP Service Marketplace from which you copied the Distinguished Name.</p>
<p>5. In response you will receive the certificate signed by the CA in the Service Marketplace. Copy&amp;paste the text to a new local file named &#8220;srcert&#8221;, which must be created in the same directory as the sapgenpse executable.</p>
<p>6. With this in turn you can install the certificate in your saprouter by calling: sapgenpse import_own_cert -c srcert -p local.pse</p>
<p>7. Now you will have to create the credentials for the SAProuter with the same program (if you omit -O &lt;user_for_saprouter&gt;, the credentials are created for the logged in user account).</p>
<p>sapgenpse seclogin -p local.pse -O &lt;user_for _saprouter&gt;</p>
<p>Note: The account of the service user should always be entered in full &lt;domainname&gt;&lt;username&gt;</p>
<p>8. This will create a file called &#8220;cred_v2&#8243; in the same directory as &#8220;local.pse&#8221;</p>
<p>9. To check if the certificate has been imported successfully, run the following command: sapgenpse get_my_name -v -n Issuer</p>
<p>The name of the Issuer should be: CN=SAProuter CA, OU=SAProuter, O=SAP, C=DE</p>
<p><a title="License - Copyright Protected" rel="license" href="http://creativecommons.org/licenses/by-nc-nd/3.0/ph/"><img style="border-width:0" src="http://i.creativecommons.org/l/by-nc-nd/3.0/ph/88x31.png" alt="Creative Commons License" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.richardsantos.net/2010/07/26/step-by-step-saprouter-certificate-renewal/feed/</wfw:commentRss>
		</item>
		<item>
		<title>SAP: BDC Upload Program Template</title>
		<link>http://www.richardsantos.net/2009/11/16/sap-bdc-upload-program-template/</link>
		<comments>http://www.richardsantos.net/2009/11/16/sap-bdc-upload-program-template/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 09:02:30 +0000</pubDate>
		<dc:creator>rs</dc:creator>
		
		<category><![CDATA[ABAP]]></category>

		<category><![CDATA[BDC]]></category>

		<category><![CDATA[SAP]]></category>

		<category><![CDATA[Technical]]></category>

		<category><![CDATA[sap blogger]]></category>

		<category><![CDATA[sdn blogger]]></category>

		<category><![CDATA[Upload]]></category>

		<guid isPermaLink="false">http://www.richardsantos.net/?p=322</guid>
		<description><![CDATA[I recently created my own BDC upload template that enables user to choose the processing mode, the update mode and options for Default Size, Continue After Commit, and Not a Batch Input Session easily.
Another good thing with this program is a functionality to generate an excel file template. The image below shows the actual screenshot.

I [...]]]></description>
			<content:encoded><![CDATA[<p>I recently created my own BDC upload template that enables user to choose the processing mode, the update mode and options for Default Size, Continue After Commit, and Not a Batch Input Session easily.</p>
<p>Another good thing with this program is a functionality to generate an excel file template. The image below shows the actual screenshot.</p>
<p><img title="BDC Upload Program" src="http://farm3.static.flickr.com/2762/4108051379_8123136bc4.jpg" alt="" width="500" height="375" /></p>
<p>I modified the SAP standard program BDCRECX1 and saved it as ZBDCRECX1. I used this for my BDC upload program instead of the standard BDCRECX1 include. You may download the source code of ZBDCRECX1 on the link below. I also included a sample upload program utilizing the ZBDCRECX1 include.</p>
<p><a href='http://richardsantos.net/wp-content/uploads/2009/11/zbdc_template.zip' >zbdc_template.zip</a></p>
<p>Enjoy coding! <img src='http://www.richardsantos.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.richardsantos.net/2009/11/16/sap-bdc-upload-program-template/feed/</wfw:commentRss>
		</item>
		<item>
		<title>SAP: How to activate SAP webgui</title>
		<link>http://www.richardsantos.net/2009/10/22/sap-how-to-activate-sap-webgui/</link>
		<comments>http://www.richardsantos.net/2009/10/22/sap-how-to-activate-sap-webgui/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 01:51:08 +0000</pubDate>
		<dc:creator>rs</dc:creator>
		
		<category><![CDATA[BASIS]]></category>

		<category><![CDATA[SAP]]></category>

		<category><![CDATA[Technical]]></category>

		<category><![CDATA[sap blogger]]></category>

		<category><![CDATA[sdn blogger]]></category>

		<category><![CDATA[webgui]]></category>

		<guid isPermaLink="false">http://www.richardsantos.net/?p=303</guid>
		<description><![CDATA[Below are the steps on how to activate webgui on SAP ECC 6.0:
1. Go to your Instance Profile parameter using tcode RZ10 and set the icm/server_port_0 parameter to PROT=HTTP,PORT=8000
2. Now go to transaction SICF and activate the following:
/sap/public/bc/its/mimes
/sap/bc/gui/sap/its/webgui
3. Run transaction SIAC_PUBLISH_ALL_INTERNAL to publish internet services.
4. Now browse to http://&#60;servername&#62;:&#60;icmport&#62;/sap/bc/gui/sap/its/webgui/
As simple as that, you can now [...]]]></description>
			<content:encoded><![CDATA[<p>Below are the steps on how to activate webgui on SAP ECC 6.0:</p>
<p><strong>1.</strong> Go to your Instance Profile parameter using tcode RZ10 and set the <strong>icm/server_port_0</strong> parameter to <strong>PROT=HTTP,PORT=8000</strong></p>
<p><strong>2.</strong> Now go to transaction SICF and activate the following:<br />
/sap/public/bc/its/mimes<br />
/sap/bc/gui/sap/its/webgui</p>
<p><strong>3.</strong> Run transaction SIAC_PUBLISH_ALL_INTERNAL to publish internet services.</p>
<p><strong>4.</strong> Now browse to http://&lt;servername&gt;:&lt;icmport&gt;/sap/bc/gui/sap/its/webgui/</p>
<p>As simple as that, you can now use SAP webgui.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.richardsantos.net/2009/10/22/sap-how-to-activate-sap-webgui/feed/</wfw:commentRss>
		</item>
		<item>
		<title>SAP: Export ALV to Excel File</title>
		<link>http://www.richardsantos.net/2009/08/28/sap-export-alv-to-excel-file/</link>
		<comments>http://www.richardsantos.net/2009/08/28/sap-export-alv-to-excel-file/#comments</comments>
		<pubDate>Fri, 28 Aug 2009 06:54:59 +0000</pubDate>
		<dc:creator>rs</dc:creator>
		
		<category><![CDATA[ABAP]]></category>

		<category><![CDATA[ALV]]></category>

		<category><![CDATA[SAP]]></category>

		<category><![CDATA[Technical]]></category>

		<category><![CDATA[EXCEL]]></category>

		<category><![CDATA[sap blogger]]></category>

		<category><![CDATA[sdn blogger]]></category>

		<guid isPermaLink="false">http://www.richardsantos.net/?p=288</guid>
		<description><![CDATA[&#32;
This tutorial will teach you how to export an ALV report to Microsoft Excel  file. This is intended for abap programmers who already have a knowledge in ALV reporting as I will not show here how to create an ALV.
Assuming you already have an ABAP program with ALV report, what you need to do is [...]]]></description>
			<content:encoded><![CDATA[<p>&#32;<br />
This tutorial will teach you how to export an ALV report to Microsoft Excel  file. This is intended for abap programmers who already have a knowledge in ALV reporting as I will not show here how to create an ALV.</p>
<p>Assuming you already have an ABAP program with ALV report, what you need to do is add a button or menu that will trigger the function that will export the ALV data to Excel file. but before that let&#8217;s start first with the declaration of types and variables that we&#8217;re going to use.</p>
<p>[codesyntax lang="abap" lines="no" title="VARIABLE DECLARATION"]<br />
TYPE-POOLS ole2.			 &#8221; we will use OLE objects<br />
DATA: v_excel 	TYPE ole2_object,        &#8221; Excel object<br />
      v_wrkbkl  TYPE ole2_object,        &#8221; list of workbooks<br />
      v_wrkbk   TYPE ole2_object,        &#8221; workbook<br />
      v_cell    TYPE ole2_object,        &#8221; cell<br />
      v_font    TYPE ole2_object,        &#8221; font<br />
      v_row	TYPE i.			 &#8221; row<br />
[/codesyntax]</p>
<p>Now we&#8217;re done with the variable declaration, let&#8217;s proceed to the main program. We will create 3 forms: One is for the preparation of the Excel file, second is for the data export from alv cells to excel cells, and third is for error handling.</p>
<p>The code below is for the preparation of excel application object.</p>
<p>[codesyntax lang="abap" lines="no" title="EXPORT_TO_EXCEL"]<br />
* it_main and wa_main is the tables used in your ALV<br />
FORM export_to_excel TABLES p_it_main STRUCTURE wa_main.<br />
&#32;<br />
* Create Excel object<br />
  CREATE OBJECT v_excel &#8216;EXCEL.APPLICATION&#8217;.<br />
&#32;<br />
* Call Error_handler form<br />
  PERFORM Error_Handler.<br />
&#32;<br />
* Show excel window<br />
  SET PROPERTY OF v_excel  &#8216;Visible&#8217; = 1.<br />
&#32;<br />
* get list of workbooks, initially empty<br />
  CALL METHOD OF v_excel &#8216;Workbooks&#8217; = v_wrkbkl.<br />
  PERFORM Error_Handler.<br />
&#32;<br />
* add a new workbook to workbook list<br />
  CALL METHOD OF v_wrkbkl &#8216;Add&#8217; = v_wrkbk.<br />
  PERFORM Error_Handler.<br />
&#32;<br />
* export ALV column header to Excel<br />
* PERFORM export_data USING rows columns boldfont value<br />
  PERFORM export_data USING 1 1 1 &#8216;header_1&#39;.<br />
  PERFORM export_data USING 1 2 1 &#8216;header_2&#39;.<br />
  PERFORM export_data USING 1 3 1 &#8216;header_3&#39;.<br />
  PERFORM export_data USING 1 4 1 &#8216;header_4&#39;.<br />
  PERFORM export_data USING 1 5 1 &#8216;header_5&#39;.<br />
&#32;<br />
* Loop through ALV rows and fields and transfer data to Excel<br />
  LOOP AT p_it_main INTO wa_main.<br />
    v_row = sy-tabix + 1.<br />
    PERFORM export_data USING v_row 1 0  wa_bill-field1.<br />
    PERFORM export_data USING v_row 2 0  wa_bill-field2.<br />
    PERFORM export_data USING v_row 3 0  wa_bill-field3.<br />
    PERFORM export_data USING v_row 4 0  wa_bill-field4.<br />
    PERFORM export_data USING v_row 5 0  wa_bill-field5.<br />
  ENDLOOP.<br />
  FREE OBJECT v_excel.<br />
  PERFORM error_handler.<br />
ENDFORM.<br />
[/codesyntax]</p>
<p>The next code is for the export_data form.</p>
<p>[codesyntax lang="abap" lines="no" title="EXPORT_DATA"]<br />
FORM export_data USING x y z val.<br />
  CALL METHOD OF v_excel &#8216;Cells&#8217; = v_cell<br />
    exporting<br />
    #1 = x<br />
    #2 = y.<br />
  PERFORM error_handler.<br />
&#32;<br />
  SET PROPERTY OF v_cell &#8216;Value&#8217; = val.<br />
  PERFORM error_handler.<br />
&#32;<br />
  GET PROPERTY OF v_cell &#8216;Font&#8217; = v_font.<br />
  PERFORM error_handler.<br />
&#32;<br />
  SET PROPERTY OF v_font &#8216;Bold&#8217; = z .<br />
  PERFORM error_handler.<br />
ENDFORM.<br />
[/codesyntax]</p>
<p>And for the code of error_handler form.</p>
<p>[codesyntax lang="abap" lines="no" title="ERROR_HANDLER"]<br />
FORM error_handler.<br />
  IF sy-subrc <> 0.<br />
    CALL METHOD OF v_excel &#8216;QUIT&#39;.<br />
    FREE OBJECT v_excel.<br />
    v_excel-handle = -1.<br />
    MESSAGE: &#8216;Failed to export to Excel.&#8217; TYPE &#8216;E&#39;.<br />
  ENDIF.<br />
ENDFORM.<br />
[/codesyntax]</p>
<p>Now that we&#8217;ve completed all the 3 forms, all you have to do now is call the export_to_excel form to initiate the export. In the example below, I call the export_to_excel form on user command &#8216;M_EXP&#8217;.</p>
<p>[codesyntax lang="abap" lines="no" title="USER_COMMAND"]<br />
FORM f_user_command USING p_ucomm LIKE sy-ucomm.<br />
  CASE p_ucomm.<br />
    WHEN &#8216;M_EXP&#39;.<br />
      PERFORM export_to_excel TABLES it_main.<br />
    WHEN &#8216;CANCEL&#8217; OR &#8216;BACK&#8217; OR &#8216;EXIT&#39;.<br />
      LEAVE TO SCREEN 0.<br />
  ENDCASE.<br />
ENDFORM.<br />
[/codesyntax]</p>
<p><a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/3.0/ph/" title="License - Copyright Protected"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-nc-nd/3.0/ph/88x31.png" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.richardsantos.net/2009/08/28/sap-export-alv-to-excel-file/feed/</wfw:commentRss>
		</item>
		<item>
		<title>SAP: table JEST (Individual Object Status)</title>
		<link>http://www.richardsantos.net/2009/06/22/sap-table-jest-individual-object-status/</link>
		<comments>http://www.richardsantos.net/2009/06/22/sap-table-jest-individual-object-status/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 05:25:34 +0000</pubDate>
		<dc:creator>rs</dc:creator>
		
		<category><![CDATA[ABAP]]></category>

		<category><![CDATA[General]]></category>

		<category><![CDATA[SAP]]></category>

		<category><![CDATA[Technical]]></category>

		<category><![CDATA[jest]]></category>

		<category><![CDATA[object status]]></category>

		<category><![CDATA[sap blogger]]></category>

		<category><![CDATA[sdn blogger]]></category>

		<category><![CDATA[table]]></category>

		<guid isPermaLink="false">http://www.richardsantos.net/?p=285</guid>
		<description><![CDATA[JEST table contains object status that is either system status or a user status. Field STAT corresponds to the Object Status. Field INACT identifies whether the status is currently active or inactive and field CHGNR is the change number that identifies the change documents for an object and is incremented serially.
TJ02 table contains the list [...]]]></description>
			<content:encoded><![CDATA[<p>JEST table contains object status that is either system status or a user status. Field STAT corresponds to the Object Status. Field INACT identifies whether the status is currently active or inactive and field CHGNR is the change number that identifies the change documents for an object and is incremented serially.</p>
<p>TJ02 table contains the list of system status and description. All statuses in this table are internal. This means they are consistent across objects and clients. A single object can have multiple active system statuses and user statuses &#038; inactive ones.</p>
<p>TJ30 table contains the list of user status and TJ30T contains their description.</p>
<p>You could use function module STATUS_READ read active object status and STATUS_OBJECT_READ to retrieve the status profile of an object number.</p>
<p><a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/3.0/ph/" title="License - Copyright Protected"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-nc-nd/3.0/ph/88x31.png" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.richardsantos.net/2009/06/22/sap-table-jest-individual-object-status/feed/</wfw:commentRss>
		</item>
		<item>
		<title>SAP: Customized Tcode for View Maintenance Screen</title>
		<link>http://www.richardsantos.net/2009/05/29/sap-customized-tcode-for-view-maintenance-screen/</link>
		<comments>http://www.richardsantos.net/2009/05/29/sap-customized-tcode-for-view-maintenance-screen/#comments</comments>
		<pubDate>Fri, 29 May 2009 05:34:15 +0000</pubDate>
		<dc:creator>rs</dc:creator>
		
		<category><![CDATA[BASIS]]></category>

		<category><![CDATA[SAP]]></category>

		<category><![CDATA[Technical]]></category>

		<category><![CDATA[ABAP]]></category>

		<category><![CDATA[sap blogger]]></category>

		<category><![CDATA[sdn blogger]]></category>

		<category><![CDATA[tcode]]></category>

		<category><![CDATA[view maintenance]]></category>

		<guid isPermaLink="false">http://www.richardsantos.net/?p=282</guid>
		<description><![CDATA[Instead of going to transaction code SM30 to maintain your table, why not create your own t-code for that specific table maintenance screen. To do this, here&#8217;s the step by step procedure I stumbled upon on some SAP technical forums:
1. Go to t-code SE93.
2. Type in your customized t-code on the transaction code field.
3. Click [...]]]></description>
			<content:encoded><![CDATA[<p>Instead of going to transaction code SM30 to maintain your table, why not create your own t-code for that specific table maintenance screen. To do this, here&#8217;s the step by step procedure I stumbled upon on some SAP technical forums:</p>
<p>1. Go to t-code SE93.<br />
2. Type in your customized t-code on the transaction code field.<br />
3. Click on Create button.<br />
4. Give it a short description and tick on the &#8220;Transaction with Parameters&#8221; radio button.<br />
2. On the next screen, type &#8220;SM30&#8243; in the transaction field.<br />
3. Check mark the skip initial screen.<br />
4. type &#8220;0&#8243; on screen field<br />
5. Under the Classification area, check mark on Inherit GUI attributes<br />
6. Tick all GUI support checkboxes.<br />
7. On the default value section, give this:</p>
<p>Name of Screen Field: VIEWNAME<br />
Value: <em>Your table name</em></p>
<p>Name of Screen Field: UPDATE<br />
Value: X X</p>
<p><a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/3.0/ph/" title="License - Copyright Protected"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-nc-nd/3.0/ph/88x31.png" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.richardsantos.net/2009/05/29/sap-customized-tcode-for-view-maintenance-screen/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>

