<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: need some examples for smartforms and scripts in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-some-examples-for-smartforms-and-scripts/m-p/2288543#M499008</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check these links.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SMARTFORMS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf" target="test_blank"&gt;http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-basis-abap.com/sapsf001.htm" target="test_blank"&gt;http://www.sap-basis-abap.com/sapsf001.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-press.com/downloads/h955_preview.pdf" target="test_blank"&gt;http://www.sap-press.com/downloads/h955_preview.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.ossincorp.com/Black_Box/Black_Box_2.htm" target="test_blank"&gt;http://www.ossincorp.com/Black_Box/Black_Box_2.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/smartforms/sap-smart-forms.htm" target="test_blank"&gt;http://www.sap-img.com/smartforms/sap-smart-forms.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/smartforms/smartform-tutorial.htm" target="test_blank"&gt;http://www.sap-img.com/smartforms/smartform-tutorial.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/smartforms.htm" target="test_blank"&gt;http://www.sapgenie.com/abap/smartforms.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/smartforms.htm" target="test_blank"&gt;http://www.sapgenie.com/abap/smartforms.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/smartforms/sap-smart-forms.htm" target="test_blank"&gt;http://www.sap-img.com/smartforms/sap-smart-forms.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/en/a5/de6838abce021ae10000009b38f842/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/en/a5/de6838abce021ae10000009b38f842/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/printdocu/core/Print46c/en/Data/htm/english.htm" target="test_blank"&gt;http://help.sap.com/printdocu/core/Print46c/en/Data/htm/english.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/smartforms/smart-001.htm" target="test_blank"&gt;http://www.sap-img.com/smartforms/smart-001.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/smartforms/smartform-tutorial.htm" target="test_blank"&gt;http://www.sap-img.com/smartforms/smartform-tutorial.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/smartforms/smart-002.htm" target="test_blank"&gt;http://www.sap-img.com/smartforms/smart-002.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/smartforms.htm" target="test_blank"&gt;http://www.sapgenie.com/abap/smartforms.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/smartforms/sap-smart-forms.htm" target="test_blank"&gt;http://www.sap-img.com/smartforms/sap-smart-forms.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-basis-abap.com/sapsf001.htm" target="test_blank"&gt;http://www.sap-basis-abap.com/sapsf001.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-press.com/downloads/h955_preview.pdf" target="test_blank"&gt;http://www.sap-press.com/downloads/h955_preview.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.ossincorp.com/Black_Box/Black_Box_2.htm" target="test_blank"&gt;http://www.ossincorp.com/Black_Box/Black_Box_2.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/smartforms/sap-smart-forms.htm" target="test_blank"&gt;http://www.sap-img.com/smartforms/sap-smart-forms.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/smartforms_detail.htm" target="test_blank"&gt;http://www.sapgenie.com/abap/smartforms_detail.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also,&lt;/P&gt;&lt;P&gt;SAPscript technology is based on a mainframe product from the 1980s, while Smart Forms have only been around since (roughly) 2001. With that sort of time gap, there are bound to be significant differences between the two tools. Client dependence is a fundamental one. Although SAPscript has had some incremental improvements over time, its forms have always been -- under the hood -- relatively ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also refer&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3000244"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2171545"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3139710"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this resolves your query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all the helpful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Pritha Agrawal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 May 2007 09:18:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-14T09:18:36Z</dc:date>
    <item>
      <title>need some examples for smartforms and scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-some-examples-for-smartforms-and-scripts/m-p/2288542#M499007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;now i am working in scripts and smartforms. so i need some examples and some information for scripts and smartforms. where i can find that information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 09:16:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-some-examples-for-smartforms-and-scripts/m-p/2288542#M499007</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T09:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: need some examples for smartforms and scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-some-examples-for-smartforms-and-scripts/m-p/2288543#M499008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check these links.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SMARTFORMS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf" target="test_blank"&gt;http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-basis-abap.com/sapsf001.htm" target="test_blank"&gt;http://www.sap-basis-abap.com/sapsf001.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-press.com/downloads/h955_preview.pdf" target="test_blank"&gt;http://www.sap-press.com/downloads/h955_preview.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.ossincorp.com/Black_Box/Black_Box_2.htm" target="test_blank"&gt;http://www.ossincorp.com/Black_Box/Black_Box_2.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/smartforms/sap-smart-forms.htm" target="test_blank"&gt;http://www.sap-img.com/smartforms/sap-smart-forms.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/smartforms/smartform-tutorial.htm" target="test_blank"&gt;http://www.sap-img.com/smartforms/smartform-tutorial.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/smartforms.htm" target="test_blank"&gt;http://www.sapgenie.com/abap/smartforms.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/smartforms.htm" target="test_blank"&gt;http://www.sapgenie.com/abap/smartforms.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/smartforms/sap-smart-forms.htm" target="test_blank"&gt;http://www.sap-img.com/smartforms/sap-smart-forms.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/en/a5/de6838abce021ae10000009b38f842/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/en/a5/de6838abce021ae10000009b38f842/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/printdocu/core/Print46c/en/Data/htm/english.htm" target="test_blank"&gt;http://help.sap.com/printdocu/core/Print46c/en/Data/htm/english.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/smartforms/smart-001.htm" target="test_blank"&gt;http://www.sap-img.com/smartforms/smart-001.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/smartforms/smartform-tutorial.htm" target="test_blank"&gt;http://www.sap-img.com/smartforms/smartform-tutorial.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/smartforms/smart-002.htm" target="test_blank"&gt;http://www.sap-img.com/smartforms/smart-002.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/smartforms.htm" target="test_blank"&gt;http://www.sapgenie.com/abap/smartforms.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/smartforms/sap-smart-forms.htm" target="test_blank"&gt;http://www.sap-img.com/smartforms/sap-smart-forms.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-basis-abap.com/sapsf001.htm" target="test_blank"&gt;http://www.sap-basis-abap.com/sapsf001.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-press.com/downloads/h955_preview.pdf" target="test_blank"&gt;http://www.sap-press.com/downloads/h955_preview.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.ossincorp.com/Black_Box/Black_Box_2.htm" target="test_blank"&gt;http://www.ossincorp.com/Black_Box/Black_Box_2.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/smartforms/sap-smart-forms.htm" target="test_blank"&gt;http://www.sap-img.com/smartforms/sap-smart-forms.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/smartforms_detail.htm" target="test_blank"&gt;http://www.sapgenie.com/abap/smartforms_detail.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also,&lt;/P&gt;&lt;P&gt;SAPscript technology is based on a mainframe product from the 1980s, while Smart Forms have only been around since (roughly) 2001. With that sort of time gap, there are bound to be significant differences between the two tools. Client dependence is a fundamental one. Although SAPscript has had some incremental improvements over time, its forms have always been -- under the hood -- relatively ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also refer&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3000244"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2171545"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3139710"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this resolves your query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all the helpful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Pritha Agrawal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 09:18:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-some-examples-for-smartforms-and-scripts/m-p/2288543#M499008</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T09:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: need some examples for smartforms and scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-some-examples-for-smartforms-and-scripts/m-p/2288544#M499009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;How to create a New smartfrom, it is having step by step procedure &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap.niraj.tripod.com/id67.html" target="test_blank"&gt;http://sap.niraj.tripod.com/id67.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the procedure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create a new smartforms &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Transaction code SMARTFORMS &lt;/P&gt;&lt;P&gt;Create new smartforms call ZSMART&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Define looping process for internal table &lt;/P&gt;&lt;P&gt;Pages and windows &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First Page -&amp;gt; Header Window (Cursor at First Page then click Edit -&amp;gt; Node -&amp;gt; Create) &lt;/P&gt;&lt;P&gt;Here, you can specify your title and page numbering &lt;/P&gt;&lt;P&gt;&amp;amp;SFSY-PAGE&amp;amp; (Page 1) of &amp;amp;SFSY-FORMPAGES(Z4.0)&amp;amp; (Total Page) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Main windows -&amp;gt; TABLE -&amp;gt; DATA &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Loop section, tick Internal table and fill in &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITAB1 (table in ABAP SMARTFORM calling function) INTO ITAB2 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Define table in smartforms &lt;/P&gt;&lt;P&gt;Global settings : &lt;/P&gt;&lt;P&gt;Form interface &lt;/P&gt;&lt;P&gt;Variable name Type assignment Reference type &lt;/P&gt;&lt;P&gt;ITAB1 TYPE Table Structure &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Global definitions &lt;/P&gt;&lt;P&gt;Variable name Type assignment Reference type &lt;/P&gt;&lt;P&gt;ITAB2 TYPE Table Structure &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. To display the data in the form &lt;/P&gt;&lt;P&gt;Make used of the Table Painter and declare the Line Type in Tabstrips Table &lt;/P&gt;&lt;P&gt;e.g. HD_GEN for printing header details, &lt;/P&gt;&lt;P&gt;IT_GEN for printing data details. &lt;/P&gt;&lt;P&gt;You have to specify the Line Type in your Text elements in the Tabstrips Output options. &lt;/P&gt;&lt;P&gt;Tick the New Line and specify the Line Type for outputting the data. &lt;/P&gt;&lt;P&gt;Declare your output fields in Text elements &lt;/P&gt;&lt;P&gt;Tabstrips - Output Options &lt;/P&gt;&lt;P&gt;For different fonts use this Style : IDWTCERTSTYLE &lt;/P&gt;&lt;P&gt;For Quantity or Amout you can used this variable &amp;amp;GS_ITAB-AMOUNT(12.2)&amp;amp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. Calling SMARTFORMS from your ABAP program &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZSMARTFORM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Calling SMARTFORMS from your ABAP program. &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Collecting all the table data in your program, and pass once to SMARTFORMS &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SMARTFORMS &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Declare your table type in :- &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Global Settings -&amp;gt; Form Interface &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Global Definintions -&amp;gt; Global Data &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Main Window -&amp;gt; Table -&amp;gt; DATA &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Written by : SAP Hints and Tips on Configuration and ABAP/4 Programming &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;&lt;A href="http://sapr3.tripod.com" target="test_blank"&gt;http://sapr3.tripod.com&lt;/A&gt; &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: MKPF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: FM_NAME TYPE RS38L_FNAM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF INT_MKPF OCCURS 0. &lt;/P&gt;&lt;P&gt;INCLUDE STRUCTURE MKPF. &lt;/P&gt;&lt;P&gt;DATA: END OF INT_MKPF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR. &lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING MKPF TO INT_MKPF. &lt;/P&gt;&lt;P&gt;APPEND INT_MKPF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDSELECT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;At the end of your program. &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Passing data to SMARTFORMS &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'SSF_FUNCTION_MODULE_NAME' &lt;/P&gt;&lt;P&gt;exporting &lt;/P&gt;&lt;P&gt;formname = 'ZSMARTFORM' &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;VARIANT = ' ' &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;DIRECT_CALL = ' ' &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;IMPORTING &lt;/P&gt;&lt;P&gt;FM_NAME = FM_NAME &lt;/P&gt;&lt;P&gt;EXCEPTIONS &lt;/P&gt;&lt;P&gt;NO_FORM = 1 &lt;/P&gt;&lt;P&gt;NO_FUNCTION_MODULE = 2 &lt;/P&gt;&lt;P&gt;OTHERS = 3. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0. &lt;/P&gt;&lt;P&gt;WRITE: / 'ERROR 1'. &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;endif. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function FM_NAME &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXPORTING &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ARCHIVE_INDEX = &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ARCHIVE_INDEX_TAB = &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ARCHIVE_PARAMETERS = &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CONTROL_PARAMETERS = &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MAIL_APPL_OBJ = &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MAIL_RECIPIENT = &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MAIL_SENDER = &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;OUTPUT_OPTIONS = &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;USER_SETTINGS = 'X' &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;DOCUMENT_OUTPUT_INFO = &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;JOB_OUTPUT_INFO = &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;JOB_OUTPUT_OPTIONS = &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TABLES &lt;/P&gt;&lt;P&gt;GS_MKPF = INT_MKPF &lt;/P&gt;&lt;P&gt;EXCEPTIONS &lt;/P&gt;&lt;P&gt;FORMATTING_ERROR = 1 &lt;/P&gt;&lt;P&gt;INTERNAL_ERROR = 2 &lt;/P&gt;&lt;P&gt;SEND_ERROR = 3 &lt;/P&gt;&lt;P&gt;USER_CANCELED = 4 &lt;/P&gt;&lt;P&gt;OTHERS = 5. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0. &lt;/P&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO &lt;/P&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. &lt;/P&gt;&lt;P&gt;endif. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04s/helpdata/en/a5/de6838abce021ae10000009b38f842/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04s/helpdata/en/a5/de6838abce021ae10000009b38f842/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapbrain.com/ARTICLES/TECHNICAL/SMARTFORMS/smartforms.html" target="test_blank"&gt;http://www.sapbrain.com/ARTICLES/TECHNICAL/SMARTFORMS/smartforms.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapbrain.com/TUTORIALS/TECHNICAL/SMARTFORMS_tutorial.html" target="test_blank"&gt;http://www.sapbrain.com/TUTORIALS/TECHNICAL/SMARTFORMS_tutorial.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this linkls------&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/collaboration" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/collaboration&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2004/helpdata/en/a9/de6838abce021ae10000009b38f842/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2004/helpdata/en/a9/de6838abce021ae10000009b38f842/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/smartforms/sap-smart-forms.htm" target="test_blank"&gt;http://www.sap-img.com/smartforms/sap-smart-forms.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/smartforms/sap-smart-forms.htm" target="test_blank"&gt;http://www.sap-img.com/smartforms/sap-smart-forms.htm&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAPScripts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf" target="test_blank"&gt;http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf" target="test_blank"&gt;http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf" target="test_blank"&gt;http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf" target="test_blank"&gt;http://esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf" target="test_blank"&gt;http://esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm" target="test_blank"&gt;http://esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP SCRIPT FIELDS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/d1/8033ea454211d189710000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005vp/helpdata/en/d1/8033ea454211d189710000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;scripts easy material&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.allsaplinks.com/sap_script_made_easy.html" target="test_blank"&gt;http://www.allsaplinks.com/sap_script_made_easy.html&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 09:20:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-some-examples-for-smartforms-and-scripts/m-p/2288544#M499009</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T09:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: need some examples for smartforms and scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-some-examples-for-smartforms-and-scripts/m-p/2288545#M499010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi jyothsna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer this link for Smartforms&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d937ec90-0201-0010-0ca8-b6cb3b6dd1ef" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d937ec90-0201-0010-0ca8-b6cb3b6dd1ef&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b590fd97-0301-0010-db90-d09ff93cee5a" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b590fd97-0301-0010-db90-d09ff93cee5a&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Subroutine in smartform&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/ccab6730-0501-0010-ee84-de050a6cc287" target="test_blank"&gt;https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/ccab6730-0501-0010-ee84-de050a6cc287&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Style and mailing the Smartform output&lt;/P&gt;&lt;P&gt;&lt;A href="https://sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/8fd773b3-0301-0010-eabe-82149bcc292e" target="test_blank"&gt;https://sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/8fd773b3-0301-0010-eabe-82149bcc292e&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Table,Template,Loop and Command in Smartform&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/3c5d9ae3-0501-0010-0090-bdfb2d458985" target="test_blank"&gt;https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/3c5d9ae3-0501-0010-0090-bdfb2d458985&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP Smartforms can be used for creating and maintaining forms for mass printing in SAP Systems. The output medium for Smartforms support printer, fax, e-mail, or the Internet (by using the generated XML output). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to SAP, you need neither have any programming knowledge nor use a Script language to adapt standard forms. However, basic ABAP programming skills are required only in special cases (for example, to call a function module you created or for complex and extensive conditions).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create a new smartforms&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Transaction code SMARTFORMS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create new smartforms call ZSMART&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Define looping process for internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pages and windows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First Page -&amp;gt; Header Window (Cursor at First Page then click Edit -&amp;gt; Node -&amp;gt; Create)&lt;/P&gt;&lt;P&gt;Here, you can specify your title and page numbering&lt;/P&gt;&lt;P&gt;&amp;amp;SFSY-PAGE&amp;amp; (Page 1) of &amp;amp;SFSY-FORMPAGES(Z4.0)&amp;amp; (Total Page)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Main windows -&amp;gt; TABLE -&amp;gt; DATA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Loop section, tick Internal table and fill in&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITAB1 (table in ABAP SMARTFORM calling function) INTO ITAB2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Define table in smartforms&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Global settings :&lt;/P&gt;&lt;P&gt;Form interface&lt;/P&gt;&lt;P&gt;Variable name Type assignment Reference type&lt;/P&gt;&lt;P&gt;ITAB1 TYPE Table Structure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Global definitions&lt;/P&gt;&lt;P&gt;Variable name Type assignment Reference type&lt;/P&gt;&lt;P&gt;ITAB2 TYPE Table Structure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. To display the data in the form&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make used of the Table Painter and declare the Line Type in Tabstrips Table&lt;/P&gt;&lt;P&gt;e.g. HD_GEN for printing header details,&lt;/P&gt;&lt;P&gt;IT_GEN for printing data details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to specify the Line Type in your Text elements in the Tabstrips Output options.&lt;/P&gt;&lt;P&gt;Tick the New Line and specify the Line Type for outputting the data.&lt;/P&gt;&lt;P&gt;Declare your output fields in Text elements&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tabstrips - Output Options&lt;/P&gt;&lt;P&gt;For different fonts use this Style : IDWTCERTSTYLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Quantity or Amout you can used this variable &amp;amp;GS_ITAB-AMOUNT(12.2)&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. Calling SMARTFORMS from your ABAP program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZSMARTFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Calling SMARTFORMS from your ABAP program.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Collecting all the table data in your program, and pass once to SMARTFORMS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SMARTFORMS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Declare your table type in :-&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Global Settings -&amp;gt; Form Interface&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Global Definintions -&amp;gt; Global Data&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Main Window -&amp;gt; Table -&amp;gt; DATA&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Written by : SAP Hints and Tips on Configuration and ABAP/4 Programming&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;&lt;A href="http://sapr3.tripod.com" target="test_blank"&gt;http://sapr3.tripod.com&lt;/A&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: MKPF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: FM_NAME TYPE RS38L_FNAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF INT_MKPF OCCURS 0.&lt;/P&gt;&lt;P&gt;INCLUDE STRUCTURE MKPF.&lt;/P&gt;&lt;P&gt;DATA: END OF INT_MKPF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR.&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING MKPF TO INT_MKPF.&lt;/P&gt;&lt;P&gt;APPEND INT_MKPF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;At the end of your program.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Passing data to SMARTFORMS&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'SSF_FUNCTION_MODULE_NAME'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;formname = 'ZSMARTFORM'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;VARIANT = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;DIRECT_CALL = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;FM_NAME = FM_NAME&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;NO_FORM = 1&lt;/P&gt;&lt;P&gt;NO_FUNCTION_MODULE = 2&lt;/P&gt;&lt;P&gt;OTHERS = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;WRITE: / 'ERROR 1'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function FM_NAME&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ARCHIVE_INDEX =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ARCHIVE_INDEX_TAB =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ARCHIVE_PARAMETERS =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CONTROL_PARAMETERS =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MAIL_APPL_OBJ =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MAIL_RECIPIENT =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MAIL_SENDER =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;OUTPUT_OPTIONS =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;USER_SETTINGS = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;DOCUMENT_OUTPUT_INFO =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;JOB_OUTPUT_INFO =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;JOB_OUTPUT_OPTIONS =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;GS_MKPF = INT_MKPF&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;FORMATTING_ERROR = 1&lt;/P&gt;&lt;P&gt;INTERNAL_ERROR = 2&lt;/P&gt;&lt;P&gt;SEND_ERROR = 3&lt;/P&gt;&lt;P&gt;USER_CANCELED = 4&lt;/P&gt;&lt;P&gt;OTHERS = 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additional Fonts for your SMARTFORMS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create additional fonts and style with transaction SMARTSTYLES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This can then be define in the paragraph and character formats, which you can then be assign to texts and fields in the Smart Form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The character formats includes effects such as superscript, subscript, barcode and font attributes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jayant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 09:21:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-some-examples-for-smartforms-and-scripts/m-p/2288545#M499010</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T09:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: need some examples for smartforms and scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-some-examples-for-smartforms-and-scripts/m-p/2288546#M499011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   Examples in the sense....Actually in some companies they will create a sales report with some additions in the standard one...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SAP script we can use logos and we can include windows and pages as we want and SMARTFORMS is the advanced version of the sapscript where not much coding id needed....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my company i have to create a new gate pass form,So i have gone for SMARTFORMS...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to reward it please if this is useful yar...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 09:22:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-some-examples-for-smartforms-and-scripts/m-p/2288546#M499011</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T09:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: need some examples for smartforms and scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-some-examples-for-smartforms-and-scripts/m-p/2288547#M499012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jyothsna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check these links.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SCRIPTS..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link which will have sample program&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.allsaplinks.com/scripts_3.html" target="test_blank"&gt;http://www.allsaplinks.com/scripts_3.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check few more links on Scripts&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.henrikfrank.dk/abapuk.html" target="test_blank"&gt;http://www.henrikfrank.dk/abapuk.html&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf" target="test_blank"&gt;http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf" target="test_blank"&gt;http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf" target="test_blank"&gt;http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf" target="test_blank"&gt;http://esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf" target="test_blank"&gt;http://esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm" target="test_blank"&gt;http://esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sappoint.com/abap/" target="test_blank"&gt;http://sappoint.com/abap/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/sapscripts.htm" target="test_blank"&gt;http://www.sap-img.com/sapscripts.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sappoint.com/abap/" target="test_blank"&gt;http://sappoint.com/abap/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.henrikfrank.dk/abapexamples/SapScript/sapscript.htm" target="test_blank"&gt;http://www.henrikfrank.dk/abapexamples/SapScript/sapscript.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_crm40/helpdata/en/16/c832857cc111d686e0000086568e5f/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_crm40/helpdata/en/16/c832857cc111d686e0000086568e5f/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-basis-abap.com/sapabap01.htm" target="test_blank"&gt;http://www.sap-basis-abap.com/sapabap01.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/sapscripts.htm" target="test_blank"&gt;http://www.sap-img.com/sapscripts.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://searchsap.techtarget.com/tip/1,289483,sid21_gci943419,00.html" target="test_blank"&gt;http://searchsap.techtarget.com/tip/1,289483,sid21_gci943419,00.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap.ittoolbox.com/topics/t.asp?t=303&amp;amp;p=452&amp;amp;h2=452&amp;amp;h1=303" target="test_blank"&gt;http://sap.ittoolbox.com/topics/t.asp?t=303&amp;amp;p=452&amp;amp;h2=452&amp;amp;h1=303&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/phpBB2/viewtopic.php?t=14007&amp;amp;sid=09eec5147a0dbeee1b5edd21af8ebc6a" target="test_blank"&gt;http://www.sapgenie.com/phpBB2/viewtopic.php?t=14007&amp;amp;sid=09eec5147a0dbeee1b5edd21af8ebc6a&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other Links&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.virtuosollc.com/PDF/Get_Reporter.pdf" target="test_blank"&gt;http://www.virtuosollc.com/PDF/Get_Reporter.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/da/6ada3889432f48e10000000a114084/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/da/6ada3889432f48e10000000a114084/frameset.htm&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005/helpdata/en/66/bc7d2543c211d182b30000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005/helpdata/en/66/bc7d2543c211d182b30000e829fbfe/frameset.htm&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005/helpdata/en/5b/d22cee43c611d182b30000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005/helpdata/en/5b/d22cee43c611d182b30000e829fbfe/frameset.htm&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="http://www.virtuosollc.com/PDF/Get_Reporter.pdf" target="test_blank"&gt;http://www.virtuosollc.com/PDF/Get_Reporter.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/da/6ada3889432f48e10000000a114084/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/da/6ada3889432f48e10000000a114084/frameset.htm&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005/helpdata/en/66/bc7d2543c211d182b30000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005/helpdata/en/66/bc7d2543c211d182b30000e829fbfe/frameset.htm&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005/helpdata/en/5b/d22cee43c611d182b30000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005/helpdata/en/5b/d22cee43c611d182b30000e829fbfe/frameset.htm&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SMARTFORMS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf" target="test_blank"&gt;http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-basis-abap.com/sapsf001.htm" target="test_blank"&gt;http://www.sap-basis-abap.com/sapsf001.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-press.com/downloads/h955_preview.pdf" target="test_blank"&gt;http://www.sap-press.com/downloads/h955_preview.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.ossincorp.com/Black_Box/Black_Box_2.htm" target="test_blank"&gt;http://www.ossincorp.com/Black_Box/Black_Box_2.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/smartforms/sap-smart-forms.htm" target="test_blank"&gt;http://www.sap-img.com/smartforms/sap-smart-forms.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/smartforms/smartform-tutorial.htm" target="test_blank"&gt;http://www.sap-img.com/smartforms/smartform-tutorial.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/smartforms.htm" target="test_blank"&gt;http://www.sapgenie.com/abap/smartforms.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/smartforms.htm" target="test_blank"&gt;http://www.sapgenie.com/abap/smartforms.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/smartforms/sap-smart-forms.htm" target="test_blank"&gt;http://www.sap-img.com/smartforms/sap-smart-forms.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/en/a5/de6838abce021ae10000009b38f842/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/en/a5/de6838abce021ae10000009b38f842/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/printdocu/core/Print46c/en/Data/htm/english.htm" target="test_blank"&gt;http://help.sap.com/printdocu/core/Print46c/en/Data/htm/english.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/smartforms/smart-001.htm" target="test_blank"&gt;http://www.sap-img.com/smartforms/smart-001.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/smartforms/smartform-tutorial.htm" target="test_blank"&gt;http://www.sap-img.com/smartforms/smartform-tutorial.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/smartforms/smart-002.htm" target="test_blank"&gt;http://www.sap-img.com/smartforms/smart-002.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/smartforms.htm" target="test_blank"&gt;http://www.sapgenie.com/abap/smartforms.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/smartforms/sap-smart-forms.htm" target="test_blank"&gt;http://www.sap-img.com/smartforms/sap-smart-forms.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-basis-abap.com/sapsf001.htm" target="test_blank"&gt;http://www.sap-basis-abap.com/sapsf001.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-press.com/downloads/h955_preview.pdf" target="test_blank"&gt;http://www.sap-press.com/downloads/h955_preview.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.ossincorp.com/Black_Box/Black_Box_2.htm" target="test_blank"&gt;http://www.ossincorp.com/Black_Box/Black_Box_2.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/smartforms/sap-smart-forms.htm" target="test_blank"&gt;http://www.sap-img.com/smartforms/sap-smart-forms.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/smartforms_detail.htm" target="test_blank"&gt;http://www.sapgenie.com/abap/smartforms_detail.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3139710"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2766476"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;/message/635740#635740 &lt;B&gt;[original link is broken]&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3011116"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.saptechnical.com/Tips/ABAP/SmartFormAdvantages.htm" target="test_blank"&gt;http://www.saptechnical.com/Tips/ABAP/SmartFormAdvantages.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;All Links&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="141094"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SF Books : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-press.com/downloads/h955_preview.pdf" target="test_blank"&gt;http://www.sap-press.com/downloads/h955_preview.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.allsaplinks.com/smartform_example.html" target="test_blank"&gt;http://www.allsaplinks.com/smartform_example.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this resolves your query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward all the helpful answers.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 09:23:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-some-examples-for-smartforms-and-scripts/m-p/2288547#M499012</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T09:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: need some examples for smartforms and scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-some-examples-for-smartforms-and-scripts/m-p/2288548#M499013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi jyothsna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have given below a simple example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the report program,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Report  ZSCRIPT1                                                    *&lt;/P&gt;&lt;P&gt;*&amp;amp;                                                                     *&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;                                                                     *&lt;/P&gt;&lt;P&gt;*&amp;amp;                                                                     *&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZSCRIPT1                                .&lt;/P&gt;&lt;P&gt;TABLES : EKKO,&lt;/P&gt;&lt;P&gt;         EKPO,&lt;/P&gt;&lt;P&gt;         KNA1,&lt;/P&gt;&lt;P&gt;         USR01,&lt;/P&gt;&lt;P&gt;         MARA,&lt;/P&gt;&lt;P&gt;         MAKT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF ZOPTION.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE ITCPO.&lt;/P&gt;&lt;P&gt;DATA : END OF ZOPTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: P_EBELN LIKE EKKO-EBELN,&lt;/P&gt;&lt;P&gt;            P_EBELP LIKE EKPO-EBELP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR EKPO.&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM EKPO&lt;/P&gt;&lt;P&gt;       WHERE EBELN = P_EBELN AND&lt;/P&gt;&lt;P&gt;             EBELP = P_EBELP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR KNA1.&lt;/P&gt;&lt;P&gt;SELECT SINGLE NAME1 FROM KNA1&lt;/P&gt;&lt;P&gt;              INTO KNA1-NAME1&lt;/P&gt;&lt;P&gt;              WHERE KUNNR = EKPO-KUNNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR MAKT.&lt;/P&gt;&lt;P&gt;SELECT SINGLE MAKTX FROM MAKT&lt;/P&gt;&lt;P&gt;              INTO MAKT-MAKTX&lt;/P&gt;&lt;P&gt;              WHERE MATNR = EKPO-MATNR AND&lt;/P&gt;&lt;P&gt;                    SPRAS = SY-LANGU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR USR01.&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM USR01 WHERE BNAME = SY-UNAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZOPTION-TDDEST    = USR01-SPLD.        "Output device (printer)&lt;/P&gt;&lt;P&gt;ZOPTION-TDIMMED   = 'X'.               "Print immediately&lt;/P&gt;&lt;P&gt;ZOPTION-TDDELETE  = 'X'.               "Delete after printing&lt;/P&gt;&lt;P&gt;ZOPTION-TDPROGRAM = 'ZPQRPRNT'.        "Program Name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'OPEN_FORM'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;         APPLICATION        = 'TX'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        ARCHIVE_INDEX      = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        ARCHIVE_PARAMS     = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         DEVICE             = 'PRINTER'&lt;/P&gt;&lt;P&gt;         DIALOG             = ' '&lt;/P&gt;&lt;P&gt;         FORM               = 'ZFORM1'&lt;/P&gt;&lt;P&gt;         LANGUAGE           = SY-LANGU&lt;/P&gt;&lt;P&gt;         OPTIONS            = ZOPTION&lt;/P&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;P&gt;          LANGUAGE           = SY-LANGU&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;         OTHERS     = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WRITE_FORM'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;         ELEMENT       = 'HEADER'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        FUNCTION      = 'SET'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        TYPE          = 'BODY'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         WINDOW        = 'HEADER'&lt;/P&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;P&gt;          ELEMENT       = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WRITE_FORM'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;         ELEMENT       = 'MAIN'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        FUNCTION      = 'SET'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        TYPE          = 'BODY'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         WINDOW        = 'MAIN'&lt;/P&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;P&gt;          ELEMENT       = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WRITE_FORM'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;         ELEMENT       = 'FOOTER'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        FUNCTION      = 'SET'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        TYPE          = 'BODY'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         WINDOW        = 'FOOTER'&lt;/P&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;P&gt;          ELEMENT       = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CLOSE_FORM'&lt;/P&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;P&gt;          UNOPENED = 1&lt;/P&gt;&lt;P&gt;          OTHERS   = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the layout Set&lt;/P&gt;&lt;P&gt;Layout set           Z_TESTSCRIPT&lt;/P&gt;&lt;P&gt;Description          Test SAP script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Standard attributes&lt;/P&gt;&lt;P&gt;  First page          FIRST&lt;/P&gt;&lt;P&gt;  Default paragraph   P1&lt;/P&gt;&lt;P&gt;  Tab-stop            1.00 CH&lt;/P&gt;&lt;P&gt;  Page format         DINA4&lt;/P&gt;&lt;P&gt;  Orientation         Landscape&lt;/P&gt;&lt;P&gt;  Lines/inch            6.00&lt;/P&gt;&lt;P&gt;  Characters/inch      10.00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Font attributes&lt;/P&gt;&lt;P&gt;  Font family         COURIER&lt;/P&gt;&lt;P&gt;  Font size           12.0 Point&lt;/P&gt;&lt;P&gt;  Bold                No&lt;/P&gt;&lt;P&gt;  Italic              No&lt;/P&gt;&lt;P&gt;  Underlined          No&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Characters    Attributes&lt;/P&gt;&lt;P&gt;  B           Character String Bold&lt;/P&gt;&lt;P&gt;              Standard attributes&lt;/P&gt;&lt;P&gt;              Marker            No&lt;/P&gt;&lt;P&gt;              Font attributes&lt;/P&gt;&lt;P&gt;              Bold              Yes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paragraphs    Attributes&lt;/P&gt;&lt;P&gt;  P1          Default Paragraph&lt;/P&gt;&lt;P&gt;              Standard attributes&lt;/P&gt;&lt;P&gt;              Line spacing      1.00 LN&lt;/P&gt;&lt;P&gt;              Left margin       1.00 CM&lt;/P&gt;&lt;P&gt;              Alignment         Left-aligned&lt;/P&gt;&lt;P&gt;              Font attributes&lt;/P&gt;&lt;P&gt;              Font family       TIMES&lt;/P&gt;&lt;P&gt;              Font size         12.0 Point&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  P2          Header Paragraph&lt;/P&gt;&lt;P&gt;              Standard attributes&lt;/P&gt;&lt;P&gt;              Line spacing      1.00 LN&lt;/P&gt;&lt;P&gt;              Left margin       4.50 CM&lt;/P&gt;&lt;P&gt;              Alignment         Left-aligned&lt;/P&gt;&lt;P&gt;              Font attributes&lt;/P&gt;&lt;P&gt;              Font family       TIMES&lt;/P&gt;&lt;P&gt;              Font size         18.0 Point&lt;/P&gt;&lt;P&gt;              Bold              Yes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  P3          Undelined paragraph&lt;/P&gt;&lt;P&gt;              Standard attributes&lt;/P&gt;&lt;P&gt;              Line spacing      1.00 LN&lt;/P&gt;&lt;P&gt;              Alignment         Left-aligned&lt;/P&gt;&lt;P&gt;              Font attributes&lt;/P&gt;&lt;P&gt;              Font family       TIMES&lt;/P&gt;&lt;P&gt;              Font size         12.0 Point&lt;/P&gt;&lt;P&gt;              Underlined        Yes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Windows       Attributes&lt;/P&gt;&lt;P&gt;  MAIN        Main window&lt;/P&gt;&lt;P&gt;              Window type       MAIN&lt;/P&gt;&lt;P&gt;  HEADER      Main window&lt;/P&gt;&lt;P&gt;              Window type       CONSTANT&lt;/P&gt;&lt;P&gt;  FOOTER      Main window&lt;/P&gt;&lt;P&gt;              Window type       CONSTANT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pages         Attributes&lt;/P&gt;&lt;P&gt;  FIRST       First Page&lt;/P&gt;&lt;P&gt;              Standard attributes&lt;/P&gt;&lt;P&gt;              Next page         FIRST&lt;/P&gt;&lt;P&gt;              Page counter&lt;/P&gt;&lt;P&gt;              Mode              START&lt;/P&gt;&lt;P&gt;              Numbering type    Arabic numerals&lt;/P&gt;&lt;P&gt;              Page window&lt;/P&gt;&lt;P&gt;              HEADER               Left margin          00.00 CM&lt;/P&gt;&lt;P&gt;                                   Upper margin         00.00 CM&lt;/P&gt;&lt;P&gt;                                   Window width         20.00 CM&lt;/P&gt;&lt;P&gt;                                   Window height        04.00 CM&lt;/P&gt;&lt;P&gt;              MAIN                 Left margin          00.00 CM&lt;/P&gt;&lt;P&gt;                                   Upper margin         05.00 CM&lt;/P&gt;&lt;P&gt;                                   Window width         20.00 CM&lt;/P&gt;&lt;P&gt;                                   Window height        20.00 CM&lt;/P&gt;&lt;P&gt;              FOOTER               Left margin          00.00 CM&lt;/P&gt;&lt;P&gt;                                   Upper margin         25.00 CM&lt;/P&gt;&lt;P&gt;                                   Window width         20.00 CM&lt;/P&gt;&lt;P&gt;                                   Window height        04.00 CM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Text elements for following windows:&lt;/P&gt;&lt;P&gt;HEADER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Element HEADER&lt;/P&gt;&lt;P&gt;/: POSITION XORIGIN 2 CM YORIGIN '-0.5 CM'&lt;/P&gt;&lt;P&gt;/: BOX XPOS 1 CM YPOS 1 CM WIDTH 18 CM HEIGHT 1 CM FRAME 10 TW INTENSITY 10&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;P2     ,,&amp;lt;B&amp;gt;TEST PURCHASE ORDER&amp;lt;/&amp;gt;&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAIN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Element MAIN&lt;/P&gt;&lt;P&gt;P1  &amp;lt;B&amp;gt;Customer/Supplier:&amp;lt;/&amp;gt;,,&amp;amp;KNA1-NAME1&amp;amp;&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;P1  &amp;lt;B&amp;gt;PO No:&amp;lt;/&amp;gt;,,&amp;amp;EKPO-EBELN&amp;amp;&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;P1  &amp;lt;B&amp;gt;Part No:&amp;lt;/&amp;gt;,,&amp;amp;MAKT-MATNR&amp;amp;&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;P1  &amp;lt;B&amp;gt;Description:&amp;lt;/&amp;gt;,,&amp;amp;MAKT-MAKTX&amp;amp;&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;P1  &amp;lt;B&amp;gt;Quantity:,,&amp;lt;/&amp;gt;&amp;amp;EKPO-MENGE&amp;amp;&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;P1  &amp;lt;B&amp;gt;Sign:&amp;lt;/&amp;gt;&amp;amp;uline(81)&amp;amp;&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;P1  &amp;lt;B&amp;gt;Date:&amp;lt;/&amp;gt;&amp;amp;EKKO-AEDAT&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOOTER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Element FOOTER&lt;/P&gt;&lt;P&gt;/: POSITION XORIGIN 2 CM YORIGIN '-0.5 CM'&lt;/P&gt;&lt;P&gt;/: BOX XPOS 1 CM YPOS 1 CM WIDTH 18 CM HEIGHT 1 CM FRAME 10 TW INTENSITY 10&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;P2     ,,&amp;lt;B&amp;gt;PLEASE SIGN THE PO BEFORE DISPATCH&amp;lt;/&amp;gt;&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;reward if useful :)&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 09:23:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-some-examples-for-smartforms-and-scripts/m-p/2288548#M499013</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T09:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: need some examples for smartforms and scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-some-examples-for-smartforms-and-scripts/m-p/2288549#M499014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can take help from these programs for smartforms in R/3 system :&lt;/P&gt;&lt;P&gt;Tcode SE38 (For ABAP Program)  and Smartforms (For Design Smartform)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SF_EXAMPLE_01&lt;/P&gt;&lt;P&gt;SF_EXAMPLE_02&lt;/P&gt;&lt;P&gt;SF_EXAMPLE_03&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sandeep Kaushik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 09:23:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-some-examples-for-smartforms-and-scripts/m-p/2288549#M499014</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T09:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: need some examples for smartforms and scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-some-examples-for-smartforms-and-scripts/m-p/2288550#M499015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report  ZSCRIPT1                                                    *
