<?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>SAPLab-SAP Tips! ABAP Tips! &#187; ABAP Tips</title>
	<atom:link href="http://www.saplab.net/tag/abap-tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.saplab.net</link>
	<description>SAP ABAP User!</description>
	<lastBuildDate>Fri, 09 Dec 2011 14:09:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>SAP ABAP Tips-How to Debug Pop-up window</title>
		<link>http://www.saplab.net/sap-abap-tips-how-to-debug-pop-up-window/</link>
		<comments>http://www.saplab.net/sap-abap-tips-how-to-debug-pop-up-window/#comments</comments>
		<pubDate>Sun, 16 Jan 2011 19:12:02 +0000</pubDate>
		<dc:creator>Jack</dc:creator>
				<category><![CDATA[ABAP Syntax]]></category>
		<category><![CDATA[ABAP]]></category>
		<category><![CDATA[ABAP Tips]]></category>
		<category><![CDATA[Debug]]></category>

		<guid isPermaLink="false">http://www.saplab.net/?p=159</guid>
		<description><![CDATA[The okcode field is deactivated when a modal window (the technical name of popup windows) is displayed, so it seems...]]></description>
			<content:encoded><![CDATA[<p>The okcode field is deactivated when a <strong>modal window</strong> (the technical name of <strong>popup windows</strong>) is displayed, so it seems impossible to enter the debugger (using /H okcode).</p>
<p>In common dialogs, the okcode field is available:<br />
<img src="http://wiki.sdn.sap.com/wiki/download/attachments/83657452/popup_okcode_0.png?version=1&amp;modificationDate=1274183045179" alt="" /></p>
<p>But it is not available in modal windows (we see it but we can&#8217;t enter anything in it):<br />
<img src="http://wiki.sdn.sap.com/wiki/download/attachments/83657452/popup_okcode_1.png?version=1&amp;modificationDate=1274183045167" alt="" /></p>
<p>The solution is to create on the frontend a SAPGUI shortcut (file with extension .SAP), of type <strong>System Command</strong> and command <strong>/H</strong>, and drag and drop it from Windows desktop to the SAP modal window. The creation of SAPGUI shortcuts is explained here: <a title="SAPGUI shortcuts" href="http://wiki.sdn.sap.com/wiki/display/ABAP/SAPGUI+shortcuts">SAPGUI shortcuts</a>.</p>
<p>For official information, see <a rel="nofollow" href="http://service.sap.com/sap/support/notes/118184">Note 118184 &#8211; SAPshortcut &#8211; debugger start</a></p>
<p>via<a href="http://wiki.sdn.sap.com/wiki/display/ABAP/ABAP+Tip-How+to+Debug+Pop-up+window" target="_blank"> SAP wiki</a></p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://www.saplab.net/abap-tips-downloadword-version/" title="ABAP Tips download(MS Word version)">ABAP Tips download(MS Word version)</a></li><li><a href="http://www.saplab.net/sap-po-reservation-call-funtion/" title="SAP PO Reservation Call funtion">SAP PO Reservation Call funtion</a></li><li><a href="http://www.saplab.net/sap-tips-retrieve-deleted-programs-in-sap/" title="SAP Tips: Retrieve Deleted Programs in SAP">SAP Tips: Retrieve Deleted Programs in SAP</a></li><li><a href="http://www.saplab.net/sap-abap-programs-for-beginners/" title="SAP ABAP Programs for Beginners">SAP ABAP Programs for Beginners</a></li><li><a href="http://www.saplab.net/sap-abap-pending-purchase-recquisition-pr-report/" title="SAP ABAP Pending Purchase Recquisition (PR) Report">SAP ABAP Pending Purchase Recquisition (PR) Report</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.saplab.net/sap-abap-tips-how-to-debug-pop-up-window/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SAP T-CODE Working with files on SAP</title>
		<link>http://www.saplab.net/sap-t-code-working-with-files-on-sap/</link>
		<comments>http://www.saplab.net/sap-t-code-working-with-files-on-sap/#comments</comments>
		<pubDate>Sat, 15 Jan 2011 11:51:37 +0000</pubDate>
		<dc:creator>Jack</dc:creator>
				<category><![CDATA[T-CODE]]></category>
		<category><![CDATA[ABAP Tips]]></category>
		<category><![CDATA[SAP File]]></category>
		<category><![CDATA[SAP files]]></category>
		<category><![CDATA[SAP Tips]]></category>

		<guid isPermaLink="false">http://www.saplab.net/?p=131</guid>
		<description><![CDATA[The following are useful transactions for manipulating files on the directories of the SAP server: CG3Y &#8211; Download a file...]]></description>
			<content:encoded><![CDATA[<p>The following are useful transactions for manipulating files on the directories of the SAP server:</p>
<ul>
<li><strong>CG3Y</strong> &#8211; Download a file from SAP (e.g. /usr/sap/file.txt) to your computer</li>
<li><strong>CG3Z</strong> &#8211; Upload a file from your computer to an SAP directory</li>
<li><strong>AL11</strong> &#8211; Browse files located on the SAP directories</li>
</ul>
<p>via SAP <a href="http://www.erpgenie.com/interfaces/1541-working-with-files-on-sap" target="_blank">ERPgie.com </a></p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://www.saplab.net/sap-abap-tips-how-to-debug-pop-up-window/" title="SAP ABAP Tips-How to Debug Pop-up window">SAP ABAP Tips-How to Debug Pop-up window</a></li><li><a href="http://www.saplab.net/abap-transaction-codes-abap-tcode/" title="ABAP Transaction Codes ( ABAP TCODE)">ABAP Transaction Codes ( ABAP TCODE)</a></li><li><a href="http://www.saplab.net/sap-abap-performance-standards/" title="SAP ABAP Performance Standards">SAP ABAP Performance Standards</a></li><li><a href="http://www.saplab.net/how-to-find-menu-path-if-i-know-tcode-in-spro/" title="How to find menu path if i know Tcode in SPRO?">How to find menu path if i know Tcode in SPRO?</a></li><li><a href="http://www.saplab.net/ale-tcode-and-program/" title="ALE TCODE and program">ALE TCODE and program</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.saplab.net/sap-t-code-working-with-files-on-sap/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SAP ABAP Performance Standards</title>
		<link>http://www.saplab.net/sap-abap-performance-standards/</link>
		<comments>http://www.saplab.net/sap-abap-performance-standards/#comments</comments>
		<pubDate>Mon, 21 Dec 2009 06:48:36 +0000</pubDate>
		<dc:creator>Jack</dc:creator>
				<category><![CDATA[ABAP]]></category>
		<category><![CDATA[ABAP Tips]]></category>
		<category><![CDATA[Checklist]]></category>
		<category><![CDATA[Performance]]></category>

		<guid isPermaLink="false">http://www.saplab.net/sap-abap-performance-standards/</guid>
		<description><![CDATA[SAP ABAP Performance Standards via saptechnical.com Description Result (Y, N or N/A) Comments Run Extended syntax checks with character literals...]]></description>
			<content:encoded><![CDATA[<p>SAP ABAP Performance Standards via <a href="http://www.saptechnical.com/Tutorials/ABAP/PerformanceCheckList.htm" target="_blank">saptechnical.com</a></p>
<table>
<tbody>
<tr>
<td class="maintext">
<table border="1" cellspacing="1" cellpadding="7" width="527">
<tbody>
<tr>
<td bgcolor="#e6e6e6" width="70%"><b><font size="2" face="Arial">
<p align="center">Description</p>
<p>                   </font></b></td>
<td bgcolor="#e6e6e6" width="55"><b><font size="2" face="Arial">
<p align="center">Result (Y, N or N/A)</p>
<p>                   </font></b></td>
<td bgcolor="#e6e6e6" width="96"><b><font size="2" face="Arial">
<p align="center">Comments</p>
<p>                   </font></b></td>
</tr>
<tr>
<td width="70%"><font size="2" face="Arial">
<p>Run Extended syntax checks with character literals checkbox switched on &amp; Code Inspector to rectify all relevant errors and warning (e.g. Use the results of the above checks to remove all variables/constants etc that are declared but are not used)</p>
<p>                 </font></td>
<td width="55">&#160;</td>
<td width="96">&#160;</td>
</tr>
<tr>
<td width="70%" bordercolordark="#000000"><font size="2" face="Arial">
<p>Transaction SE30 (ABAP Runtime Analysis) must be checked to measure/compare program performance/runtime if program has multiple inefficient databases selects or complicated internal table operations</p>
<p>                 </font></td>
<td width="55">&#160;</td>
<td width="96">&#160;</td>
</tr>
<tr>
<td width="70%"><font size="2" face="Arial">
<p>Use transaction ST05 (SQL Trace) to see what indices your database accesses are using. Check these indices against your “where” clause to assure they are significant. Check other indices for this table and where you have to change your “where” clause to use it. Create new indices if necessary, but do not forget to check the impact by consulting onsite coordinator.</p>
<p>                 </font></td>
<td width="55">&#160;</td>
<td width="96">&#160;</td>
</tr>
<tr>
<td width="70%"><font size="2" face="Arial">
<p>TYPE (data element) command is used while declaring the fields whenever feasible instead of LIKE. Remember not always the data element name matches with the table field name</p>
<p>                 </font></td>
<td width="55">&#160;</td>
<td width="96">&#160;</td>
</tr>
<tr>
<td width="70%"><font size="2" face="Arial">
<p>Internal Table is defined with “TYPE STANDARD TABLE OF” &amp; Work-Areas is used instead of header lines</p>
<p>                 </font></td>
<td width="55">&#160;</td>
<td width="96">&#160;</td>
</tr>
<tr>
<td width="70%"><font size="2" face="Arial">
<p>Global variables are minimized by declaring local variables or by passing variables through parameters &amp; arguments while creating internal subroutine(s)</p>
<p>                 </font></td>
<td width="55">&#160;</td>
<td width="96">&#160;</td>
</tr>
<tr>
<td width="70%"><font size="2" face="Arial">
<p>In SELECT statement, only the required fields are selected in the same order as they reside on the database table/structure/view</p>
<p>                 </font></td>
<td width="55">&#160;</td>
<td width="96">&#160;</td>
</tr>
<tr>
<td width="70%"><font size="2" face="Arial">
<p>For selecting single row from a database table, “SELECT UP to 1 Rows” is used. “Select Single” is used only when full primary key combination is known</p>
<p>                 </font></td>
<td width="55">&#160;</td>
<td width="96">&#160;</td>
</tr>
<tr>
<td width="70%"><font size="2" face="Arial">
<p>No SELECT * is used</p>
<p>                 </font></td>
<td width="55">&#160;</td>
<td width="96">&#160;</td>
</tr>
<tr>
<td width="70%"><font size="2" face="Arial">
<p>Use “SELECT INTO TABLE” rather than “SELECT INTO CORRESPONDING FIELDS OF TABLE”</p>
<p>                 </font></td>
<td width="55">&#160;</td>
<td width="96">&#160;</td>
</tr>
<tr>
<td width="70%"><font size="2" face="Arial">
<p>Always specify as many primary keys as possible in WHERE clause to make the Select efficient</p>
<p>                 </font></td>
<td width="55">&#160;</td>
<td width="96">&#160;</td>
</tr>
<tr>
<td width="70%"><font size="2" face="Arial">
<p>Always select into an internal table, except when the table will be very large (i.e., when the internal table will be greater than 500,000 records). Use “Up to N Rows” when the number of records needed is known</p>
<p>                 </font></td>
<td width="55">&#160;</td>
<td width="96">&#160;</td>
</tr>
<tr>
<td width="70%"><font size="2" face="Arial">
<p>Select statement within a GET event is not used</p>
<p>                 </font></td>
<td width="55">&#160;</td>
<td width="96">&#160;</td>
</tr>
<tr>
<td width="70%"><font size="2" face="Arial">
<p>Wild cards like ‘A%’ is avoided as much as possible</p>
<p>                 </font></td>
<td width="55">&#160;</td>
<td width="96">&#160;</td>
</tr>
<tr>
<td width="70%"><font size="2" face="Arial">
<p>Nested Select is not used instead “Inner Join” and/or “For all Entries” is used. “For all Entries” is to be used over “Loop at ITAB / Select / ENDLOOP” (FOR ALL ENTRIES retrieves a unique result set so ensure you retrieve the full key from the database)</p>
<p>                 </font></td>
<td width="55">&#160;</td>
<td width="96">&#160;</td>
</tr>
<tr>
<td width="70%"><font size="2" face="Arial">
<p>When creating joins over database tables there should be an index at least on the inner table for the fields in the join condition else use “ FOR ALL ENTRIES” select statement</p>
<p>                 </font></td>
<td width="55">&#160;</td>
<td width="96">&#160;</td>
</tr>
<tr>
<td width="70%"><font size="2" face="Arial">
<p>Usage of JOIN is limited to a maximum of 2 i.e. not more than 3 database tables are joined at one time</p>
<p>                 </font></td>
<td width="55">&#160;</td>
<td width="96">&#160;</td>
</tr>
<tr>
<td width="70%"><font size="2" face="Arial">
<p>CHECK that the internal table used in FOR ALL ENTRIES is NOT empty as this will retrieve all entries from the table</p>
<p>                 </font></td>
<td width="55">&#160;</td>
<td width="96">&#160;</td>
</tr>
<tr>
<td width="70%"><font size="2" face="Arial">
<p>Delete adjacent duplicate entries from internal table before selection from database table using “ FOR ALL ENTRIES” statement</p>
<p>                 </font></td>
<td width="55">&#160;</td>
<td width="96">&#160;</td>
</tr>
<tr>
<td width="70%"><font size="2" face="Arial">
<p>For copying internal tables use ‘=’ operator instead of Looping &amp; Appending</p>
<p>                 </font></td>
<td width="55">&#160;</td>
<td width="96">&#160;</td>
</tr>
<tr>
<td width="70%"><font size="2" face="Arial">
<p>SORT inside a LOOP is not used</p>
<p>                 </font></td>
<td width="55">&#160;</td>
<td width="96">&#160;</td>
</tr>
<tr>
<td width="70%"><font size="2" face="Arial">
<p>Sort internal table by fields in the correct order, which are used in a READ TABLE statement using BINARY SEARCH. If the order of sorting is invalid the BINARY SEARCH will never work</p>
<p>                 </font></td>
<td width="55">&#160;</td>
<td width="96">&#160;</td>
</tr>
<tr>
<td width="70%"><font size="2" face="Arial">
<p>For large internal tables where only some rows are to be processed, use SORT and then the READ TABLE command is used to set index to first relevant row before looping from that index. Use CHECK or IF…EXIT…ENDIF as appropriate to exit from the loop</p>
<p>                 </font></td>
<td width="55">&#160;</td>
<td width="96">&#160;</td>
</tr>
<tr>
<td width="70%"><font size="2" face="Arial">
<p>Sort fields and Sort Order on the SORT statement should be mentioned explicitly (e.g. SORT ITAB BY FLD1 FLD2 ASCENDING)</p>
<p>                 </font></td>
<td width="55">&#160;</td>
<td width="96">&#160;</td>
</tr>
<tr>
<td width="70%"><font size="2" face="Arial">
<p>Hashed table is used for processing large amount of data (provided that you access single records only, and all with a fully specified key)</p>
<p>                 </font></td>
<td width="55">&#160;</td>
<td width="96">&#160;</td>
</tr>
<tr>
<td width="70%"><font size="2" face="Arial">
<p>DELETE or SORT is not used on a hashed table since it increases memory consumption</p>
<p>                 </font></td>
<td width="55">&#160;</td>
<td width="96">&#160;</td>
</tr>
<tr>
<td width="70%"><font size="2" face="Arial">
<p>Sorted table is used for range accesses involving table key or index accesses</p>
<p>                 </font></td>
<td width="55">&#160;</td>
<td width="96">&#160;</td>
</tr>
<tr>
<td width="70%"><font size="2" face="Arial">
<p>Fields specified in the WHERE condition with the critical operators NOT and &lt;&gt; (negative SQL statements) cannot be used for a search using database indexes. Whenever possible formulate SQL statements positively</p>
<p>                 </font></td>
<td width="55">&#160;</td>
<td width="96">&#160;</td>
</tr>
<tr>
<td width="70%"><font size="2" face="Arial">
<p>When coding IF or CASE, testing conditions are nested so that the most frequently true conditions are processed first. Also CASE is used instead of IF when testing multiple fields “equal to” something</p>
<p>                 </font></td>
<td width="55">&#160;</td>
<td width="96">&#160;</td>
</tr>
<tr>
<td width="70%"><font size="2" face="Arial">
<p>LOOP AT ITAB INTO WORKAREA WHERE K = ‘XXX’ should be used instead of LOOP AT ITAB INTO WORKAREA / CHECK ITAB-K = ‘XXX’.</p>
<p>Also READ TABLE INTO WORKAREA should be used instead of only READ TABLE.</p>
<p>                 </font></td>
<td width="55">&#160;</td>
<td width="96">&#160;</td>
</tr>
<tr>
<td width="70%"><font size="2" face="Arial">
<p>After the APPEND statement inside a loop, the work area that has been appended is cleared</p>
<p>                 </font></td>
<td width="55">&#160;</td>
<td width="96">&#160;</td>
</tr>
<tr>
<td width="70%"><font size="2" face="Arial">
<p>Internal tables, Work areas &amp; Global Variables are freed when no longer needed (e.g. using the FREE / REFRESH command), especially when the tables are large or the program is a batch program</p>
<p>                 </font></td>
<td width="55">&#160;</td>
<td width="96">&#160;</td>
</tr>
<tr>
<td width="70%"><font size="2" face="Arial">
<p>Do not delete the records of internal table inside the Loop – End loop.</p>
<p>                   <b>
<p>Do not use:</p>
<p>  LOOP AT ITAB WHERE EQUNR = ‘00001011’.</b>
<p>DELETE ITAB.</p>
<p>ENDLOOP.</p>
<p>                   <b>
<p>Use:</p>
<p>  DELETE ITAB WHERE EQUNR = ‘00001011’.<i>&#160;</i></b></font></td>
<td width="55">&#160;</td>
<td width="96">&#160;</td>
</tr>
<tr>
<td width="70%"><font size="2" face="Arial">
<p>Use the MODIFY ITAB &#8230; TRANSPORTING f1 f2 &#8230; for single line, and MODIFY ITAB &#8230; TRANSPORTING f1 f2 &#8230; WHERE condition for a set of line, to accelerate the updating of internal table</p>
<p>                 </font></td>
<td width="55">&#160;</td>
<td width="96">&#160;</td>
</tr>
<tr>
<td width="70%"><font size="2" face="Arial">
<p>If possible, Update/Insert statement is used instead of Modify</p>
<p>                 </font></td>
<td width="55">&#160;</td>
<td width="96">&#160;</td>
</tr>
<tr>
<td width="70%"><font size="2" face="Arial">
<p>Is the following steps ensured during database updates?</p>
<p>                 </font>
<ul>
<li><font size="2" face="Arial">Lock data to be edited</font></li>
<li><font size="2" face="Arial">Read current data from the database</font></li>
<li><font size="2" face="Arial">Process data and write it to the database</font></li>
<li><font size="2" face="Arial">Release the locks set at the beginning</font></li>
</ul>
</td>
<td width="55">&#160;</td>
<td width="96">&#160;</td>
</tr>
<tr>
<td width="70%"><font size="2" face="Arial">
<p>Try to avoid logical databases. If your program uses a logical database, but does not require all fields belonging to a certain GET event, always use the FIELDS addition to reduce the amount of data selected by the logical database</p>
<p>                 </font></td>
<td width="55">&#160;</td>
<td width="96">&#160;</td>
</tr>
<tr>
<td width="70%"><font size="2" face="Arial">
<p>Avoid the aggregate (Count, Max, Min) functions in the database selection</p>
<p>                 </font></td>
<td width="55">&#160;</td>
<td width="96">&#160;</td>
</tr>
<tr>
<td width="70%"><font size="2" face="Arial">
<p>Use Parallel Cursor methods for nested loop into the internal tables if second internal table contains considerable number of records</p>
<p>                 </font></td>
<td width="55">&#160;</td>
<td width="96">&#160;</td>
</tr>
<tr>
<td width="70%"><font size="2" face="Arial">
<p>In Smartform/ Sapscript do not make redundant data retrieval where data is available in interface</p>
<p>                 </font></td>
<td width="55">&#160;</td>
<td width="96">&#160;</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://www.saplab.net/sap-abap-tips-how-to-debug-pop-up-window/" title="SAP ABAP Tips-How to Debug Pop-up window">SAP ABAP Tips-How to Debug Pop-up window</a></li><li><a href="http://www.saplab.net/sap-t-code-working-with-files-on-sap/" title="SAP T-CODE Working with files on SAP">SAP T-CODE Working with files on SAP</a></li><li><a href="http://www.saplab.net/abap-tips-get-local-printer-information/" title="ABAP Tips: Get local printer information">ABAP Tips: Get local printer information</a></li><li><a href="http://www.saplab.net/abap-tips-ebook/" title="ABAP Tips-ebook">ABAP Tips-ebook</a></li><li><a href="http://www.saplab.net/abap-tips-downloadword-version/" title="ABAP Tips download(MS Word version)">ABAP Tips download(MS Word version)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.saplab.net/sap-abap-performance-standards/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ABAP Tips: Get local printer information</title>
		<link>http://www.saplab.net/abap-tips-get-local-printer-information/</link>
		<comments>http://www.saplab.net/abap-tips-get-local-printer-information/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 07:37:30 +0000</pubDate>
		<dc:creator>Jack</dc:creator>
				<category><![CDATA[ABAP Program]]></category>
		<category><![CDATA[ABAP Tips]]></category>
		<category><![CDATA[Print]]></category>

		<guid isPermaLink="false">http://www.saplab.net/abap-tips-get-local-print-information/</guid>
		<description><![CDATA[How to get local print machine information? Pls check below program. DATA: PRDEFAULT LIKE FRPRLIST-PRNAME , IS_FRONTEND LIKE RSPOTYPE-MODE ....]]></description>
			<content:encoded><![CDATA[<p>How to get local print machine information? Pls check below program.</p>
</p>

<div class="wp_syntax"><div class="code"><pre class="abap" style="font-family:monospace;"><span style="color: #cc4050; text-transform: uppercase; font-weight: bold; zzz:data;">DATA</span><span style="color: #808080;">:</span> PRDEFAULT <span style="color: #500066; text-transform: uppercase; font-weight: bold; zzz:keyword;">LIKE</span>  FRPRLIST<span style="color: #808080;">-</span>PRNAME <span style="color: #808080;">,</span>
      IS_FRONTEND <span style="color: #500066; text-transform: uppercase; font-weight: bold; zzz:keyword;">LIKE</span>  RSPOTYPE<span style="color: #808080;">-</span><span style="color: #500066; text-transform: uppercase; font-weight: bold; zzz:keyword;">MODE</span> <span style="color: #808080;">.</span>
<span style="color: #cc4050; text-transform: uppercase; font-weight: bold; zzz:data;">DATA</span><span style="color: #808080;">:</span> LIST <span style="color: #500066; text-transform: uppercase; font-weight: bold; zzz:keyword;">LIKE</span> FRPRLIST <span style="color: #500066; text-transform: uppercase; font-weight: bold; zzz:keyword;">OCCURS</span> <span style="color: #3399ff;">0</span> <span style="color: #500066; text-transform: uppercase; font-weight: bold; zzz:keyword;">WITH HEADER LINE</span><span style="color: #808080;">.</span>
&nbsp;
<span style="color: #005066; text-transform: uppercase; font-weight: bold; zzz:statement;">CALL FUNCTION</span> <span style="color: #4da619;">'RSPO_FRONTEND_PRINTERS_FOR_DEV'</span>
  <span style="color: #500066; text-transform: uppercase; font-weight: bold; zzz:keyword;">EXPORTING</span>
    DEVICE               <span style="color: #800080;">=</span> <span style="color: #4da619;">'LP01'</span>
 <span style="color: #500066; text-transform: uppercase; font-weight: bold; zzz:keyword;">IMPORTING</span>
   PRDEFAULT            <span style="color: #800080;">=</span> PRDEFAULT
   IS_FRONTEND          <span style="color: #800080;">=</span> IS_FRONTEND
<span style="color: #339933;">*   IS_MAIL              =</span>
<span style="color: #339933;">*   NO_CHOICE            =</span>
 <span style="color: #cc4050; text-transform: uppercase; font-weight: bold; zzz:data;">TABLES</span>
   LIST                 <span style="color: #800080;">=</span> LIST<span style="color: #808080;">&#91;</span><span style="color: #808080;">&#93;</span>
 <span style="color: #500066; text-transform: uppercase; font-weight: bold; zzz:keyword;">EXCEPTIONS</span>
   NO_LIST              <span style="color: #800080;">=</span> <span style="color: #3399ff;">1</span>
   LIST_TRUNCATED       <span style="color: #800080;">=</span> <span style="color: #3399ff;">2</span>
   NAME_NOT_FOUND       <span style="color: #800080;">=</span> <span style="color: #3399ff;">3</span>
   <span style="color: #500066; text-transform: uppercase; font-weight: bold; zzz:keyword;">OTHERS</span>               <span style="color: #800080;">=</span> <span style="color: #3399ff;">4</span> <span style="color: #808080;">.</span>
&nbsp;
<span style="color: #005066; text-transform: uppercase; font-weight: bold; zzz:statement;">WRITE</span><span style="color: #808080;">:</span> <span style="color: #808080;">/</span> <span style="color: #4da619;">'DEFAULT PRINTER:'</span> <span style="color: #808080;">,</span> PRDEFAULT<span style="color: #808080;">.</span>
<span style="color: #005066; text-transform: uppercase; font-weight: bold; zzz:statement;">SKIP</span><span style="color: #808080;">.</span>
<span style="color: #005066; text-transform: uppercase; font-weight: bold; zzz:statement;">WRITE</span><span style="color: #808080;">:</span> <span style="color: #808080;">/</span> <span style="color: #4da619;">'Printer List:'</span><span style="color: #808080;">.</span>
<span style="color: #000066; text-transform: uppercase; font-weight: bold; zzz:control;">LOOP AT</span> LIST<span style="color: #808080;">.</span>
  <span style="color: #005066; text-transform: uppercase; font-weight: bold; zzz:statement;">WRITE</span> <span style="color: #005066; text-transform: uppercase; font-weight: bold; zzz:statement;">AT</span> <span style="color: #808080;">/</span><span style="color: #3399ff;">4</span> LIST <span style="color: #808080;">.</span>
<span style="color: #000066; text-transform: uppercase; font-weight: bold; zzz:control;">ENDLOOP</span><span style="color: #808080;">.</span></pre></div></div>

</p>
<p>via <a title="http://blog.chinaunix.net/u1/40527/showart_1989847.html" href="http://blog.chinaunix.net/u1/40527/showart_1989847.html">http://blog.chinaunix.net/u1/40527/showart_1989847.html</a></p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://www.saplab.net/sap-abap-tips-how-to-debug-pop-up-window/" title="SAP ABAP Tips-How to Debug Pop-up window">SAP ABAP Tips-How to Debug Pop-up window</a></li><li><a href="http://www.saplab.net/sap-t-code-working-with-files-on-sap/" title="SAP T-CODE Working with files on SAP">SAP T-CODE Working with files on SAP</a></li><li><a href="http://www.saplab.net/sap-abap-performance-standards/" title="SAP ABAP Performance Standards">SAP ABAP Performance Standards</a></li><li><a href="http://www.saplab.net/sap-press-official-abap-programming-guidelinespdf-version/" title="SAP Press Official ABAP&trade; Programming Guidelines(PDF version)">SAP Press Official ABAP&trade; Programming Guidelines(PDF version)</a></li><li><a href="http://www.saplab.net/abap-tips-ebook/" title="ABAP Tips-ebook">ABAP Tips-ebook</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.saplab.net/abap-tips-get-local-printer-information/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ABAP Tips-ebook</title>
		<link>http://www.saplab.net/abap-tips-ebook/</link>
		<comments>http://www.saplab.net/abap-tips-ebook/#comments</comments>
		<pubDate>Tue, 28 Jul 2009 05:05:52 +0000</pubDate>
		<dc:creator>Jack</dc:creator>
				<category><![CDATA[ABAP Program]]></category>
		<category><![CDATA[ABAP Tips]]></category>
		<category><![CDATA[ebook]]></category>

		<guid isPermaLink="false">http://www.saplab.net/?p=50</guid>
		<description><![CDATA[There is ABAP Tips(eBook version) for you, if you need it , pls download it. abap-tips Related PostsSAP ABAP Tips-How...]]></description>
			<content:encoded><![CDATA[<p>There is ABAP Tips(eBook version) for you, if you need it , pls download it.<br />
<a href="http://www.saplab.net/wp-content/uploads/2009/07/abap-tips.hlp"></a></p>
<blockquote><p><a href="http://www.saplab.net/wp-content/uploads/2009/07/abap-tips.hlp"><img class="alignnone size-full wp-image-81" title="download_icon" src="http://www.saplab.net/wp-content/uploads/2009/07/download_icon.gif" alt="download_icon" width="70" height="70" />abap-tips</a></p></blockquote>
<p><img class="alignnone size-full wp-image-53" title="abap-tips" src="http://www.saplab.net/wp-content/uploads/2009/07/abap-tips.png" alt="abap-tips" width="287" height="522" /></p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://www.saplab.net/sap-abap-tips-how-to-debug-pop-up-window/" title="SAP ABAP Tips-How to Debug Pop-up window">SAP ABAP Tips-How to Debug Pop-up window</a></li><li><a href="http://www.saplab.net/sap-t-code-working-with-files-on-sap/" title="SAP T-CODE Working with files on SAP">SAP T-CODE Working with files on SAP</a></li><li><a href="http://www.saplab.net/sap-abap-performance-standards/" title="SAP ABAP Performance Standards">SAP ABAP Performance Standards</a></li><li><a href="http://www.saplab.net/sap-press-official-abap-programming-guidelinespdf-version/" title="SAP Press Official ABAP&trade; Programming Guidelines(PDF version)">SAP Press Official ABAP&trade; Programming Guidelines(PDF version)</a></li><li><a href="http://www.saplab.net/abap-tips-get-local-printer-information/" title="ABAP Tips: Get local printer information">ABAP Tips: Get local printer information</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.saplab.net/abap-tips-ebook/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ABAP Tips download(MS Word version)</title>
		<link>http://www.saplab.net/abap-tips-downloadword-version/</link>
		<comments>http://www.saplab.net/abap-tips-downloadword-version/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 01:42:41 +0000</pubDate>
		<dc:creator>Jack</dc:creator>
				<category><![CDATA[ABAP Program]]></category>
		<category><![CDATA[ABAP]]></category>
		<category><![CDATA[ABAP Tips]]></category>
		<category><![CDATA[Document]]></category>
		<category><![CDATA[Program]]></category>

		<guid isPermaLink="false">http://www.saplab.net/?p=35</guid>
		<description><![CDATA[There is an ABAP program tips document(157 pages) to download. I think it is very useful for ABAP developer. Download...]]></description>
			<content:encoded><![CDATA[<p>There is an ABAP program tips document(157 pages) to download. I think it is very useful for ABAP developer.</p>
<p>Download<a href="http://www.saplab.net/wp-content/uploads/2009/07/abap-program-tips-v3.doc"> abap program tips-v3</a></p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://www.saplab.net/sap-abap-tips-how-to-debug-pop-up-window/" title="SAP ABAP Tips-How to Debug Pop-up window">SAP ABAP Tips-How to Debug Pop-up window</a></li><li><a href="http://www.saplab.net/bapi-to-copy-materials-from-one-plant-to-another/" title="BAPI to Copy Materials from one Plant to Another ">BAPI to Copy Materials from one Plant to Another </a></li><li><a href="http://www.saplab.net/abap-program-upload-and-download-hr-photo/" title="ABAP Program-Upload and download HR photo">ABAP Program-Upload and download HR photo</a></li><li><a href="http://www.saplab.net/abap-alv-report-sd-flow-alv/" title="ABAP ALV Report- SD FLOW ALV">ABAP ALV Report- SD FLOW ALV</a></li><li><a href="http://www.saplab.net/abap-tips-block-input-area-tip/" title="ABAP Tips Block Input Area Tip">ABAP Tips Block Input Area Tip</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.saplab.net/abap-tips-downloadword-version/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

