<?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; Smartforms</title>
	<atom:link href="http://www.abap-tutorials.com/category/smartforms/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>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>ABAP Program to Search For SMARTFORMS in your Language</title>
		<link>http://www.abap-tutorials.com/2009/08/06/search-for-smartforms-in-your-language/</link>
		<comments>http://www.abap-tutorials.com/2009/08/06/search-for-smartforms-in-your-language/#comments</comments>
		<pubDate>Thu, 06 Aug 2009 11:18:04 +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[Smartforms]]></category>
		<category><![CDATA[SAP]]></category>
		<category><![CDATA[search]]></category>

		<guid isPermaLink="false">http://naveenvishal.wordpress.com/?p=591</guid>
		<description><![CDATA[The following program will help you to search the SMARTFORMS either Standard or Customer created in your compatiable language. Program Initial Screen Sample Program *&#38;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;* *&#38; Report  ZSMRTFRM *&#38; *&#38;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;* *&#38;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;* REPORT  ZSMRTFRM . TYPE-POOLS: SLIS. TABLES: STXFADM, STXFADMT. DATA: BEGIN OF ITAB OCCURS 0, FORMNAME LIKE STXFADM-FORMNAME, MASTERLANG LIKE STXFADM-MASTERLANG, DEVCLASS LIKE STXFADM-DEVCLASS, VERSION LIKE [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">The following program will help you to search the SMARTFORMS either Standard or Customer created in your compatiable language.</p>
<p style="text-align:justify;">
<div class="mceTemp mceIEcenter" style="text-align:justify;">
<dl class="wp-caption aligncenter">
<dt class="wp-caption-dt"><img class="size-full wp-image-592" title="Program Initial Screen" src="http://naveenvishal.files.wordpress.com/2009/08/list_of_smartforms_initial.jpg" alt="Program Initial Screen" width="450" height="163" /></dt>
<dd class="wp-caption-dd">Program Initial Screen</dd>
</dl>
</div>
<p style="text-align:justify;">
<p style="text-align:justify;"><span id="more-591"></span></p>
<p style="text-align:justify;"><strong><span style="color:#339966;">Sample Program</span></strong></p>
<p style="text-align:justify;"><strong><span style="color:#339966;"><br />
</span></strong></p>
<p style="text-align:justify;">
<div><span style="color:#3366ff;">*&amp;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;*</span></div>
<div><span style="color:#3366ff;">*&amp; Report  ZSMRTFRM</span></div>
<div><span style="color:#3366ff;">*&amp;</span></div>
<div><span style="color:#3366ff;">*&amp;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;*</span></div>
<div><span style="color:#3366ff;">*&amp;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;*</span></div>
<div>REPORT  ZSMRTFRM .</div>
<div>TYPE-POOLS: SLIS.</div>
<div>TABLES: STXFADM, STXFADMT.</div>
<div>DATA: BEGIN OF ITAB OCCURS 0,</div>
<div>FORMNAME LIKE STXFADM-FORMNAME,</div>
<div>MASTERLANG LIKE STXFADM-MASTERLANG,</div>
<div>DEVCLASS LIKE STXFADM-DEVCLASS,</div>
<div>VERSION LIKE STXFADM-VERSION,</div>
<div>FIRSTUSER LIKE STXFADM-FIRSTUSER,</div>
<div>FIRSTDATE LIKE STXFADM-FIRSTDATE,</div>
<div>FIRSTTIME LIKE STXFADM-FIRSTTIME,</div>
<div>LASTUSER LIKE STXFADM-LASTUSER,</div>
<div>LASTDATE LIKE STXFADM-LASTDATE,</div>
<div>FORMTYPE LIKE STXFADM-FORMTYPE,</div>
<div>CAPTION LIKE STXFADMT-CAPTION,</div>
<div>END OF ITAB.</div>
<div>DATA: IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,</div>
<div>WA_FIELDCAT TYPE SLIS_FIELDCAT_ALV,</div>
<div>WA_LAYOUT TYPE SLIS_LAYOUT_ALV.</div>
<div>SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.</div>
<div>SELECT-OPTIONS: S_DEV FOR STXFADM-DEVCLASS NO INTERVALS.</div>
<div>SELECT-OPTIONS: S_FORM FOR STXFADM-FORMNAME NO INTERVALS.</div>
<div>SELECTION-SCREEN SKIP 1.</div>
<div>PARAMETERS: P_LANG LIKE T002-SPRAS DEFAULT &#8216;EN&#8217;.</div>
<div>SELECTION-SCREEN END OF BLOCK B1.</div>
<div>PERFORM F_SELECT_DATA.</div>
<div>PERFORM F_LAYOUT.</div>
<div>PERFORM F_FIELDCAT.</div>
<div>PERFORM DISPLAY.</div>
<div><span style="color:#3366ff;">*&amp;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;*</span></div>
<div><span style="color:#3366ff;">*&amp; Form f_select_data</span></div>
<div><span style="color:#3366ff;">*&amp;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;*</span></div>
<div><span style="color:#3366ff;">* text</span></div>
<div><span style="color:#3366ff;">*&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-*</span></div>
<div><span style="color:#3366ff;">* &#8211;&gt; p1 text</span></div>
<div><span style="color:#3366ff;">* &lt;&#8211; p2 text</span></div>
<div><span style="color:#3366ff;">*&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-*</span></div>
<div>FORM F_SELECT_DATA .</div>
<div>SELECT</div>
<div>A~FORMNAME</div>
<div>A~MASTERLANG</div>
<div>A~DEVCLASS</div>
<div>A~VERSION</div>
<div>A~FIRSTUSER</div>
<div>A~FIRSTDATE</div>
<div>A~FIRSTTIME</div>
<div>A~LASTUSER</div>
<div>A~LASTDATE</div>
<div>A~FORMTYPE</div>
<div>B~CAPTION</div>
<div>FROM STXFADM AS A INNER JOIN STXFADMT AS B ON</div>
<div>A~FORMNAME = B~FORMNAME INTO TABLE ITAB WHERE</div>
<div>A~DEVCLASS IN S_DEV AND</div>
<div>A~FORMNAME IN S_FORM AND</div>
<div>B~LANGU = P_LANG.</div>
<div>IF SY-SUBRC = 0.</div>
<div>SORT ITAB BY FORMNAME.</div>
<div>ELSE.</div>
<div>MESSAGE I398(00) WITH &#8216;No Form Exits for this selection criteria&#8217;.</div>
<div>LEAVE LIST-PROCESSING.</div>
<div>ENDIF.</div>
<div>ENDFORM. <span style="color:#3366ff;">&#8221; f_select_data</span></div>
<div><span style="color:#3366ff;">*&amp;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;*</span></div>
<div><span style="color:#3366ff;">*&amp; Form display</span></div>
<div><span style="color:#3366ff;">*&amp;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;*</span></div>
<div><span style="color:#3366ff;">* text</span></div>
<div><span style="color:#3366ff;">*&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-*</span></div>
<div><span style="color:#3366ff;">* &#8211;&gt; p1 text</span></div>
<div><span style="color:#3366ff;">* &lt;&#8211; p2 text</span></div>
<div><span style="color:#3366ff;">*&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-*</span></div>
<div>FORM DISPLAY .</div>
<div>CALL FUNCTION &#8216;REUSE_ALV_GRID_DISPLAY&#8217;</div>
<div>EXPORTING</div>
<div>I_CALLBACK_PROGRAM = SYST-CPROG</div>
<div>IS_LAYOUT = WA_LAYOUT</div>
<div>IT_FIELDCAT = IT_FIELDCAT</div>
<div>TABLES</div>
<div>T_OUTTAB = ITAB.</div>
<div>IF SY-SUBRC &lt;&gt; 0.</div>
<div>ENDIF.</div>
<div>ENDFORM. <span style="color:#3366ff;">&#8221; display</span></div>
<div><span style="color:#3366ff;">*&amp;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;*</span></div>
<div><span style="color:#3366ff;">*&amp; Form f_fieldcat</span></div>
<div><span style="color:#3366ff;">*&amp;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;*</span></div>
<div><span style="color:#3366ff;">* text</span></div>
<div><span style="color:#3366ff;">*&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-*</span></div>
<div><span style="color:#3366ff;">* &#8211;&gt; p1 text</span></div>
<div><span style="color:#3366ff;">* &lt;&#8211; p2 text</span></div>
<div><span style="color:#3366ff;">*&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-*</span></div>
<div>FORM F_FIELDCAT .</div>
<div>DATA: WA_COL TYPE I VALUE 1.</div>
<div>WA_FIELDCAT-COL_POS = WA_COL + 1.</div>
<div>WA_FIELDCAT-SELTEXT_L = TEXT-003. <span style="color:#3366ff;">&#8221; Form Name</span></div>
<div>WA_FIELDCAT-FIELDNAME = &#8216;FORMNAME&#8217;.</div>
<div>WA_FIELDCAT-TABNAME = &#8216;ITAB&#8217;.</div>
<div>APPEND WA_FIELDCAT TO IT_FIELDCAT.</div>
<div>CLEAR WA_FIELDCAT.</div>
<div>WA_FIELDCAT-COL_POS = WA_COL + 1.</div>
<div>WA_FIELDCAT-SELTEXT_L = TEXT-004. <span style="color:#3366ff;">&#8221; Smart form Text</span></div>
<div>WA_FIELDCAT-FIELDNAME = &#8216;CAPTION&#8217;.</div>
<div>WA_FIELDCAT-TABNAME = &#8216;ITAB&#8217;.</div>
<div>APPEND WA_FIELDCAT TO IT_FIELDCAT.</div>
<div>CLEAR WA_FIELDCAT.</div>
<div>WA_FIELDCAT-COL_POS = WA_COL + 1.</div>
<div>WA_FIELDCAT-SELTEXT_L = TEXT-005. <span style="color:#3366ff;">&#8220;Package</span></div>
<div>WA_FIELDCAT-FIELDNAME = &#8216;DEVCLASS&#8217;.</div>
<div>WA_FIELDCAT-TABNAME = &#8216;ITAB&#8217;.</div>
<div>APPEND WA_FIELDCAT TO IT_FIELDCAT.</div>
<div>CLEAR WA_FIELDCAT.</div>
<div>WA_FIELDCAT-COL_POS = WA_COL + 1.</div>
<div>WA_FIELDCAT-SELTEXT_L = TEXT-006. <span style="color:#3366ff;">&#8220;First User</span></div>
<div>WA_FIELDCAT-FIELDNAME = &#8216;FIRSTUSER&#8217;.</div>
<div>WA_FIELDCAT-TABNAME = &#8216;ITAB&#8217;.</div>
<div>APPEND WA_FIELDCAT TO IT_FIELDCAT.</div>
<div>CLEAR WA_FIELDCAT.</div>
<div>WA_FIELDCAT-COL_POS = WA_COL + 1.</div>
<div>WA_FIELDCAT-SELTEXT_L = TEXT-007. <span style="color:#3366ff;">&#8220;First Date</span></div>
<div>WA_FIELDCAT-FIELDNAME = &#8216;FIRSTDATE&#8217;.</div>
<div>WA_FIELDCAT-TABNAME = &#8216;ITAB&#8217;.</div>
<div>APPEND WA_FIELDCAT TO IT_FIELDCAT.</div>
<div>CLEAR WA_FIELDCAT.</div>
<div>WA_FIELDCAT-COL_POS = WA_COL + 1.</div>
<div>WA_FIELDCAT-SELTEXT_L = TEXT-008.<span style="color:#3366ff;"> &#8220;Version</span></div>
<div>WA_FIELDCAT-FIELDNAME = &#8216;VERSION&#8217;.</div>
<div>WA_FIELDCAT-TABNAME = &#8216;ITAB&#8217;.</div>
<div>APPEND WA_FIELDCAT TO IT_FIELDCAT.</div>
<div>CLEAR WA_FIELDCAT.</div>
<div>WA_FIELDCAT-COL_POS = WA_COL + 1.</div>
<div>WA_FIELDCAT-SELTEXT_L = TEXT-009. <span style="color:#3366ff;">&#8220;Master Language</span></div>
<div>WA_FIELDCAT-FIELDNAME = &#8216;MASTERLANG&#8217;.</div>
<div>WA_FIELDCAT-TABNAME = &#8216;ITAB&#8217;.</div>
<div>APPEND WA_FIELDCAT TO IT_FIELDCAT.</div>
<div>CLEAR WA_FIELDCAT.</div>
<div>WA_FIELDCAT-COL_POS = WA_COL + 1.</div>
<div>WA_FIELDCAT-SELTEXT_L = TEXT-010. <span style="color:#3366ff;">&#8220;Last User</span></div>
<div>WA_FIELDCAT-FIELDNAME = &#8216;LASTUSER&#8217;.</div>
<div>WA_FIELDCAT-TABNAME = &#8216;ITAB&#8217;.</div>
<div>APPEND WA_FIELDCAT TO IT_FIELDCAT.</div>
<div>CLEAR WA_FIELDCAT.</div>
<div>ENDFORM. <span style="color:#3366ff;">&#8221; f_fieldcat</span></div>
<div><span style="color:#3366ff;">*&amp;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;*</span></div>
<div><span style="color:#3366ff;">*&amp; Form f_layout</span></div>
<div><span style="color:#3366ff;">*&amp;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;*</span></div>
<div><span style="color:#3366ff;">* text</span></div>
<div><span style="color:#3366ff;">*&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-*</span></div>
<div><span style="color:#3366ff;">* &#8211;&gt; p1 text</span></div>
<div><span style="color:#3366ff;">* &lt;&#8211; p2 text</span></div>
<div><span style="color:#3366ff;">*&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-*</span></div>
<div>FORM F_LAYOUT .</div>
<div>WA_LAYOUT-COLWIDTH_OPTIMIZE = &#8216;X&#8217;.</div>
<div>ENDFORM. <span style="color:#3366ff;">&#8221; f_layout</span></div>
<p>Output of the above program is displayed as follows:</p>
<div id="attachment_593" class="wp-caption aligncenter" style="width: 460px"><img class="size-full wp-image-593" title="Display List of SMARTFORMS" src="http://naveenvishal.files.wordpress.com/2009/08/list_of_smartforms.jpg" alt="Display List of SMARTFORMS" width="450" height="326" /><p class="wp-caption-text">Display List of SMARTFORMS</p></div>
<p style="text-align:justify;">
<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/09/17/abap-program-to-add-colors-in-alv-grid/' rel='bookmark' title='ABAP Program to add Colors in ALV Grid'>ABAP Program to add Colors in ALV Grid</a></li>
<li><a href='http://www.abap-tutorials.com/2009/11/18/abap-hr-program-to-list-maintained-infotypes-in-sap/' rel='bookmark' title='ABAP HR Program to list maintained Infotypes in SAP'>ABAP HR Program to list maintained Infotypes 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>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.abap-tutorials.com/2009/08/06/search-for-smartforms-in-your-language/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>
		<item>
		<title>Advantage Smartform: Migrating SAPScript to Smartforms in SAP</title>
		<link>http://www.abap-tutorials.com/2009/07/23/advantage-smartform-migrating-sapscript-to-smartforms/</link>
		<comments>http://www.abap-tutorials.com/2009/07/23/advantage-smartform-migrating-sapscript-to-smartforms/#comments</comments>
		<pubDate>Wed, 22 Jul 2009 21:49:04 +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[migrate]]></category>
		<category><![CDATA[migration]]></category>
		<category><![CDATA[SAP]]></category>

		<guid isPermaLink="false">http://naveenvishal.wordpress.com/?p=387</guid>
		<description><![CDATA[SAP Script is the old method but still very effective in some cases. But as time passes we have to adopt the new technique SAP Smartform which is better and more reliable. Hence SAP providers us the interface to convert Script to Smartform. There are basicially two techniques that can be adopted: Individual Migration and Mass Migration. [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">SAP Script is the old method but still very effective in some cases. But as time passes we have to adopt the new technique SAP Smartform which is better and more reliable.</p>
<p style="text-align:justify;">Hence SAP providers us the interface to convert Script to Smartform.</p>
<p style="text-align:justify;">There are basicially two techniques that can be adopted: <strong>Individual Migration</strong> and <strong>Mass Migration</strong>.</p>
<p style="text-align:justify;"><span id="more-387"></span></p>
<p style="text-align:justify;"><strong><span style="color:#339966;">Individual Migration</span></strong></p>
<p style="text-align:justify;">You can migrate a SAPscript form into a Smart Form and convert a SAPscript style into a Smart Style.</p>
<p style="text-align:justify;">When converting a SAPscript style into a Smart Style, the system converts all paragraph and character formats with all their properties and attributes without any changes. Thus you can use the converted Smart Style without making any adaptations.</p>
<p style="text-align:justify;">When migrating a SAPscript form into a Smart Form, the system executes the following steps:</p>
<p style="text-align:justify;">a) It copies the language attributes and the output options.</p>
<p style="text-align:justify;">b) It migrates the layout information including pages, windows, and their attributes and positions on the page.</p>
<p style="text-align:justify;">c) It copies the texts in the form.</p>
<p style="text-align:justify;">d) It displays the fields (SAPscript notation: program symbols) in the texts.</p>
<p style="text-align:justify;">e) It converts the SAPscript commands (such as NEW-PAGE or IF-ENDIF) to comment lines and displays them in the texts.</p>
<p style="text-align:justify;">After the migration, you have a template that you can enhance and modify according to your needs. Adapt the form logic by specifying the commands which the system converted to comment lines.</p>
<p style="text-align:justify;">The system does not migrate the print program (data retrieval) or the form logic contained in the print program. You must make the required changes to the respective print program yourself.</p>
<p style="text-align:justify;">
<p style="text-align:justify;"><strong>Procedure<span style="font-weight:normal;"> </span></strong></p>
<p style="text-align:justify;">1. Go to the SAP Smart Forms initial screen (transaction SMARTFORMS ).</p>
<p style="text-align:justify;">2. In the Form field enter the name of the Smart Form you want to create.</p>
<p style="text-align:justify;">3. Choose Utilities -&gt; Migrate SAPscript form.The dialog window Migrate SAPscript Form appears.</p>
<p style="text-align:justify;">4. Enter the name and the language of the source form (SAPscript).</p>
<p style="text-align:justify;">5. Choose Enter.This takes you to the change mode of the SAP Form Builder. If the selected SAPscript form does not exist in the selected language, a dialog window appears on which you can select one of the existing languages.</p>
<p style="text-align:justify;">6. Now change the design of the form and of the form logic. To activate the Smart Form choose Activate.</p>
<p style="text-align:justify;"><strong>Converting a SAPscript style</strong></p>
<p style="text-align:justify;">1. 1. Go to the Smart Styles inital screen (transaction SMARTSTYLES ).</p>
<p style="text-align:justify;">2. 2. In the Style name field enter the name of the Smart Style you want to create.</p>
<p style="text-align:justify;">3. 3. Choose Smart Styles -&gt; Convert SAPscript style.</p>
<p style="text-align:justify;">4. 4. Enter the name of the SAPscript style you want to convert and Press Enter.</p>
<p style="text-align:justify;">5. 5. Alist of the converted styles appears.</p>
<p style="text-align:justify;">6. 6. Choose Back. You can now change the Smart Style (Change).To activate the Smart Style choose Activate.</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;"><strong><span style="color:#339966;">Mass Migration</span></strong></p>
<p style="text-align:justify;">You can migrate any number of SAPscript forms in one go.</p>
<p style="text-align:justify;"><strong>Procedure</strong></p>
<p style="text-align:justify;">1. Run the mass migration program. In Reporting (transaction SE38), select the program SF_MIGRATE and execute it . Select the names and the language of the SAPscript forms and click the execute icon. The system creates the Smart Forms named for the SAPscript forms plus the extension SF. It displays a list of the migrated forms.</p>
<p style="text-align:justify;">2. Make changes (if necessary). To change and adapt a form, go to transaction SMARTFORMS. Then activate the changed Smart Form.</p>
<p style="text-align:justify;">
<p style="text-align:justify;">Once the SAPscripts are converted, whether in Smart Forms or Smart Styles, you should clean up any errors made during the conversion process, in terms of attributes, window alignment, or syntax errors. Cleaning up errors during conversion is often standard procedure, as SAPscript might have used local logic. Errors may occur when a field displayed is extracted or manipulated to display and doesn’t exist, or fields exist but appear with no values. Errors may also arise in ABAP syntax.You have to check the Import and Export Parameter in Globakl Settings of Smartform .Remove the Unnecessary node.Check the text node and then check the Syntax.</p>
<p style="text-align:justify;">
<p style="text-align:justify;">
<p style="text-align:justify;">
<address></address>
<address></address>
<address></address>
<address></address>
<address>*source=premrajkaushik</address>
<p style="text-align:justify;">
<p style="text-align:justify;">
<p style="text-align:justify;">
<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/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/08/21/formatting-sapscript-smartforms-in-sap/' rel='bookmark' title='Formatting SAPScript / SMARTFORMS in SAP'>Formatting SAPScript / SMARTFORMS in SAP</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.abap-tutorials.com/2009/07/23/advantage-smartform-migrating-sapscript-to-smartforms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Smartforms Vs SAPScript, the Battle Royale in SAP</title>
		<link>http://www.abap-tutorials.com/2009/07/21/smartforms-vs-sapscript-the-battle-royale/</link>
		<comments>http://www.abap-tutorials.com/2009/07/21/smartforms-vs-sapscript-the-battle-royale/#comments</comments>
		<pubDate>Tue, 21 Jul 2009 12:15:18 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[SAPScript]]></category>
		<category><![CDATA[Smartforms]]></category>
		<category><![CDATA[ABAP]]></category>
		<category><![CDATA[difference between]]></category>
		<category><![CDATA[SAP]]></category>

		<guid isPermaLink="false">http://naveenvishal.wordpress.com/?p=361</guid>
		<description><![CDATA[Samrtforms and SAPScript both used for creating and maintaining forms for mass printing in SAP Systems. But where does the difference lies ? The Following are the differences between Smartforms and SAPScripts :- a) Multiple page formats are possible in smartforms which is not the case in SAPScripts b) It is possible to have a [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Samrtforms and SAPScript both used for creating and maintaining forms for mass printing in SAP Systems. But where does the difference lies ?</p>
<p style="text-align:justify;"><span id="more-361"></span></p>
<p style="text-align:justify;">The Following are the differences between Smartforms and SAPScripts :-</p>
<p style="text-align:justify;">a) Multiple page formats are possible in smartforms which is not the case in SAPScripts</p>
<p style="text-align:justify;">b) It is possible to have a smartform without a main window, but it is mandatory to have that in SAPScript</p>
<p style="text-align:justify;">c) Labels cannot be created in smartforms, but in SAPScript you can create Labels</p>
<p style="text-align:justify;">d) Routines can be written in smartforms tool</p>
<p style="text-align:justify;">e) Smartforms generates a function module when activated- which is used to call the Smartform, nothing like such in SAPScript</p>
<p style="text-align:justify;">f) Use RSTXSCRP to download SAPScript to your Harddisk, whereas in Smartfrom (Utilities -&gt; Upload/Download form) it is a built-in as a utility, to download in XML format</p>
<p style="text-align:justify;">g) The protect and endprotect command in sapscript doesn&#8217;t work with smartforms</p>
<p style="text-align:justify;">h) The output medium for Smartforms support printer, fax, e-mail, or the Internet (by using the generated XML output), whereas in case of SAPScript, it is restricted to printer</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/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/08/21/formatting-sapscript-smartforms-in-sap/' rel='bookmark' title='Formatting SAPScript / SMARTFORMS in SAP'>Formatting SAPScript / SMARTFORMS in SAP</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.abap-tutorials.com/2009/07/21/smartforms-vs-sapscript-the-battle-royale/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