*&amp;amp;                                                                     *
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;                                                                     *
*&amp;amp;                                                                     *
*&amp;amp;---------------------------------------------------------------------*

REPORT  ZSCRIPT1                                .
TABLES : EKKO,
         EKPO,
         KNA1,
         USR01,
         MARA,
         MAKT.

DATA : BEGIN OF ZOPTION.
        INCLUDE STRUCTURE ITCPO.
DATA : END OF ZOPTION.

PARAMETERS: P_EBELN LIKE EKKO-EBELN,
            P_EBELP LIKE EKPO-EBELP.

CLEAR EKPO.
SELECT SINGLE * FROM EKPO
       WHERE EBELN = P_EBELN AND
             EBELP = P_EBELP.

CLEAR KNA1.
SELECT SINGLE NAME1 FROM KNA1
              INTO KNA1-NAME1
              WHERE KUNNR = EKPO-KUNNR.

CLEAR MAKT.
SELECT SINGLE MAKTX FROM MAKT
              INTO MAKT-MAKTX
              WHERE MATNR = EKPO-MATNR AND
                    SPRAS = SY-LANGU.

CLEAR USR01.
SELECT SINGLE * FROM USR01 WHERE BNAME = SY-UNAME.

ZOPTION-TDDEST    = USR01-SPLD.        "Output device (printer)
ZOPTION-TDIMMED   = 'X'.               "Print immediately
ZOPTION-TDDELETE  = 'X'.               "Delete after printing
ZOPTION-TDPROGRAM = 'ZPQRPRNT'.        "Program Name

