<?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; SAPScript</title>
	<atom:link href="http://www.abap-tutorials.com/category/sapscript/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>Error while sending invoice automatically via email</title>
		<link>http://www.abap-tutorials.com/2011/09/08/error-while-sending-invoice-automatically-via-email/</link>
		<comments>http://www.abap-tutorials.com/2011/09/08/error-while-sending-invoice-automatically-via-email/#comments</comments>
		<pubDate>Thu, 08 Sep 2011 12:03:13 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[ABAP]]></category>
		<category><![CDATA[Quick Reference]]></category>
		<category><![CDATA[Sample Code]]></category>
		<category><![CDATA[SAPScript]]></category>
		<category><![CDATA[automailer]]></category>
		<category><![CDATA[communication strategy]]></category>
		<category><![CDATA[Communication type cannot be used]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[Mail]]></category>
		<category><![CDATA[NAST]]></category>
		<category><![CDATA[Please enter an address number]]></category>
		<category><![CDATA[SCOT]]></category>

		<guid isPermaLink="false">http://www.abap-tutorials.com/?p=1936</guid>
		<description><![CDATA[There have been this case recently that, while sending invoice automatically via email, I got the following errors while seeing the error log for the output type. The configuration of communication strategy, SCOT and output types looks ok, but still the error persists. The error says : Please enter an address number Communication type  cannot [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">There have been this case recently that, while sending invoice automatically via email, I got the following errors while seeing the error log for the output type. The configuration of communication strategy, SCOT and output types looks ok, but still the error persists.</p>
<div style="width: 100%; float: left; text-align: justify;">
<p style="text-align: center;"><a href="http://www.abap-tutorials.com/wp-content/uploads/2011/09/print_error.jpg"><img class="aligncenter size-full wp-image-1937" title="print_error" src="http://www.abap-tutorials.com/wp-content/uploads/2011/09/print_error.jpg" alt="print_error" width="523" height="117" /></a></p>
</div>
<p style="text-align: justify;">The error says :</p>
<p style="text-align: justify;"><strong>Please enter an address number</strong><br />
<strong>Communication type  cannot be used</strong></p>
<p style="text-align: justify;"><span id="more-1936"></span></p>
<p style="text-align: justify;">This error is because of the print program (used in output type) the three fields listed were not populated.<br />
addr_key-addrnumber, addr_key-persnumber, and addr_key-addr_type.</p>
<p style="text-align: justify;">Below is the call function where these 3 fields need to be exported. Please try putting values in debug mode and it should work.</p>
<p style="text-align: justify;">&nbsp;</p>
<p style="text-align: justify;">CALL FUNCTION &#8216;<strong>ADDR_GET_NEXT_COMM_TYPE</strong>&#8216;<br />
EXPORTING<br />
strategy = nast-tcode<br />
address_number = addr_key-addrnumber<br />
person_number = addr_key-persnumber<br />
IMPORTING<br />
comm_type = lvs_comm_type<br />
comm_values = lvs_comm_values</p>
<p style="text-align: justify;">The values for the 3 fields are in addr_key table.</p>
<p style="text-align: justify;">Lets see an <strong>example</strong> for the same, where different function module is used ( at the time <strong>of Billing</strong>).</p>
<p style="text-align: justify;"><!-- SPAN { font-family: "Courier New"; font-size: 10pt; color: #000000; background: #FFFFFF; } .L1S31 { font-style: italic; color: #808080; } .L1S32 { color: #3399FF; } .L1S33 { color: #4DA619; } .L1S52 { color: #0000FF; } --> vbco3-mandt = sy-mandt.<br />
vbco3-spras = nast-spras.<br />
vbco3-kunde = nast-parnr.<br />
vbco3-parvw = nast-parvw.</p>
<p>CALL FUNCTION &#8217;<strong>RV_BILLING_PRINT_VIEW</strong>&#8216;<br />
EXPORTING<br />
comwa                        = vbco3<br />
IMPORTING<br />
kopf                         = <strong>vbdkr</strong><br />
TABLES<br />
pos                          = tvbdpr<br />
EXCEPTIONS<br />
terms_of_payment_not_in_t052 = 1<br />
error_message                = 5<br />
OTHERS                       = 4.<br />
IF NOT sy-subrc IS INITIAL.<br />
IF sy-subrc = 1.<br />
syst-msgty = &#8217;I&#8217;.<br />
PERFORM protocol_update.<br />
ENDIF.<br />
ENDIF.</p>
<p>* fill address key &#8211;&gt; necessary for emails<br />
<strong>ADDR_KEY-ADDRNUMBER = vbdkr-ADRNR.</strong><br />
<strong> ADDR_KEY-PERSNUMBER = vbdkr-ADRNP.</strong><br />
<strong> ADDR_KEY-ADDR_TYPE  = vbdkr-ADDRESS_TYPE.</strong></p>
<p style="text-align: justify;">&nbsp;</p>
<p style="text-align: justify;">&nbsp;</p>


<p>You might also be interested in these posts:<ol><li><a href='http://www.abap-tutorials.com/2011/07/02/abap-automailer-program-for-sending-output-of-sap-tcodes-in-background/' rel='bookmark' title='ABAP Automailer program for sending output of SAP TCodes in Background'>ABAP Automailer program for sending output of SAP TCodes in Background</a></li>
<li><a href='http://www.abap-tutorials.com/2009/07/20/abap-editor-create-custom-pattern/' rel='bookmark' title='ABAP Editor: Create custom Pattern'>ABAP Editor: Create custom Pattern</a></li>
<li><a href='http://www.abap-tutorials.com/2009/07/30/catch-the-dump/' rel='bookmark' title='Catch the Dump in ABAP &#8211; I'>Catch the Dump in ABAP &#8211; I</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.abap-tutorials.com/2011/09/08/error-while-sending-invoice-automatically-via-email/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Transporting in same R/3 system but in different Clients</title>
		<link>http://www.abap-tutorials.com/2011/01/16/transporting-in-same-r3-system-but-in-different-clients/</link>
		<comments>http://www.abap-tutorials.com/2011/01/16/transporting-in-same-r3-system-but-in-different-clients/#comments</comments>
		<pubDate>Sun, 16 Jan 2011 07:21:41 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[Quick Reference]]></category>
		<category><![CDATA[SAP]]></category>
		<category><![CDATA[SAPScript]]></category>
		<category><![CDATA[client dependent]]></category>
		<category><![CDATA[SCC1]]></category>
		<category><![CDATA[transport]]></category>

		<guid isPermaLink="false">http://www.abap-tutorials.com/?p=1806</guid>
		<description><![CDATA[When handling the objects which are Client dependent like SAPScripts, we need to transport (say from test to development or quality or production on same R/3 System but different Clients) them from one client to another as per requirement. For the same purpose, we can use SCC1 Tcode.  SCC1 T-Code u can do the transport [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">When handling the objects which are Client dependent like SAPScripts, we need to transport (say from test to development or quality or production on same R/3 System but different Clients) them from one client to another as per requirement.</p>
<p style="text-align: justify;">For the same purpose, we can use SCC1 Tcode.  SCC1 T-Code u can do the transport in same R/3 System but different client like</p>
<p>Source : 100(DEV)<br />
Target-1 : 200 (QAS)<br />
Target-2: 300 (PRD)</p>
<div style="width: 100%; float: left;">
<p style="text-align: justify;"><a href="http://www.abap-tutorials.com/wp-content/uploads/2011/01/scc1.jpg"><img class="aligncenter size-full wp-image-1807" title="scc1" src="http://www.abap-tutorials.com/wp-content/uploads/2011/01/scc1.jpg" alt="scc1" width="489" height="302" /></a></p>
</div>
<p style="text-align: justify;">
<p style="text-align: justify;">SCC1 Just specify Source Client and the Request number and import the request.<br />
In this process u don’t have to release the transport request.</p>
<p style="text-align: justify;">
<p style="text-align: justify;">


<p>You might also be interested in these posts:<ol><li><a href='http://www.abap-tutorials.com/2009/07/23/transport-sap-table-contents/' rel='bookmark' title='Transport SAP Table contents'>Transport SAP Table contents</a></li>
<li><a href='http://www.abap-tutorials.com/2009/10/20/downloading-pf-statusgui-status-in-sap/' rel='bookmark' title='Downloading PF-Status(GUI Status) in SAP'>Downloading PF-Status(GUI Status) in SAP</a></li>
<li><a href='http://www.abap-tutorials.com/2009/07/05/tcodes-in-sap-part-1/' rel='bookmark' title='Tcodes in SAP &#8211; Part 1'>Tcodes in SAP &#8211; Part 1</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.abap-tutorials.com/2011/01/16/transporting-in-same-r3-system-but-in-different-clients/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SAPScript Forms</title>
		<link>http://www.abap-tutorials.com/2010/01/20/sapscript-forms/</link>
		<comments>http://www.abap-tutorials.com/2010/01/20/sapscript-forms/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 17:49:08 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[Quick Reference]]></category>
		<category><![CDATA[SAPScript]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[character format]]></category>
		<category><![CDATA[Page]]></category>
		<category><![CDATA[paragraph format]]></category>
		<category><![CDATA[print program]]></category>
		<category><![CDATA[text elements]]></category>

		<guid isPermaLink="false">http://www.abap-tutorials.com/?p=1305</guid>
		<description><![CDATA[Whether we want to print the data for Mass printing, like Salary slip or just for couple of pages like Purchase Order Print, SAP still uses theSAPScript Forms for the process. The following file describes folowing SAPScript Forms Components in details: Header data Page layout Paragraph formats Character formats Documentation Text Elements Print Program Control [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Whether we want to print the data for Mass printing, like Salary slip or just for couple of pages like Purchase Order Print, SAP still uses theSAPScript Forms for the process.</p>
<p style="text-align: center;"><a href="http://www.abap-tutorials.com/wp-content/uploads/2010/01/page_no.png"></a></p>
<p><a href="http://www.abap-tutorials.com/wp-content/uploads/2010/01/page_no.png"> </a></p>
<p><a href="http://www.abap-tutorials.com/wp-content/uploads/2010/01/page_no.png"></a></p>
<p><a href="http://www.abap-tutorials.com/wp-content/uploads/2010/01/page_no.png"></p>
<div style="width: 100%; float: left;"><img class="aligncenter size-full wp-image-1306" title="SAPScript" src="http://www.abap-tutorials.com/wp-content/uploads/2010/01/page_no.png" alt="" width="461" height="614" /></div>
<p></a></p>
<p style="text-align: justify;">
<p style="text-align: justify;">
<p style="text-align: justify;"><span id="more-1305"></span>The following file describes folowing SAPScript Forms Components in details:</p>
<ul>
<li>Header data</li>
<li>Page layout</li>
<li>Paragraph formats</li>
<li>Character formats</li>
<li>Documentation</li>
<li>Text Elements</li>
<li>Print Program</li>
<li>Control Commands</li>
<li>Symbols</li>
<li>Formatting Options</li>
</ul>
<p>Link : <a href="http://www.abap-tutorials.com/wp-content/uploads/pdfs/SAPScript Forms.pps" target="_blank">SAPScript Forms</a></p>


<p>You might also be interested in these posts:<ol><li><a href='http://www.abap-tutorials.com/2009/07/23/advantage-smartform-migrating-sapscript-to-smartforms/' rel='bookmark' title='Advantage Smartform: Migrating SAPScript to Smartforms in SAP'>Advantage Smartform: Migrating SAPScript to Smartforms in SAP</a></li>
<li><a href='http://www.abap-tutorials.com/2009/08/21/formatting-sapscript-smartforms-in-sap/' rel='bookmark' title='Formatting SAPScript / SMARTFORMS in SAP'>Formatting SAPScript / SMARTFORMS in SAP</a></li>
<li><a href='http://www.abap-tutorials.com/2009/07/21/smartforms-vs-sapscript-the-battle-royale/' rel='bookmark' title='Smartforms Vs SAPScript, the Battle Royale in SAP'>Smartforms Vs SAPScript, the Battle Royale in SAP</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.abap-tutorials.com/2010/01/20/sapscript-forms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Formatting SAPScript / SMARTFORMS in SAP</title>
		<link>http://www.abap-tutorials.com/2009/08/21/formatting-sapscript-smartforms-in-sap/</link>
		<comments>http://www.abap-tutorials.com/2009/08/21/formatting-sapscript-smartforms-in-sap/#comments</comments>
		<pubDate>Fri, 21 Aug 2009 11:46:56 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[ABAP]]></category>
		<category><![CDATA[Formatting]]></category>
		<category><![CDATA[Quick Reference]]></category>
		<category><![CDATA[SAP]]></category>
		<category><![CDATA[SAPScript]]></category>
		<category><![CDATA[Smartforms]]></category>

		<guid isPermaLink="false">http://naveenvishal.wordpress.com/?p=718</guid>
		<description><![CDATA[There are few formatting options available in SAP for text formatting in SAPScript as well as Smartforms. Following are the few useful formatting options: Offset N left-most characters of the symbol value will not be displayed. If symbol has the value 123456789, the following will be displayed: &#38;symbol&#38; -&#62; 123456789 &#38;symbol+3&#38; -&#62; 456789 &#38;symbol+7&#38; -&#62; [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">There are few formatting options available in SAP for text formatting in SAPScript as well as Smartforms.</p>
<p style="text-align:justify;">
<div id="attachment_720" class="wp-caption aligncenter" style="width: 460px"><img class="size-full wp-image-720" title="SAPScript Formatting " src="http://naveenvishal.files.wordpress.com/2009/08/fomatting_sapscript.jpg" alt="SAPScript Formatting " width="450" height="50" /><p class="wp-caption-text">SAPScript Formatting </p></div>
<div id="attachment_721" class="wp-caption aligncenter" style="width: 460px"><img class="size-full wp-image-721" title="Smartforms Formatting" src="http://naveenvishal.files.wordpress.com/2009/08/fomatting_smarform.jpg" alt="Smartforms Formatting" width="450" height="124" /><p class="wp-caption-text">Smartforms Formatting</p></div>
<p><span id="more-718"></span></p>
<p style="text-align:justify;">Following are the few useful formatting options:</p>
<p style="text-align:justify;">
<p style="text-align:justify;"><strong>Offset</strong></p>
<p style="text-align:justify;">N left-most characters of the symbol value will not be displayed.</p>
<p style="text-align:justify;">If symbol has the value 123456789, the following will be displayed:</p>
<p style="text-align:justify;">&amp;symbol&amp; -&gt; 123456789</p>
<p style="text-align:justify;">&amp;symbol+3&amp; -&gt; 456789</p>
<p style="text-align:justify;">&amp;symbol+7&amp; -&gt; 89</p>
<p style="text-align:justify;">&amp;symbol+12&amp; -&gt;</p>
<p style="text-align:justify;">&amp;symbol+0&amp; -&gt; 123456789</p>
<p style="text-align:justify;">
<p style="text-align:justify;"><strong><span style="color:#339966;">Output Length</span></strong></p>
<p style="text-align:justify;">to define how many character positions should be copied from the value.</p>
<p style="text-align:justify;">If symbol has the value 123456789.</p>
<p style="text-align:justify;">&amp;symbol(3)&amp; -&gt; 123</p>
<p style="text-align:justify;">&amp;symbol(7)&amp; -&gt; 1234567</p>
<p style="text-align:justify;">
<p style="text-align:justify;">The SYST-UNAME field contains the logon name of a user called Einstein. The</p>
<p style="text-align:justify;">Dictionary entry for this field contains an output length of 12.</p>
<p style="text-align:justify;">&amp;SYST-UNAME&amp;&#8230; -&gt; Einstein&#8230;</p>
<p style="text-align:justify;">&amp;SYST-UNAME(9)&amp;&#8230; -&gt; Einstein &#8230;</p>
<p style="text-align:justify;">&amp;SYST-UNAME(*)&amp;&#8230; -&gt; Einstein &#8230;</p>
<p style="text-align:justify;">
<p style="text-align:justify;"><strong><span style="color:#339966;">Omitting the Leading Sign</span></strong></p>
<p style="text-align:justify;">The S option can be used to ensure that the value is formatted without the sign.</p>
<p style="text-align:justify;">The ITCDP-TDULPOS field contains the value -100.00. The ABAP/4 Dictionary</p>
<p style="text-align:justify;">definition for this field includes a leading sign.</p>
<p style="text-align:justify;">&amp;ITCDP-TDULPOS&amp; -&gt; 100.00-</p>
<p style="text-align:justify;">&amp;ITCDP-TDULPOS(S)&amp; -&gt; 100.00</p>
<p style="text-align:justify;">
<p style="text-align:justify;"><strong><span style="color:#339966;">Leading Sign to the Left</span></strong></p>
<p style="text-align:justify;">This option enables you to specify that the leading sign should be placed to the left of the number.</p>
<p style="text-align:justify;">&amp;ITCDP-TDULPOS&amp; -&gt; 100.00-</p>
<p style="text-align:justify;">&amp;ITCDP-TDULPOS(&lt;)&amp; -&gt; -100.00</p>
<p style="text-align:justify;">
<p style="text-align:justify;"><strong><span style="color:#339966;">Leading Sign to the Right</span></strong></p>
<p style="text-align:justify;">If you used the SET SIGN LEFT control command to specify that the leading sign should be output before the value, this specification can be overridden for individual symbols to enable these to be output with the leading sign to the right.</p>
<p style="text-align:justify;">Syntax:</p>
<p style="text-align:justify;">&amp;symbol(&gt;)&amp;</p>
<p style="text-align:justify;">
<p style="text-align:justify;">Omitting Leading Zeros</p>
<p style="text-align:justify;">Certain symbol values are output with leading zeros. If you wish to suppress these, you may do so with the Z option.</p>
<p style="text-align:justify;">Assuming the current date is 1.1.1994, &amp;DAY&amp; -&gt; 01</p>
<p style="text-align:justify;">&amp;DAY(Z)&amp; -&gt; 1</p>
<p style="text-align:justify;">
<p style="text-align:justify;"><strong><span style="color:#339966;">Space Compression</span></strong></p>
<p style="text-align:justify;">The C option has the effect of replacing each string of space characters with a single space and shifting the &#8217;words&#8217; to the left as necessary to close up the gaps.</p>
<p style="text-align:justify;">Assuming &#8216; Albert Einstein &#8216; is the symbol value,</p>
<p style="text-align:justify;">&amp;symbol&amp; -&gt; Albert Einstein</p>
<p style="text-align:justify;">&amp;symbol(C)&amp; -&gt; Albert Einstein</p>
<p style="text-align:justify;">
<p style="text-align:justify;"><strong><span style="color:#339966;">Number of Decimal Places</span></strong></p>
<p style="text-align:justify;">A program symbol of one of the data types DEC, QUAN and FLTP can contain decimal place data. This option is used to override the Dictionary definition for the number of decimal places for the formatting of this symbol value.</p>
<p style="text-align:justify;">The EKPO-MENGE field contains the value 1234.56. The Dictionary definition specifies 3 decimal places and an output length of 17.</p>
<p style="text-align:justify;">&amp;EKPO-MENGE&amp; -&gt; 1,234.560</p>
<p style="text-align:justify;">&amp;EKPO-MENGE(.1) -&gt; 1,234.6</p>
<p style="text-align:justify;">&amp;EKPO-MENGE&amp;(.4) -&gt; 1,234.5600</p>
<p style="text-align:justify;">&amp;EKPO-MENGE&amp;(.0) -&gt; 1,235</p>
<p style="text-align:justify;">
<p style="text-align:justify;"><strong><span style="color:#339966;">Specifying an Exponent for Floating Point Numbers</span></strong></p>
<p style="text-align:justify;">The way that a floating point number is formatted depends on whether an exponent is specified.</p>
<p style="text-align:justify;">PLMK-SOLLWERT field is assumed to have the value</p>
<p style="text-align:justify;">123456.78 and to be of data type FLTP.</p>
<p style="text-align:justify;">&amp;PLMK-SOLLWERT&amp; -&gt; +1.23456780000000E+05</p>
<p style="text-align:justify;">&amp;PLMK-SOLLWERT(E3)&amp; -&gt; +123.456780000000E+03</p>
<p style="text-align:justify;">&amp;PLMK-SOLLWERT(E6)&amp; -&gt; +0.12345678000000E+06</p>
<p style="text-align:justify;">&amp;PLMK-SOLLWERT(E0)&amp; -&gt; +123456.780000000</p>
<p style="text-align:justify;">&amp;PLMK-SOLLWERT(E)&amp; -&gt; +123456.780000000</p>
<p style="text-align:justify;">
<p style="text-align:justify;"><strong><span style="color:#339966;">Right-Justified Output</span></strong></p>
<p style="text-align:justify;">Right-justified formatting can be specified with the R option. This option has to be used in conjunction with an output length specification. If symbol has the value 1234.</p>
<p style="text-align:justify;">&amp;symbol&amp; -&gt; 1234</p>
<p style="text-align:justify;">&amp;symbol(8R) -&gt; 1234</p>
<p style="text-align:justify;">
<p style="text-align:justify;"><strong><span style="color:#339966;">Fill Characters</span></strong></p>
<p style="text-align:justify;">Leading spaces in a value can be replaced with a fill character.</p>
<p style="text-align:justify;">The figure for customer sales in the KNA1-UMSAT field is $700. The Dictionary description of the field specifies an output length 8.</p>
<p style="text-align:justify;">&amp;KNA1-UMSAT&amp; -&gt; 700.00</p>
<p style="text-align:justify;">&amp;KNA1-UMSAT(F*)&amp; -&gt; **700.00</p>
<p style="text-align:justify;">&amp;KNA1-UMSAT(F0)&amp; -&gt; 00700.00</p>
<p style="text-align:justify;">
<p style="text-align:justify;"><strong><span style="color:#339966;">Suppress Output of Initial Value</span></strong></p>
<p style="text-align:justify;">The I option can be used to suppress the output of symbols which still contain their initial value.</p>
<p style="text-align:justify;">Assuming KNA1-UMSAT contains the value 0 and the currency is DEM.</p>
<p style="text-align:justify;">&amp;KNA1-UMSAT&amp; -&gt; 0,00</p>
<p style="text-align:justify;">&amp;KNA1-UMSAT(I)&amp; -&gt;</p>
<p style="text-align:justify;">If the field contains an amount other than 0, this value will be output in the normal way.</p>
<p style="text-align:justify;">&amp;KNA1-UMSAT&amp; -&gt; 700,00</p>
<p style="text-align:justify;">&amp;KNA1-UMSAT(I)&amp; -&gt; 700,00</p>
<p style="text-align:justify;">
<p style="text-align:justify;"><strong><span style="color:#339966;">Ignore Conversion Routines</span></strong></p>
<p style="text-align:justify;">SAPscript conversion routines specified in the Dictionary are automatically recognized and used when program symbols are being formatted. Using the K option can prevent these conversions.</p>
<p style="text-align:justify;">
<p style="text-align:justify;"><strong><span style="color:#339966;">Date Mask</span></strong></p>
<p style="text-align:justify;">The formatting for date fields can be defined with the SAPscript SET DATE MASK command. Executing this command causes all subsequent date fields to be output using the specified formatting.</p>
<p style="text-align:justify;">/: SET DATE MASK = &#8216;date_mask&#8217;</p>
<p style="text-align:justify;">The following templates may be used in the date mask:</p>
<p style="text-align:justify;">DD day (two digits)</p>
<p style="text-align:justify;">DDD name of day (abbreviated)</p>
<p style="text-align:justify;">DDDD name of day (written out in full)</p>
<p style="text-align:justify;">MM month (two digits)</p>
<p style="text-align:justify;">MMM name of month (abbreviated)</p>
<p style="text-align:justify;">MMMM name of month (written out in full)</p>
<p style="text-align:justify;">YY year (two digits)</p>
<p style="text-align:justify;">YYYY year (four digits)</p>
<p style="text-align:justify;">LD day (formatted as for the L option)</p>
<p style="text-align:justify;">LM month (formatted as for the L option)</p>
<p style="text-align:justify;">LY year (formatted as for the L option)</p>
<p style="text-align:justify;">
<p style="text-align:justify;"><strong><span style="color:#339966;">Time Mask</span></strong></p>
<p style="text-align:justify;">You can use the SAPscript SET TIME MASK command to format time fields in a way that differs from the standard setting.</p>
<p style="text-align:justify;">Assuming the current time is 10:08:12.</p>
<p style="text-align:justify;">&amp;TIME&amp; -&gt; 10:08:12</p>
<p style="text-align:justify;">/: SET TIME MASK = &#8216;HH:MM&#8217;</p>
<p style="text-align:justify;">&amp;TIME&amp; -&gt; 10:08</p>
<p style="text-align:justify;">/: SET TIME MASK = &#8216;HH hours MM minutes&#8217;</p>
<p style="text-align:justify;">&amp;TIME&amp; -&gt; 10 hours 08 minutes</p>
<p style="text-align:justify;">&amp;TIME(Z)&amp; -&gt; 10 hours 8 minutes</p>
<p style="text-align:justify;">
<p style="text-align:justify;"><strong><span style="color:#339966;">Other Standard Outputs:</span></strong></p>
<p style="text-align:justify;">&amp;DAY&amp;, &amp;MONTH&amp;, &amp;YEAR&amp;, &amp;HOURS&amp;, &amp;MINUTES&amp;, &amp;SECONDS&amp;, &amp;DATE&amp;, &amp;TIME&amp;, &amp;PAGE&amp;, &amp;NEXTPAGE&amp;.</p>


<p>You might also be interested in these posts:<ol><li><a href='http://www.abap-tutorials.com/2009/07/23/debugging-smartforms-and-sapscript/' rel='bookmark' title='Debugging Smartforms and SAPScript in ABAP'>Debugging Smartforms and SAPScript in ABAP</a></li>
<li><a href='http://www.abap-tutorials.com/2009/07/21/smartforms-vs-sapscript-the-battle-royale/' rel='bookmark' title='Smartforms Vs SAPScript, the Battle Royale in SAP'>Smartforms Vs SAPScript, the Battle Royale in SAP</a></li>
<li><a href='http://www.abap-tutorials.com/2009/07/23/advantage-smartform-migrating-sapscript-to-smartforms/' rel='bookmark' title='Advantage Smartform: Migrating SAPScript to Smartforms in SAP'>Advantage Smartform: Migrating SAPScript to Smartforms in SAP</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.abap-tutorials.com/2009/08/21/formatting-sapscript-smartforms-in-sap/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Debugging Smartforms and SAPScript in ABAP</title>
		<link>http://www.abap-tutorials.com/2009/07/23/debugging-smartforms-and-sapscript/</link>
		<comments>http://www.abap-tutorials.com/2009/07/23/debugging-smartforms-and-sapscript/#comments</comments>
		<pubDate>Thu, 23 Jul 2009 01:19:53 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[SAPScript]]></category>
		<category><![CDATA[Smartforms]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[ABAP]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[debugging]]></category>
		<category><![CDATA[SAP]]></category>

		<guid isPermaLink="false">http://naveenvishal.wordpress.com/?p=405</guid>
		<description><![CDATA[It is often required to debug the mass printing forms, to check to accuracy or locate/correct the error. Both SAPScript and Smartforms have different ways for debugging. Lets look at the steps for each debegging options. 1)  DEBUG Smartforms a) Use T-Code SFTRACE &#8211; Using the Smart Form trace, you can trace how a Smart [...]]]></description>
			<content:encoded><![CDATA[<div class="mceTemp mceIEcenter" style="text-align:justify;">It is often required to debug the mass printing forms, to check to accuracy or locate/correct the error. Both SAPScript and Smartforms have different ways for debugging.</div>
<p style="text-align:justify;">Lets look at the steps for each debegging options.</p>
<p style="text-align:justify;"><span id="more-405"></span></p>
<p style="text-align:justify;"><strong><span style="color:#339966;">1)  DEBUG Smartforms</span></strong></p>
<p style="text-align:justify;">a) Use T-Code <strong>SFTRACE</strong> &#8211; Using the Smart Form trace, you can trace how a Smart Form was processed during printing. You can then see, for example, the sequence in which the nodes were run or the point at which processing terminated due to an error.</p>
<p style="text-align:justify;">b) Hardcode the <strong>BREAK-POINT</strong>: We just have to put the BREAK-POINT statement whereever we want to stop the code and look inside in Debugger.</p>
<p style="text-align:justify;">c) Breakpoint using <strong>BREAK user-name</strong>: We can put the break point using the statment user name addition to the break command, for example BREAK NAVEEN. These break points would not stop any other users who would run this Smartform.</p>
<p style="text-align:justify;">d) Breakpoint on the fly: To put a break point on the fly, we can follow these simple steps to put a breakpoint as required.</p>
<p style="text-align:justify;">Step1: Open your Smartform and Copy the text as which you want to put a break point and press the Test Button. It will bring you the Function Builder.</p>
<div class="mceTemp mceIEcenter" style="text-align:justify;">
<dl class="wp-caption aligncenter">
<dt class="wp-caption-dt"><img class="size-full wp-image-407" title="SAPScript Debugging step 1" src="http://naveenvishal.files.wordpress.com/2009/07/debug_script1.png" alt="SAPScript Debugging step 1" width="450" height="224" /></dt>
<dd class="wp-caption-dd">SAPScript Debugging step 1</dd>
</dl>
</div>
<p style="text-align:justify;">Step 2: Press the display button to open the code of the function.</p>
<div class="mceTemp mceIEcenter" style="text-align:justify;">
<dl class="wp-caption aligncenter">
<dt class="wp-caption-dt"><img class="size-full wp-image-408" title="SAPScript Debugging step 2" src="http://naveenvishal.files.wordpress.com/2009/07/debug_script2.png" alt="SAPScript Debugging step 2" width="403" height="195" /></dt>
<dd class="wp-caption-dd">SAPScript Debugging step 2</dd>
</dl>
</div>
<p style="text-align:justify;">Step 3: Press the Find (control+F) button.</p>
<div class="mceTemp mceIEcenter" style="text-align:justify;">
<dl class="wp-caption aligncenter">
<dt class="wp-caption-dt"><img class="size-full wp-image-409" title="SAPScript Debugging step 3" src="http://naveenvishal.files.wordpress.com/2009/07/debug_script3.png" alt="SAPScript Debugging step 3" width="450" height="170" /></dt>
<dd class="wp-caption-dd">SAPScript Debugging step 3</dd>
</dl>
</div>
<p style="text-align:justify;">Step 4: In the find screen, paste the copied text (control+V) in the Text.<br />
Select the option &#8220;In main Program&#8221;<br />
Press Enter</p>
<div class="mceTemp mceIEcenter" style="text-align:justify;">
<dl class="wp-caption aligncenter">
<dt class="wp-caption-dt"><img class="size-full wp-image-411" title="SAPScript Debugging step 4" src="http://naveenvishal.files.wordpress.com/2009/07/debug_script41.png" alt="SAPScript Debugging step 4" width="450" height="330" /></dt>
<dd class="wp-caption-dd">SAPScript Debugging step 4</dd>
</dl>
</div>
<p style="text-align:justify;">Step 5: From the hit list, go to the source code by doing doubleclick on the search results. Now, put a Cursor on the line and press the &#8220;Set Breakpoint&#8221; button.</p>
<div class="mceTemp mceIEcenter" style="text-align:justify;">
<dl class="wp-caption aligncenter">
<dt class="wp-caption-dt"><img class="size-full wp-image-412" title="SAPScript Debugging step 5" src="http://naveenvishal.files.wordpress.com/2009/07/debug_script5.png" alt="SAPScript Debugging step 5" width="450" height="130" /></dt>
<dd class="wp-caption-dd">SAPScript Debugging step 5</dd>
</dl>
</div>
<p style="text-align:justify;">That&#8217;s it. So, when you run the application it will stop to this break point.</p>
<div class="mceTemp mceIEcenter" style="text-align:justify;">
<dl class="wp-caption aligncenter">
<dt class="wp-caption-dt"><img class="size-full wp-image-413" title="SAPScript Debugging step 6" src="http://naveenvishal.files.wordpress.com/2009/07/debug_script6.png" alt="SAPScript Debugging step 6" width="450" height="233" /></dt>
<dd class="wp-caption-dd">SAPScript Debugging step 6</dd>
</dl>
</div>
<p style="text-align:justify;"> </p>
<p style="text-align:justify;"><strong><span style="color:#339966;">2). DEBUG SAPScript</span></strong></p>
<p style="text-align:justify;">They are two ways to debug the SAPScript.</p>
<p style="text-align:justify;">a). Use Tools &#8211; &gt; Word Processing &#8211; &gt; Layout Set (SE71). Enter name of layout set and then Utilities &#8211; &gt; Activate Debugger.</p>
<div class="mceTemp mceIEcenter" style="text-align:justify;">
<dl class="wp-caption aligncenter">
<dt class="wp-caption-dt"><img class="size-full wp-image-414" title="Activate SAPScript Debugger" src="http://naveenvishal.files.wordpress.com/2009/07/activate_debugger.jpg" alt="Activate SAPScript Debugger" width="450" height="324" /></dt>
<dd class="wp-caption-dd">Activate SAPScript Debugger</dd>
</dl>
</div>
<p style="text-align:justify;">It is of no consequence which layoutset you enter when selecting the SAPscript debugger. (Menu path: Tools &#8211; &gt; Wordprocessing &#8211; &gt; Forms, Utilities &#8211; &gt; Activate Debugger) The next layoutset called will invoke the debugger.</p>
<p style="text-align:justify;">b). Another way to set the SAPScript debugger is to run program RSTXDBUG.</p>
<p style="text-align:justify;">When you debug Print program it is same as you debug any other ABAP program. While when you debug SAPScript, you actually debug the code ( scripting) you have written SAPScript Form.</p>
<p style="text-align:justify;"> </p>
<p style="text-align:justify;"> </p>


<p>You might also be interested in these posts:<ol><li><a href='http://www.abap-tutorials.com/2009/07/23/advantage-smartform-migrating-sapscript-to-smartforms/' rel='bookmark' title='Advantage Smartform: Migrating SAPScript to Smartforms in SAP'>Advantage Smartform: Migrating SAPScript to Smartforms in SAP</a></li>
<li><a href='http://www.abap-tutorials.com/2009/07/21/smartforms-vs-sapscript-the-battle-royale/' rel='bookmark' title='Smartforms Vs SAPScript, the Battle Royale in SAP'>Smartforms Vs SAPScript, the Battle Royale in SAP</a></li>
<li><a href='http://www.abap-tutorials.com/2010/05/12/debugging-rfc-functions-in-sap/' rel='bookmark' title='Debugging RFC functions in SAP'>Debugging RFC functions in SAP</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.abap-tutorials.com/2009/07/23/debugging-smartforms-and-sapscript/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

