<?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>ABAP Tutorials &#187; PDF</title>
	<atom:link href="http://www.abap-tutorials.com/tag/pdf/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.abap-tutorials.com</link>
	<description>ABAP Tutorials, Guides, Training, Manuals</description>
	<lastBuildDate>Thu, 17 Nov 2011 07:43:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Programmer&#8217;s Guide to ABAP HR</title>
		<link>http://www.abap-tutorials.com/2010/01/14/programmers-guide-to-abap-hr/</link>
		<comments>http://www.abap-tutorials.com/2010/01/14/programmers-guide-to-abap-hr/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 15:21:14 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[ABAP HR]]></category>
		<category><![CDATA[Quick Reference]]></category>
		<category><![CDATA[SAP]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Clusters]]></category>
		<category><![CDATA[HR infotypes]]></category>
		<category><![CDATA[macros]]></category>
		<category><![CDATA[PDF]]></category>

		<guid isPermaLink="false">http://www.abap-tutorials.com/?p=1279</guid>
		<description><![CDATA[The following PDF file is a Programmer&#8217;s Guide to ABAP HR.      It covers following points in ABAP HR :   Brief description of modules in SAP-HR  Concept of Infotypes  Infotype Structures  Creation of infotype  Enhancement of infotype  HR Macros  Use of Provide statement  Cluster reading for [...]]]></description>
			<content:encoded><![CDATA[<p>The following PDF file is a Programmer&#8217;s Guide to ABAP HR. </p>
<p style="text-align: center;">
<div style="text-align: center;"><a href="http://www.abap-tutorials.com/wp-content/uploads/2010/01/sap-abap-jobs-3-300x200.jpg"></a></div>
<p><a href="http://www.abap-tutorials.com/wp-content/uploads/2010/01/sap-abap-jobs-3-300x200.jpg"></a> </p>
<div><a href="http://www.abap-tutorials.com/wp-content/uploads/2010/01/sap-abap-jobs-3-300x200.jpg"></a></div>
<p><a href="http://www.abap-tutorials.com/wp-content/uploads/2010/01/sap-abap-jobs-3-300x200.jpg"></p>
<div style="width: 100%; float: left;"><img class="aligncenter size-full wp-image-1283" title="SAP ABAP HR" src="http://www.abap-tutorials.com/wp-content/uploads/2010/01/sap-abap-jobs-3-300x200.jpg" alt="" width="300" height="200" /></div>
<p> </p>
<p></a>It covers following points in ABAP HR : </p>
<div id="_mcePaste">
<ul>
<li> Brief description of modules in SAP-HR</li>
<li> Concept of Infotypes</li>
<li> Infotype Structures</li>
<li> Creation of infotype</li>
<li> Enhancement of infotype</li>
<li> HR Macros</li>
<li> Use of Provide statement</li>
<li> Cluster reading for Payroll results</li>
<li> Example of PA letters infotype (Customer defined)</li>
</ul>
</div>
<p><span id="more-1279"></span> </p>
<p>Link : <a href="http://www.abap-tutorials.com/wp-content/uploads/pdfs/ABAP_HR_PROGRAMING.pdf" target="_blank">Programmer&#8217;s Guide to ABAP HR</a></p>
<pre><span style="color: #888888;">
<address style="text-align: justify;"><span style="color: #888888;">*Source: http://abaphr.com</span></address>

</span></pre>


<p>You might also be interested in these posts:<ol><li><a href='http://www.abap-tutorials.com/2009/11/18/abap-vs-abap-hr/' rel='bookmark' title='ABAP Vs. ABAP HR'>ABAP Vs. ABAP HR</a></li>
<li><a href='http://www.abap-tutorials.com/2009/11/20/macros-in-abap-hr-programming-i/' rel='bookmark' title='Macros in ABAP-HR Programming &#8211; I'>Macros in ABAP-HR Programming &#8211; I</a></li>
<li><a href='http://www.abap-tutorials.com/2010/08/16/upgrade-guide-from-sap-r3-4-6-to-ecc-6-0-for-abap-developers/' rel='bookmark' title='Upgrade Guide from SAP R/3 4.6 to ECC 6.0 for ABAP Developers'>Upgrade Guide from SAP R/3 4.6 to ECC 6.0 for ABAP Developers</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.abap-tutorials.com/2010/01/14/programmers-guide-to-abap-hr/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Convert Spool Request to PDF in SAP</title>
		<link>http://www.abap-tutorials.com/2009/08/22/convert-spool-request-to-pdf-in-sap/</link>
		<comments>http://www.abap-tutorials.com/2009/08/22/convert-spool-request-to-pdf-in-sap/#comments</comments>
		<pubDate>Sat, 22 Aug 2009 06:08:43 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[ABAP]]></category>
		<category><![CDATA[Quick Reference]]></category>
		<category><![CDATA[Report]]></category>
		<category><![CDATA[Sample Code]]></category>
		<category><![CDATA[SAP]]></category>
		<category><![CDATA[Upload Download]]></category>
		<category><![CDATA[Utility]]></category>
		<category><![CDATA[OTF]]></category>
		<category><![CDATA[PDF]]></category>
		<category><![CDATA[Spool]]></category>
		<category><![CDATA[Spool Request]]></category>

		<guid isPermaLink="false">http://naveenvishal.wordpress.com/?p=724</guid>
		<description><![CDATA[The following program converts the spool requests (can be seen using SP01) to PDF format on your PC. At Program execution, specify the path where to download the PDF file.     Program Code REPORT ZPDF line-size 80. * * Read spool job contents (OTF or ABAP list) and convert * to PDF, download PDF [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">The following program converts the spool requests (can be seen using SP01) to PDF format on your PC.</p>
<p style="text-align:justify;">At Program execution, specify the path where to download the PDF file.</p>
<p style="text-align:justify;"> </p>
<div class="mceTemp mceIEcenter" style="text-align:justify;">
<dt class="wp-caption-dt"><img class="size-full wp-image-725" title="Spool Request-To-PDF" src="http://naveenvishal.files.wordpress.com/2009/08/spool_to_pdf.jpg" alt="Spool Request-To-PDF" width="450" height="326" /></dt>
</div>
<p style="text-align:justify;"> </p>
<p style="text-align:justify;">
<p style="text-align:justify;">
<p style="text-align:justify;">
<p style="text-align:justify;">
<p style="text-align:justify;">
<p style="text-align:justify;">
<p style="text-align:justify;">
<p style="text-align:justify;">
<p style="text-align:justify;">
<p style="text-align:justify;">
<p style="text-align:justify;">
<p style="text-align:justify;">
<p style="text-align:justify;">
<p style="text-align:justify;">
<p style="text-align:justify;">
<p style="text-align:justify;">
<p style="text-align:justify;">
<p style="text-align:justify;">
<p style="text-align:justify;">
<p style="text-align:justify;">
<p style="text-align:justify;">
<p style="text-align:justify;">
<p style="text-align:justify;">
<p style="text-align:justify;">
<p style="text-align:justify;">
<p style="text-align:justify;">
<p style="text-align:justify;">
<p style="text-align:justify;">
<p style="text-align:justify;">
<p style="text-align:justify;">
<p style="text-align:justify;">
<p style="text-align:justify;"><span id="more-724"></span></p>
<p style="text-align:justify;"><strong><span style="color:#339966;">Program Code</span></strong></p>
<p style="text-align:justify;"><strong><span style="color:#339966;"><br />
</span></strong></p>
<p style="text-align:justify;">REPORT ZPDF line-size 80.</p>
<p style="text-align:justify;"><span style="color:#3366ff;">*</span></p>
<p style="text-align:justify;"><span style="color:#3366ff;">* Read spool job contents (OTF or ABAP list) and convert</span></p>
<p style="text-align:justify;"><span style="color:#3366ff;">* to PDF, download PDF</span></p>
<p style="text-align:justify;"><span style="color:#3366ff;">* B20K8A0IKH replace WS_DOWNLOAD with GUI_DOWNLOAD</span></p>
<p style="text-align:justify;"><span style="color:#3366ff;">*</span></p>
<p style="text-align:justify;">PARAMETERS:</p>
<p style="text-align:justify;">SPOOLNO LIKE TSP01-RQIDENT,</p>
<p style="text-align:justify;">DOWNLOAD AS CHECKBOX DEFAULT &#8216;X&#8217;,</p>
<p style="text-align:justify;">P_FILE LIKE RLGRAP-FILENAME DEFAULT &#8216;C:\temp\file.pdf&#8217;. </p>
<p style="text-align:justify;">DATA otf like itcoo occurs 100 with header line.</p>
<p style="text-align:justify;">DATA CANCEL.</p>
<p style="text-align:justify;">DATA PDF LIKE TLINE OCCURS 100 WITH HEADER LINE.</p>
<p style="text-align:justify;">DATA DOCTAB LIKE DOCS OCCURS 1 WITH HEADER LINE.</p>
<p style="text-align:justify;">DATA: NUMBYTES TYPE I,</p>
<p style="text-align:justify;">ARC_IDX LIKE TOA_DARA,</p>
<p style="text-align:justify;">pdfspoolid like tsp01-rqident,</p>
<p style="text-align:justify;">jobname like tbtcjob-jobname,</p>
<p style="text-align:justify;">jobcount like tbtcjob-jobcount,</p>
<p style="text-align:justify;">is_otf.</p>
<p style="text-align:justify;">data: client like tst01-dclient,</p>
<p style="text-align:justify;">name like tst01-dname,</p>
<p style="text-align:justify;">objtype like rststype-type,</p>
<p style="text-align:justify;">type like rststype-type.</p>
<p style="text-align:justify;">tables: tsp01.</p>
<p style="text-align:justify;"> </p>
<p style="text-align:justify;">select single * from tsp01 where rqident = spoolno.</p>
<p style="text-align:justify;">if sy-subrc &lt;&gt; 0.</p>
<p style="text-align:justify;">perform bd_textbox_err(rstxpdft) using 80</p>
<p style="text-align:justify;">&#8216;Spoolauftrag existiert nicht&#8217;(003).</p>
<p style="text-align:justify;">exit.</p>
<p style="text-align:justify;">endif.</p>
<p style="text-align:justify;">client = tsp01-rqclient.</p>
<p style="text-align:justify;">name   = tsp01-rqo1name.</p>
<p style="text-align:justify;">CALL FUNCTION &#8216;RSTS_GET_ATTRIBUTES&#8217;</p>
<p style="text-align:justify;">EXPORTING</p>
<p style="text-align:justify;">AUTHORITY     = &#8216;SP01&#8242;</p>
<p style="text-align:justify;">CLIENT        = client</p>
<p style="text-align:justify;">NAME          = name</p>
<p style="text-align:justify;">PART          = 1</p>
<p style="text-align:justify;">IMPORTING</p>
<p style="text-align:justify;"><span style="color:#3366ff;">*           CHARCO        =</span></p>
<p style="text-align:justify;"><span style="color:#3366ff;">*           CREATER       =</span></p>
<p style="text-align:justify;"><span style="color:#3366ff;">*           CREDATE       =</span></p>
<p style="text-align:justify;"><span style="color:#3366ff;">*           DELDATE       =</span></p>
<p style="text-align:justify;"><span style="color:#3366ff;">*           MAX_CREDATE   =</span></p>
<p style="text-align:justify;"><span style="color:#3366ff;">*           MAX_DELDATE   =</span></p>
<p style="text-align:justify;"><span style="color:#3366ff;">*           NON_UNIQ      =</span></p>
<p style="text-align:justify;"><span style="color:#3366ff;">*           NOOF_PARTS    =</span></p>
<p style="text-align:justify;"><span style="color:#3366ff;">*           RECTYP        =</span></p>
<p style="text-align:justify;"><span style="color:#3366ff;">*           SIZE          =</span></p>
<p style="text-align:justify;"><span style="color:#3366ff;">*           STOTYP        =</span></p>
<p style="text-align:justify;">TYPE          = type</p>
<p style="text-align:justify;">OBJTYPE       = objtype</p>
<p style="text-align:justify;">EXCEPTIONS</p>
<p style="text-align:justify;">FB_ERROR      = 1</p>
<p style="text-align:justify;">FB_RSTS_OTHER = 2</p>
<p style="text-align:justify;">NO_OBJECT     = 3</p>
<p style="text-align:justify;">NO_PERMISSION = 4.</p>
<p style="text-align:justify;">if objtype(3) = &#8216;OTF&#8217;.</p>
<p style="text-align:justify;">is_otf = &#8216;X&#8217;.</p>
<p style="text-align:justify;">else.</p>
<p style="text-align:justify;">is_otf = space.</p>
<p style="text-align:justify;">endif.</p>
<p style="text-align:justify;">if is_otf = &#8216;X&#8217;.</p>
<p style="text-align:justify;">CALL FUNCTION &#8216;CONVERT_OTFSPOOLJOB_2_PDF&#8217;</p>
<p style="text-align:justify;">EXPORTING</p>
<p style="text-align:justify;">SRC_SPOOLID                    = spoolno</p>
<p style="text-align:justify;">NO_DIALOG                      = &#8216; &#8216;</p>
<p style="text-align:justify;"><span style="color:#3366ff;">*       DST_DEVICE                     =</span></p>
<p style="text-align:justify;"><span style="color:#3366ff;">*       PDF_DESTINATION                =</span></p>
<p style="text-align:justify;">IMPORTING</p>
<p style="text-align:justify;">PDF_BYTECOUNT                  = numbytes</p>
<p style="text-align:justify;">PDF_SPOOLID                    = pdfspoolid</p>
<p style="text-align:justify;"><span style="color:#3366ff;">*       OTF_PAGECOUNT                  =</span></p>
<p style="text-align:justify;">BTC_JOBNAME                    = jobname</p>
<p style="text-align:justify;">BTC_JOBCOUNT                   = jobcount</p>
<p style="text-align:justify;">TABLES</p>
<p style="text-align:justify;">PDF                            = pdf</p>
<p style="text-align:justify;">EXCEPTIONS</p>
<p style="text-align:justify;">ERR_NO_OTF_SPOOLJOB            = 1</p>
<p style="text-align:justify;">ERR_NO_SPOOLJOB                = 2</p>
<p style="text-align:justify;">ERR_NO_PERMISSION              = 3</p>
<p style="text-align:justify;">ERR_CONV_NOT_POSSIBLE          = 4</p>
<p style="text-align:justify;">ERR_BAD_DSTDEVICE              = 5</p>
<p style="text-align:justify;">USER_CANCELLED                 = 6</p>
<p style="text-align:justify;">ERR_SPOOLERROR                 = 7</p>
<p style="text-align:justify;">ERR_TEMSEERROR                 = 8</p>
<p style="text-align:justify;">ERR_BTCJOB_OPEN_FAILED         = 9</p>
<p style="text-align:justify;">ERR_BTCJOB_SUBMIT_FAILED       = 10</p>
<p style="text-align:justify;">ERR_BTCJOB_CLOSE_FAILED        = 11.</p>
<p style="text-align:justify;">case sy-subrc.</p>
<p style="text-align:justify;">when 0.</p>
<p style="text-align:justify;">perform bd_textbox_msg(rstxpdft) using 80</p>
<p style="text-align:justify;">&#8216;Funktion CONVERT_OTFSPOOLJOB_2_PDF erfolgreich&#8217;(001).</p>
<p style="text-align:justify;">when 1.</p>
<p style="text-align:justify;">perform bd_textbox_err(rstxpdft) using 80</p>
<p style="text-align:justify;">&#8216;Kein OTF- und kein ABAP-Spoolauftrag&#8217;(002).</p>
<p style="text-align:justify;">exit.</p>
<p style="text-align:justify;">when 2.</p>
<p style="text-align:justify;">perform bd_textbox_err(rstxpdft) using 80</p>
<p style="text-align:justify;">&#8216;Spoolauftrag existiert nicht&#8217;(003).</p>
<p style="text-align:justify;">exit.</p>
<p style="text-align:justify;">when 3.</p>
<p style="text-align:justify;">perform bd_textbox_err(rstxpdft) using 80</p>
<p style="text-align:justify;">&#8216;Keine Berechtigung zum Lesen Spoolauftrag&#8217;(004).</p>
<p style="text-align:justify;">exit.</p>
<p style="text-align:justify;">when others.</p>
<p style="text-align:justify;">perform bd_textbox_err(rstxpdft) using 80</p>
<p style="text-align:justify;">&#8216;Fehler bei Funktion CONVERT_OTFSPOOLJOB_2_PDF&#8217;(005).</p>
<p style="text-align:justify;">exit.</p>
<p style="text-align:justify;">endcase.</p>
<p style="text-align:justify;">else.</p>
<p style="text-align:justify;">CALL FUNCTION &#8216;CONVERT_ABAPSPOOLJOB_2_PDF&#8217;</p>
<p style="text-align:justify;">EXPORTING</p>
<p style="text-align:justify;">SRC_SPOOLID                    = spoolno</p>
<p style="text-align:justify;">NO_DIALOG                      = &#8216; &#8216;</p>
<p style="text-align:justify;"><span style="color:#3366ff;">*       DST_DEVICE                     =</span></p>
<p style="text-align:justify;"><span style="color:#3366ff;">*       PDF_DESTINATION                =</span></p>
<p style="text-align:justify;">IMPORTING</p>
<p style="text-align:justify;">PDF_BYTECOUNT                  = numbytes</p>
<p style="text-align:justify;">PDF_SPOOLID                    = pdfspoolid</p>
<p style="text-align:justify;"><span style="color:#3366ff;">*       LIST_PAGECOUNT                 =</span></p>
<p style="text-align:justify;">BTC_JOBNAME                    = jobname</p>
<p style="text-align:justify;">BTC_JOBCOUNT                   = jobcount</p>
<p style="text-align:justify;">TABLES</p>
<p style="text-align:justify;">PDF                            = pdf</p>
<p style="text-align:justify;">EXCEPTIONS</p>
<p style="text-align:justify;">ERR_NO_ABAP_SPOOLJOB           = 1</p>
<p style="text-align:justify;">ERR_NO_SPOOLJOB                = 2</p>
<p style="text-align:justify;">ERR_NO_PERMISSION              = 3</p>
<p style="text-align:justify;">ERR_CONV_NOT_POSSIBLE          = 4</p>
<p style="text-align:justify;">ERR_BAD_DESTDEVICE             = 5</p>
<p style="text-align:justify;">USER_CANCELLED                 = 6</p>
<p style="text-align:justify;">ERR_SPOOLERROR                 = 7</p>
<p style="text-align:justify;">ERR_TEMSEERROR                 = 8</p>
<p style="text-align:justify;">ERR_BTCJOB_OPEN_FAILED         = 9</p>
<p style="text-align:justify;">ERR_BTCJOB_SUBMIT_FAILED       = 10</p>
<p style="text-align:justify;">ERR_BTCJOB_CLOSE_FAILED        = 11.</p>
<p style="text-align:justify;">case sy-subrc.</p>
<p style="text-align:justify;">when 0.</p>
<p style="text-align:justify;">perform bd_textbox_msg(rstxpdft) using 80</p>
<p style="text-align:justify;">&#8216;Funktion CONVERT_ABAPSPOOLJOB_2_PDF erfolgreich&#8217;(006).</p>
<p style="text-align:justify;">when 1.</p>
<p style="text-align:justify;">perform bd_textbox_err(rstxpdft) using 80</p>
<p style="text-align:justify;">&#8216;Kein OTF- und kein ABAP-Spoolauftrag&#8217;(002).</p>
<p style="text-align:justify;">exit.</p>
<p style="text-align:justify;">when 2.</p>
<p style="text-align:justify;">perform bd_textbox_err(rstxpdft) using 80</p>
<p style="text-align:justify;">&#8216;Spoolauftrag existiert nicht&#8217;(003).</p>
<p style="text-align:justify;">exit.</p>
<p style="text-align:justify;">when 3.</p>
<p style="text-align:justify;">perform bd_textbox_err(rstxpdft) using 80</p>
<p style="text-align:justify;">&#8216;Keine Berechtigung zum Lesen Spoolauftrag&#8217;(004).</p>
<p style="text-align:justify;">exit.</p>
<p style="text-align:justify;">when others.</p>
<p style="text-align:justify;">perform bd_textbox_err(rstxpdft) using 80</p>
<p style="text-align:justify;">&#8216;Fehler bei Funktion CONVERT_ABAPSPOOLJOB_2_PDF&#8217;(007).</p>
<p style="text-align:justify;">exit.</p>
<p style="text-align:justify;">endcase.</p>
<p style="text-align:justify;">endif.</p>
<p style="text-align:justify;"><span style="color:#3366ff;">*************** download PDF file ***********</span></p>
<p style="text-align:justify;">check download = &#8216;X&#8217;.</p>
<p style="text-align:justify;">if not ( jobname is initial ).</p>
<p style="text-align:justify;">perform bd_textbox_var2_msg(rstxpdft) using 80</p>
<p style="text-align:justify;">&#8216;Konvertierung per Hintergrundjob&#8217;(008)</p>
<p style="text-align:justify;">jobname</p>
<p style="text-align:justify;">jobcount.</p>
<p style="text-align:justify;">exit.</p>
<p style="text-align:justify;">endif.</p>
<p style="text-align:justify;">perform download_w_ext(RSTXPDFT) tables pdf</p>
<p style="text-align:justify;">using p_file</p>
<p style="text-align:justify;">&#8216;.pdf&#8217;</p>
<p style="text-align:justify;">&#8216;BIN&#8217;</p>
<p style="text-align:justify;">numbytes</p>
<p style="text-align:justify;">cancel.</p>
<p style="text-align:justify;">if cancel = space.</p>
<p style="text-align:justify;">data: s(80).</p>
<p style="text-align:justify;">s = numbytes. condense s.</p>
<p style="text-align:justify;">concatenate s &#8216;Bytes heruntergeladen in Datei&#8217;(009)</p>
<p style="text-align:justify;">into s separated by space.</p>
<p style="text-align:justify;">perform bd_textbox_var1_msg(RSTXPDFT) using 80</p>
<p style="text-align:justify;">s</p>
<p style="text-align:justify;">p_file.</p>
<p style="text-align:justify;">endif.</p>
<p style="text-align:justify;"> </p>
<pre style="text-align:justify;">Note: There may be a standard solution provided, but thats what customized PDF converter we use in our premises.</pre>


<p>You might also be interested in these posts:<ol><li><a href='http://www.abap-tutorials.com/2009/08/24/tic-tac-toe-game-in-sap/' rel='bookmark' title='Tic-Tac-Toe Game in SAP'>Tic-Tac-Toe Game in SAP</a></li>
<li><a href='http://www.abap-tutorials.com/2009/09/16/abap-program-for-table-maintenance-in-sap/' rel='bookmark' title='ABAP Program for Table Maintenance in SAP'>ABAP Program for Table Maintenance in SAP</a></li>
<li><a href='http://www.abap-tutorials.com/2009/08/06/search-for-smartforms-in-your-language/' rel='bookmark' title='ABAP Program to Search For SMARTFORMS in your Language'>ABAP Program to Search For SMARTFORMS in your Language</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.abap-tutorials.com/2009/08/22/convert-spool-request-to-pdf-in-sap/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