CALL FUNCTION 'OPEN_FORM'
     EXPORTING
         APPLICATION        = 'TX'
*         ARCHIVE_INDEX      = ' '
*         ARCHIVE_PARAMS     = ' '
         DEVICE             = 'PRINTER'
         DIALOG             = ' '
         FORM               = 'ZFORM1'
         LANGUAGE           = SY-LANGU
         OPTIONS            = ZOPTION
     IMPORTING
          LANGUAGE           = SY-LANGU
       EXCEPTIONS
         OTHERS     = 1.

CALL FUNCTION 'WRITE_FORM'
     EXPORTING
         ELEMENT       = 'HEADER'
*         FUNCTION      = 'SET'
*         TYPE          = 'BODY'
         WINDOW        = 'HEADER'
     EXCEPTIONS
          ELEMENT       = 1.

CALL FUNCTION 'WRITE_FORM'
     EXPORTING
         ELEMENT       = 'MAIN'
*         FUNCTION      = 'SET'
*         TYPE          = 'BODY'
         WINDOW        = 'MAIN'
     EXCEPTIONS
          ELEMENT       = 1.

CALL FUNCTION 'WRITE_FORM'
     EXPORTING
         ELEMENT       = 'FOOTER'
*         FUNCTION      = 'SET'
*         TYPE          = 'BODY'
         WINDOW        = 'FOOTER'
     EXCEPTIONS
          ELEMENT       = 1.

