<?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: smartforms in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/3980218#M950658</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.saptechnical.com/Tutorials/Smartforms/PO/page1.htm" target="test_blank"&gt;http://www.saptechnical.com/Tutorials/Smartforms/PO/page1.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jun 2008 13:25:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-18T13:25:58Z</dc:date>
    <item>
      <title>smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/3980211#M950651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey can anyone post me how to do smartforms in ecc 6.0 along with print program plzzzzzzzzz urgent.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 12:20:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/3980211#M950651</guid>
      <dc:creator>Akhil_Sun</dc:creator>
      <dc:date>2008-06-18T12:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/3980212#M950652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pllllzzzzzzz read"http://help.sap.com&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 12:23:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/3980212#M950652</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T12:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/3980213#M950653</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;chk these links.&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.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;A href="http://searchsap.techtarget.com/tip/1,289483,sid21_gci1001864,00.html" target="test_blank"&gt;http://searchsap.techtarget.com/tip/1,289483,sid21_gci1001864,00.html&lt;/A&gt;&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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sandeep Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 12:30:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/3980213#M950653</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T12:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/3980214#M950654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I feel duty bound to point out your spelling error.  Surely everyone knows plzzzzzzz has only one L.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 12:34:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/3980214#M950654</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T12:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/3980215#M950655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;below are the example programs names and smart form names (both names are same).&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 12:37:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/3980215#M950655</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T12:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/3980216#M950656</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;Go to the following link which explains step by step with screen shots on creating a smartform.you can easily understand and create the form on your own.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html" target="test_blank"&gt;http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&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;2. Define looping process for internal table &lt;/P&gt;&lt;P&gt;Pages and windows &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;Main windows -&amp;gt; TABLE -&amp;gt; DATA &lt;/P&gt;&lt;P&gt;In the Loop section, tick Internal table and fill in &lt;/P&gt;&lt;P&gt;ITAB1 (table in ABAP SMARTFORM calling function) INTO ITAB2 &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;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;P&gt;Calling SMARTFORMS from your ABAP program. &lt;/P&gt;&lt;P&gt;Collecting all the table data in your program, and pass once to SMARTFORMS &lt;/P&gt;&lt;P&gt;SMARTFORMS &lt;/P&gt;&lt;P&gt;Declare your table type in :- &lt;/P&gt;&lt;P&gt;Global Settings -&amp;gt; Form Interface &lt;/P&gt;&lt;P&gt;Global Definintions -&amp;gt; Global Data &lt;/P&gt;&lt;P&gt;Main Window -&amp;gt; Table -&amp;gt; DATA &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Written by : SAP Hints and Tips on Configuration and ABAP/4 Programming &lt;/P&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;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;P&gt;&lt;/P&gt;&lt;P&gt;At the end of your program. &lt;/P&gt;&lt;P&gt;Passing data to SMARTFORMS &lt;/P&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;P&gt;&lt;/P&gt;&lt;P&gt;VARIANT = ' ' &lt;/P&gt;&lt;P&gt;DIRECT_CALL = ' ' &lt;/P&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 0. &lt;/P&gt;&lt;P&gt;WRITE: / 'ERROR 1'. &lt;/P&gt;&lt;P&gt;&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;call function FM_NAME &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORTING &lt;/P&gt;&lt;P&gt;ARCHIVE_INDEX = &lt;/P&gt;&lt;P&gt;ARCHIVE_INDEX_TAB = &lt;/P&gt;&lt;P&gt;ARCHIVE_PARAMETERS = &lt;/P&gt;&lt;P&gt;CONTROL_PARAMETERS = &lt;/P&gt;&lt;P&gt;MAIL_APPL_OBJ = &lt;/P&gt;&lt;P&gt;MAIL_RECIPIENT = &lt;/P&gt;&lt;P&gt;MAIL_SENDER = &lt;/P&gt;&lt;P&gt;OUTPUT_OPTIONS = &lt;/P&gt;&lt;P&gt;USER_SETTINGS = 'X' &lt;/P&gt;&lt;P&gt;IMPORTING &lt;/P&gt;&lt;P&gt;DOCUMENT_OUTPUT_INFO = &lt;/P&gt;&lt;P&gt;JOB_OUTPUT_INFO = &lt;/P&gt;&lt;P&gt;JOB_OUTPUT_OPTIONS = &lt;/P&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 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;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raj.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 12:38:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/3980216#M950656</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T12:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/3980217#M950657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt; go to this link &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://saptechnical.com/Tutorials/Smartforms/SFMain.htm" target="test_blank"&gt;http://saptechnical.com/Tutorials/Smartforms/SFMain.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap-img.com/smartforms/sap-smart-forms.htm" target="test_blank"&gt;http://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;PLZ REWARD POINTS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Snehi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 13:20:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/3980217#M950657</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T13:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/3980218#M950658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.saptechnical.com/Tutorials/Smartforms/PO/page1.htm" target="test_blank"&gt;http://www.saptechnical.com/Tutorials/Smartforms/PO/page1.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 13:25:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/3980218#M950658</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T13:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/3980219#M950659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yeah John, &lt;STRONG&gt;and&lt;/STRONG&gt; you forgot to add your request for points.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 13:43:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/3980219#M950659</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T13:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/3980220#M950660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right...., but there already so many point naggers around this forum these days. I get my satisfaction out of other things....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 13:47:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/3980220#M950660</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T13:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/3980221#M950661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAP Smart Forms allow us to execute simple modifications to the form and in the form logic by using simple&lt;/P&gt;&lt;P&gt;graphical tools; in 90% of all cases, this won't include any programming effort. To print a form, you need a&lt;/P&gt;&lt;P&gt;program for data retrieval and a Smart Form that contains the entire from logic. As data retrieval and form&lt;/P&gt;&lt;P&gt;logic are separated, you must only adapt the Smart Form if changes to the form logic are necessary. For the&lt;/P&gt;&lt;P&gt;purpose of demonstrating the power and download capabilities of Smart form, I have created a Smart from&lt;/P&gt;&lt;P&gt;named ZSMARTFORM_SWAR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Creation of SMART FORM:&lt;/P&gt;&lt;P&gt;From SAP R/3 release 4.6C onwards, SAP has come up with the concept of SMART FORMS. Prior to SAP&lt;/P&gt;&lt;P&gt;R/3 4.6C, Sap Scripts were being used for mass printing. To create a smart form, execute the transaction&lt;/P&gt;&lt;P&gt;u201CSMART FORMSu201D. Provide u201CZSMARTFORM_SWARu201D as the name of the Smart form. Select u201CCreateu201D.&lt;/P&gt;&lt;P&gt;When you create a Smart Form, the tree structure of the Form Painter already contains two root nodes:&lt;/P&gt;&lt;P&gt;u2022 Global setting&lt;/P&gt;&lt;P&gt;u2022 Pages and Windows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Global Setting&lt;/P&gt;&lt;P&gt;The node Global Settings as well as its three successors Form attributes, Form interface, and Global&lt;/P&gt;&lt;P&gt;definitions always exist for any newly created forms.&lt;/P&gt;&lt;P&gt;Form attributes&lt;/P&gt;&lt;P&gt;Here you need to provide the description for the smart form. In this case, the description is u201CCreate and&lt;/P&gt;&lt;P&gt;Download SMART FORM to PDFu201D. Here, there is a provision to specify whether the Smart form can be&lt;/P&gt;&lt;P&gt;translated to other languages in future.&lt;/P&gt;&lt;P&gt;Form Interface&lt;/P&gt;&lt;P&gt;In Form Interface, you can specify the parameters that would be imported and exported to Smart form. In this&lt;/P&gt;&lt;P&gt;case, I have imported two parameters u201CMYDATEu201D and u201CREASONu201D. In this case, there are no Export&lt;/P&gt;&lt;P&gt;parameters and Tables. These can be used if we intent to pass information from Smart forms to the ABAP&lt;/P&gt;&lt;P&gt;program. There are few standard import and export parameters that can be used depending on the&lt;/P&gt;&lt;P&gt;functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pages and windows:&lt;/P&gt;&lt;P&gt;A form can consist of pages, output areas, addresses, graphics (such as company logo), and data or text&lt;/P&gt;&lt;P&gt;contents. Within an output area, we can use static or dynamic tables to display data or texts in lines, columns,&lt;/P&gt;&lt;P&gt;or cells. To further structure and format text and data, we can use paragraphs with the paragraph and&lt;/P&gt;&lt;P&gt;character formats. SAP calls output areas "windows". We can position windows freely on a page. On a page,&lt;/P&gt;&lt;P&gt;there are two different types of output areas for texts and data: the main window and the sub window.&lt;/P&gt;&lt;P&gt;Graphics:&lt;/P&gt;&lt;P&gt;In the Form Builder we describe a Smart Form by a set of nodes. To do this, you build up a tree structure on&lt;/P&gt;&lt;P&gt;the left side of the user interface. On the user Interface, specify the name, object and Id of the bitmap image&lt;/P&gt;&lt;P&gt;to be placed on the Smart form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Main window&lt;/P&gt;&lt;P&gt;On a page, there are two different types of output areas for texts and data: the main window and the sub&lt;/P&gt;&lt;P&gt;window. In a main window you display text and data, which can cover several pages (flow text). As soon as a&lt;/P&gt;&lt;P&gt;main window is completely filled with text and data, the system continues displaying the text in the main&lt;/P&gt;&lt;P&gt;window of the next page. It automatically triggers the page break.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Downloading Smart Form to PDF from Application&lt;/P&gt;&lt;P&gt;You can pass data retrieved from the application to the Smart form using the Form Interface. The data could&lt;/P&gt;&lt;P&gt;also include the data retrieved from database tables. In addition, you can define exceptions to which the&lt;/P&gt;&lt;P&gt;application program must react. You trigger form printing by calling only two function modules. The first&lt;/P&gt;&lt;P&gt;module uses the name of the form to determine the name of the generated function module. Then you call&lt;/P&gt;&lt;P&gt;this Smart form.&lt;/P&gt;&lt;P&gt;Call function module SSF_FUNCTION_MODULE_NAME. It returns the name of the generated function&lt;/P&gt;&lt;P&gt;module. Call the generated function module. To do this, use the Insert statement function for CALL&lt;/P&gt;&lt;P&gt;FUNCTION in the ABAP Editor. Then replace the function module name with the variable FM_NAME. Set the&lt;/P&gt;&lt;P&gt;u2018GETOTFu2019 parameter to u2018Xu2019 and pass it to CONTROL_PARAMETERS. The function module would export the&lt;/P&gt;&lt;P&gt;Smart form to an internal table u2018T_OTFDATAu2019.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call the function module u2018CONVERT_OTFu2019 to convert the smart form to PDF format. The function module&lt;/P&gt;&lt;P&gt;returns the size of downloaded file. Using u2018WS_DOWNLOADu2019 function module, you can download the Smart&lt;/P&gt;&lt;P&gt;form to a PDF file in the required directory.&lt;/P&gt;&lt;P&gt;REPORT zswar.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN: BEGIN OF BLOCK b1 WITH FRAME.&lt;/P&gt;&lt;P&gt;PARAMETER: p_date LIKE sy-datum.&lt;/P&gt;&lt;P&gt;PARAMETER: p_rea TYPE char255.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN: END OF BLOCK b1.&lt;/P&gt;&lt;P&gt;DATA: ws_ucomm LIKE sy-ucomm.&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;SET PF-STATUS 'STANDARD' OF PROGRAM 'ZSWAR'.&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;ws_ucomm = sy-ucomm.&lt;/P&gt;&lt;P&gt;CASE ws_ucomm.&lt;/P&gt;&lt;P&gt;WHEN '&amp;amp;PDF'.&lt;/P&gt;&lt;P&gt;PERFORM f1000_download_form.&lt;/P&gt;&lt;P&gt;EXIT.&lt;/P&gt;&lt;P&gt;WHEN '&amp;amp;BACK'.&lt;/P&gt;&lt;P&gt;SET SCREEN 0.&lt;/P&gt;&lt;P&gt;EXIT.&lt;/P&gt;&lt;P&gt;WHEN '&amp;amp;EXIT'.&lt;/P&gt;&lt;P&gt;SET SCREEN 0.&lt;/P&gt;&lt;P&gt;EXIT.&lt;/P&gt;&lt;P&gt;WHEN '&amp;amp;canc'.&lt;/P&gt;&lt;P&gt;SET SCREEN 0.&lt;/P&gt;&lt;P&gt;LEAVE TO SCREEN 0.&lt;/P&gt;&lt;P&gt;ENDCASE.&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; Form F1000_DOWNLOAD_FORM&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;--&amp;gt; p1 text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;&amp;lt;-- p2 text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM f1000_download_form.&lt;/P&gt;&lt;P&gt;DATA: form_name TYPE rs38l_fnam.&lt;/P&gt;&lt;P&gt;DATA: wa_ctrlop TYPE ssfctrlop,&lt;/P&gt;&lt;P&gt;wa_outopt TYPE ssfcompop.&lt;/P&gt;&lt;P&gt;DATA: t_otfdata TYPE ssfcrescl,&lt;/P&gt;&lt;P&gt;t_pdf_tab LIKE tline OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: t_otf TYPE itcoo OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA: w_filesize TYPE i.&lt;/P&gt;&lt;P&gt;DATA: w_bin_filesize TYPE i.&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_SWAR'&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 = form_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;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;wa_ctrlop-getotf = 'X'.&lt;/P&gt;&lt;P&gt;wa_ctrlop-no_dialog = 'X'.&lt;/P&gt;&lt;P&gt;wa_outopt-tdnoprev = 'X'.&lt;/P&gt;&lt;P&gt;CALL FUNCTION form_name&lt;/P&gt;&lt;P&gt;EXPORTING&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_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;/UL&gt;&lt;P&gt;control_parameters = wa_ctrlop&lt;/P&gt;&lt;UL&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;/UL&gt;&lt;P&gt;output_options = wa_outopt&lt;/P&gt;&lt;P&gt;user_settings = 'X'&lt;/P&gt;&lt;P&gt;mydate = p_date&lt;/P&gt;&lt;P&gt;reason = p_rea&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;DOCUMENT_OUTPUT_INFO =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;job_output_info = t_otfdata&lt;/P&gt;&lt;UL&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;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;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;t_otf[] = t_otfdata-otfdata[].&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERT_OTF'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;format = 'PDF'&lt;/P&gt;&lt;P&gt;max_linewidth = 132&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;/UL&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;bin_filesize = w_bin_filesize&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;otf = t_otf&lt;/P&gt;&lt;P&gt;lines = t_pdf_tab&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;err_max_linewidth = 1&lt;/P&gt;&lt;P&gt;err_format = 2&lt;/P&gt;&lt;P&gt;err_conv_not_possible = 3&lt;/P&gt;&lt;P&gt;OTHERS = 4&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&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;CALL FUNCTION 'WS_DOWNLOAD'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;bin_filesize = w_bin_filesize&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CODEPAGE = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;filename = 'd:\test.PDF'&lt;/P&gt;&lt;P&gt;filetype = 'BIN'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MODE = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WK1_N_FORMAT = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WK1_N_SIZE = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WK1_T_FORMAT = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WK1_T_SIZE = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;COL_SELECT = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;COL_SELECTMASK = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;NO_AUTH_CHECK = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;filelength = w_filesize&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;data_tab = t_pdf_tab&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FIELDNAMES =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;file_open_error = 1&lt;/P&gt;&lt;P&gt;file_write_error = 2&lt;/P&gt;&lt;P&gt;invalid_filesize = 3&lt;/P&gt;&lt;P&gt;invalid_type = 4&lt;/P&gt;&lt;P&gt;no_batch = 5&lt;/P&gt;&lt;P&gt;unknown_error = 6&lt;/P&gt;&lt;P&gt;invalid_table_width = 7&lt;/P&gt;&lt;P&gt;gui_refuse_filetransfer = 8&lt;/P&gt;&lt;P&gt;customer_error = 9&lt;/P&gt;&lt;P&gt;OTHERS = 10&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 i003(z00) WITH 'File not downloaded succesfully'.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;MESSAGE i003(z00) WITH 'File Test.pdf downloaded succesfully '&lt;/P&gt;&lt;P&gt;'under D drive'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM. " F1000_DOWNLOAD_FORM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 12:25:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/3980221#M950661</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T12:25:37Z</dc:date>
    </item>
  </channel>
</rss>