CALL FUNCTION 'CLOSE_FORM'
     EXCEPTIONS
          UNOPENED = 1
          OTHERS   = 2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Layout set           Z_TESTSCRIPT
Description          Test SAP script

Standard attributes
  First page          FIRST
  Default paragraph   P1
  Tab-stop            1.00 CH
  Page format         DINA4
  Orientation         Landscape
  Lines/inch            6.00
  Characters/inch      10.00

Font attributes
  Font family         COURIER
  Font size           12.0 Point
  Bold                No
  Italic              No
  Underlined          No

Characters    Attributes
  B           Character String Bold
              Standard attributes
              Marker            No
              Font attributes
              Bold              Yes

Paragraphs    Attributes
  P1          Default Paragraph
              Standard attributes
              Line spacing      1.00 LN
              Left margin       1.00 CM
              Alignment         Left-aligned
              Font attributes
              Font family       TIMES
              Font size         12.0 Point

  P2          Header Paragraph
              Standard attributes
              Line spacing      1.00 LN
              Left margin       4.50 CM
              Alignment         Left-aligned
              Font attributes
              Font family       TIMES
              Font size         18.0 Point
              Bold              Yes

  P3          Undelined paragraph
              Standard attributes
              Line spacing      1.00 LN
              Alignment         Left-aligned
              Font attributes
              Font family       TIMES
              Font size         12.0 Point
              Underlined        Yes

Windows       Attributes
  MAIN        Main window
              Window type       MAIN
  HEADER      Main window
              Window type       CONSTANT
  FOOTER      Main window
              Window type       CONSTANT

Pages         Attributes
  FIRST       First Page
              Standard attributes
              Next page         FIRST
              Page counter
              Mode              START
              Numbering type    Arabic numerals
              Page window
              HEADER               Left margin          00.00 CM
                                   Upper margin         00.00 CM
                                   Window width         20.00 CM
                                   Window height        04.00 CM
              MAIN                 Left margin          00.00 CM
                                   Upper margin         05.00 CM
                                   Window width         20.00 CM
                                   Window height        20.00 CM
              FOOTER               Left margin          00.00 CM
                                   Upper margin         25.00 CM
                                   Window width         20.00 CM
                                   Window height        04.00 CM

Text elements for following windows:
HEADER

Element HEADER
/: POSITION XORIGIN 2 CM YORIGIN '-0.5 CM'
/: BOX XPOS 1 CM YPOS 1 CM WIDTH 18 CM HEIGHT 1 CM FRAME 10 TW INTENSITY 10
/
/
/
P2     ,,&amp;lt;B&amp;gt;TEST PURCHASE ORDER&amp;lt;/&amp;gt;
/
/

MAIN

Element MAIN
P1  &amp;lt;B&amp;gt;Customer/Supplier:&amp;lt;/&amp;gt;,,&amp;amp;KNA1-NAME1&amp;amp;
/
P1  &amp;lt;B&amp;gt;PO No:&amp;lt;/&amp;gt;,,&amp;amp;EKPO-EBELN&amp;amp;
/
P1  &amp;lt;B&amp;gt;Part No:&amp;lt;/&amp;gt;,,&amp;amp;MAKT-MATNR&amp;amp;
/
P1  &amp;lt;B&amp;gt;Description:&amp;lt;/&amp;gt;,,&amp;amp;MAKT-MAKTX&amp;amp;
/
P1  &amp;lt;B&amp;gt;Quantity:,,&amp;lt;/&amp;gt;&amp;amp;EKPO-MENGE&amp;amp;
/
P1  &amp;lt;B&amp;gt;Sign:&amp;lt;/&amp;gt;&amp;amp;uline(81)&amp;amp;
/
P1  &amp;lt;B&amp;gt;Date:&amp;lt;/&amp;gt;&amp;amp;EKKO-AEDAT&amp;amp;

FOOTER

Element FOOTER
/: POSITION XORIGIN 2 CM YORIGIN '-0.5 CM'
/: BOX XPOS 1 CM YPOS 1 CM WIDTH 18 CM HEIGHT 1 CM FRAME 10 TW INTENSITY 10
/
/
/
P2     ,,&amp;lt;B&amp;gt;PLEASE SIGN THE PO BEFORE DISPATCH&amp;lt;/&amp;gt;
/
/
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 09:26:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-some-examples-for-smartforms-and-scripts/m-p/2288550#M499015</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T09:26:38Z</dc:date>
    </item>
  </channel>
</rss>

