<?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: Regarding smartforms. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-smartforms/m-p/2811800#M657323</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;for Smartforms material&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;/P&gt;&lt;P&gt;How to trace smartform&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF" target="test_blank"&gt;http://www.help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/smartforms/smart-006.htm" target="test_blank"&gt;http://www.sap-img.com/smartforms/smart-006.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm" target="test_blank"&gt;http://www.sap-img.com/smartforms/smartforms-faq-part-two.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="1234083"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check most imp link&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;step by step good ex link is....&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;Please check the tables TNAPR and TTXFP for Standard Smartforms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the note 595812: it explain how to download the preconfigured smartforms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Detailed information can be accessed at the site:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://service.sap.com/preconfiguredforms" target="test_blank"&gt;http://service.sap.com/preconfiguredforms&lt;/A&gt; OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://service.sap.com/smb/development/preconfiguredforms" target="test_blank"&gt;http://service.sap.com/smb/development/preconfiguredforms&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To download preconfigured smartform package, please:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Go to &lt;A href="http://service.sap.com/installations" target="test_blank"&gt;http://service.sap.com/installations&lt;/A&gt;, select tab "download".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. On the right hand side screen, locate navigation tree node&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP Software Distribution Center-&amp;gt;Download-&amp;gt;Installations and Upgrades-&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Entry by Application Group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. In the main window (right hand side), follow the path&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP Best Practices-&amp;gt;Best Practices for mySAP All-in-One-&amp;gt; PRECONFIGURED&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SMART FORMS, you can find available preconfigured smartform versions.&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;here is the step by step which may help u as a starter ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to &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&lt;/P&gt;&lt;P&gt;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;P&gt;questions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  My Home &amp;gt; ABAP Development &amp;gt; Form Printing - SAPscript, Smartforms &amp;gt; Smartforms       &lt;/P&gt;&lt;P&gt;   ABAP Development  Welcome prabhu jayaraman | History | My Preferences |     &lt;/P&gt;&lt;P&gt;  Smartforms  &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; Additional Features    Add Page View Edit Comments Attachments (0) Info Notify Moderator Request Points  &lt;/P&gt;&lt;P&gt;Added by Wenceslaus G, last edited by Naresh Reddy on May 31, 2007  (view change) &lt;/P&gt;&lt;P&gt;Labels: (None) EDIT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add Labels   &lt;/P&gt;&lt;P&gt;Enter labels to add to this page:&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;Tip: Looking for a label? Just start typing.   &lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Smartforms: Frequently Asked Questions&lt;/P&gt;&lt;P&gt;HOME:#What are the differences between SAP Scripts and Smartforms? &lt;/P&gt;&lt;P&gt;HOME:#How can I insert symbols in Smartforms? &lt;/P&gt;&lt;P&gt;HOME:#I have a smartform which works fine in DEV. After trasnsporting it to PROD, there is no Function module generated for this smartform. As a result my program dumps in PROD? &lt;/P&gt;&lt;P&gt;HOME:#How can I make the Smartforms to choose a printer name by default? &lt;/P&gt;&lt;P&gt;HOME:#How can I make the Smartforms to display a print preview by default without displaying the popup for print parameters? &lt;/P&gt;&lt;P&gt;HOME:#How can I display the total number of pages in Smartforms? &lt;/P&gt;&lt;P&gt;HOME:#How can I display the total number of pages in Smartforms? &lt;/P&gt;&lt;P&gt;HOME:#I'm using the variable SFSY-FORMPAGES, I get a star "*" instead of the total number of pages. &lt;/P&gt;&lt;P&gt;HOME:#What are the various text formatting options in Smartforms? &lt;/P&gt;&lt;P&gt;HOME:#How can I provide a background shading to the table? &lt;/P&gt;&lt;P&gt;HOME:#Where can I provide the input parameters to the smartform? &lt;/P&gt;&lt;P&gt;HOME:#Where can I define my own global types for the smartform? &lt;/P&gt;&lt;P&gt;HOME:#I have defined my own Program Lines, where I have used a global variable G_TEXT. I get an error G_TEXT is not defined? &lt;/P&gt;&lt;P&gt;HOME:#I have created a table node for display. Where can I check the condition which must satisfy to display the table? &lt;/P&gt;&lt;P&gt;HOME:#How can I define Page Protect in Smartforms? &lt;/P&gt;&lt;P&gt;HOME:#What is the difference between Template and Table in Smartforms? &lt;/P&gt;&lt;P&gt;HOME:#Where can I define the paragraph and character format for the smartforms? &lt;/P&gt;&lt;P&gt;How to send smartform as mail and as PDF attachment &lt;/P&gt;&lt;P&gt;How to Convert smartform Output as PDF file &lt;/P&gt;&lt;P&gt;What are the differences between SAP Scripts and Smartforms?&lt;/P&gt;&lt;P&gt;SAP Scripts are client dependent whereas Smartforms are client independent. &lt;/P&gt;&lt;P&gt;SAP Scripts require a driver program to display the output whereas iHow to Create smartform Outpout as a PDF file and save it n smartforms the form routines can be written so that it is standalone. &lt;/P&gt;&lt;P&gt;An integrated Form Builder helps to design Smartforms more easily than SAP Scripts &lt;/P&gt;&lt;P&gt;An Table Painter and Smartstyles to assist in building up the smartforms &lt;/P&gt;&lt;P&gt;On activation a function module is generated for Smartforms &lt;/P&gt;&lt;P&gt;It is possible to create a Smartform without a main window &lt;/P&gt;&lt;P&gt;Smartforms generates XML output which can be viewed through the web &lt;/P&gt;&lt;P&gt;Multiple page formats is possible in smartforms &lt;/P&gt;&lt;P&gt;How can I insert symbols in Smartforms?&lt;/P&gt;&lt;P&gt;Select the Text node.&lt;/P&gt;&lt;P&gt;Change Editor (Click the button above Check near the Editor)&lt;/P&gt;&lt;P&gt;Go to menu Include-&amp;gt;Characters-&amp;gt;SAP Symbols&lt;/P&gt;&lt;P&gt;Choose the SAP symbol that you want to insert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a smartform which works fine in DEV. After trasnsporting it to PROD, there is no Function module generated for this smartform. As a result my program dumps in PROD?&lt;/P&gt;&lt;P&gt;The Smartform that is created in the Development may not have the same name in the Production server. So it is always advised to use the Function Module SSF_FUNCTION_MODULE_NAME to get the Function Module name by passing the Smartform name.&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;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;  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;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;CALL FUNCTION fm_name&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;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.How can I make the Smartforms to choose a printer name by default?&lt;/P&gt;&lt;P&gt;In the CALL FUNCTION of the Smartform Function Module, set the output options parameter to set the printer name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output options is of the type SSFCOMPOP which contains the field TDDEST. Set the TDDEST field to your default printer name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I make the Smartforms to display a print preview by default without displaying the popup for print parameters?&lt;/P&gt;&lt;P&gt;In the SSF_OPEN function module,&lt;/P&gt;&lt;P&gt;Set the OUTPUT OPTIONS paramter TDDEST to your printer name.&lt;/P&gt;&lt;P&gt;Set the CONTROL PARAMETERS and control parameters as shown below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;control-preview = 'X'.&lt;/P&gt;&lt;P&gt;control-no_open = 'X'.&lt;/P&gt;&lt;P&gt;control-no_close = 'X'.&lt;/P&gt;&lt;P&gt;control-no_dialog = 'X'.&lt;/P&gt;&lt;P&gt;control-device = 'PRINTER'.&lt;/P&gt;&lt;P&gt;control_parameters-no_dialog = 'X'.&lt;/P&gt;&lt;P&gt;control_parameters-no_open = 'X'.&lt;/P&gt;&lt;P&gt;control_parameters-no_close = 'X'.&lt;/P&gt;&lt;P&gt;OUTPUT_OPTIONS-TDDEST = 'PRINTER NAME'.&lt;/P&gt;&lt;P&gt;OUTPUT_OPTIONS-TDNOPRINT = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SSF_OPEN'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    output_options     = output_options&lt;/P&gt;&lt;P&gt;    control_parameters = control&lt;/P&gt;&lt;P&gt;    user_settings      = ' '&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.How can I display the total number of pages in Smartforms?&lt;/P&gt;&lt;P&gt;Use SFSY-FORMPAGES to display the total number of pages in the Smartforms&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;SFSY-PAGE&amp;amp;  Current page number  &lt;/P&gt;&lt;P&gt;&amp;amp;SFSY-FORMPAGE&amp;amp;  Total number of pages in the currently formatted layout set  &lt;/P&gt;&lt;P&gt;&amp;amp;SFSY-JOBPAGE&amp;amp;  Total number of pages in the currently formatted print request  &lt;/P&gt;&lt;P&gt;&amp;amp;SFSY-COPYCOUNT&amp;amp;  Original-1,1st copy-2  &lt;/P&gt;&lt;P&gt;&amp;amp;SFSY-DATE&amp;amp;  Date  &lt;/P&gt;&lt;P&gt;&amp;amp;SFSY-TIME&amp;amp;  Time  &lt;/P&gt;&lt;P&gt;&amp;amp;SFSY-USERNAME&amp;amp;  Username  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the variable SFSY-FORMPAGES, I get a star "*" instead of the total number of pages.&lt;/P&gt;&lt;P&gt;There may not be enough space in the window to display the variable, either increase the window dimensions or condense the spaces using &amp;amp;SFSY-FORMPAGES(C)&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What are the various text formatting options in Smartforms?&lt;/P&gt;&lt;P&gt;&amp;amp;symbol(Z)&amp;amp;  Omit Leading Zeros  &lt;/P&gt;&lt;P&gt;&amp;amp;symbol(S)&amp;amp;  Omit Leading Sign  &lt;/P&gt;&lt;P&gt;&amp;amp;symbol(&amp;lt;)&amp;amp;  Display Leading Sign to the Left  &lt;/P&gt;&lt;P&gt;&amp;amp;symbol(&amp;gt;)&amp;amp;  Display Leading Sign to the Right  &lt;/P&gt;&lt;P&gt;&amp;amp;symbol(C)&amp;amp;  Compress Spaces  &lt;/P&gt;&lt;P&gt;&amp;amp;symbol(.N)&amp;amp;  Display upto N decimal places  &lt;/P&gt;&lt;P&gt;&amp;amp;symbol(T)&amp;amp;  Omit thousands separator  &lt;/P&gt;&lt;P&gt;&amp;amp;symbol(R)&amp;amp;  Right justified  &lt;/P&gt;&lt;P&gt;&amp;amp;symbol(I)&amp;amp;  Suppress output of the initial value  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I provide a background shading to the table?&lt;/P&gt;&lt;P&gt;In the Table Painter, you can specify the color and shading for the table lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where can I provide the input parameters to the smartform?&lt;/P&gt;&lt;P&gt;The input parameters for the smartform can be defined in Global Settings-&amp;gt;Form Interface.&lt;/P&gt;&lt;P&gt; The Associated Type must be defined in the ABAP Dictionary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where can I define my own global types for the smartform?&lt;/P&gt;&lt;P&gt;The global types(within the smartform) can be defined in Global Settings-&amp;gt;Global Definitions-&amp;gt;Types&lt;/P&gt;&lt;P&gt;The types defined here will be global through the entire smartform.&lt;/P&gt;&lt;P&gt;Also the form routines can be defined Global Settings-&amp;gt;Global Definitions-&amp;gt;Form Routines&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have defined my own Program Lines, where I have used a global variable G_TEXT. I get an error G_TEXT is not defined?&lt;/P&gt;&lt;P&gt;Whenever using the global variables in the Program Lines, enter the variable name in Input Parameters if you are going to use(read) the variable. If you are going to both read/write the variable value enter the same in Output Parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a table node for display. Where can I check the condition which must satisfy to display the table?&lt;/P&gt;&lt;P&gt;The conditions can be defined in the Conditions tab. In smartforms all the nodes have a condition tab where you can specify the condition to be satisfied to access the node.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I define Page Protect in Smartforms?&lt;/P&gt;&lt;P&gt;To define Page Protect for a node go to the Output options and check the Page Protection checkbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the difference between Template and Table in Smartforms?&lt;/P&gt;&lt;P&gt;The Template contains a fixed number of rows and columns, where the output is fixed.&lt;/P&gt;&lt;P&gt;The Table can have variable number of rows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where can I define the paragraph and character format for the smartforms?&lt;/P&gt;&lt;P&gt;The paragraph and character format for the smartforms can be defined in the transaction SMARTSTYLES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 1 children | View in hierarchy  &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;Prabhu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if it is helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Sep 2007 10:49:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-21T10:49:05Z</dc:date>
    <item>
      <title>Regarding smartforms.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-smartforms/m-p/2811797#M657320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please provide good documentations on creation of smartforms.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2007 10:44:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-smartforms/m-p/2811797#M657320</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-21T10:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding smartforms.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-smartforms/m-p/2811798#M657321</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 through the following Links, here u can find example with step&lt;/P&gt;&lt;P&gt;by step.&lt;/P&gt;&lt;P&gt;&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;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;Check these step-by-step links&lt;/P&gt;&lt;P&gt;&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;&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;&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;Check these links also.&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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for Smartforms material&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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to trace smartform&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF" target="test_blank"&gt;http://www.help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/smartforms/smart-006.htm" target="test_blank"&gt;http://www.sap-img.com/smartforms/smart-006.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm" target="test_blank"&gt;http://www.sap-img.com/smartforms/smartforms-faq-part-two.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="1234083"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/smartforms/smart-006.htm" target="test_blank"&gt;http://www.sap-img.com/smartforms/smart-006.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm" target="test_blank"&gt;http://www.sap-img.com/smartforms/smartforms-faq-part-two.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="1234083"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Reward If Helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2007 10:45:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-smartforms/m-p/2811798#M657321</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-21T10:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding smartforms.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-smartforms/m-p/2811799#M657322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;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;Message was edited by: &lt;/P&gt;&lt;P&gt;        Hymavathi Oruganti&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2007 10:47:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-smartforms/m-p/2811799#M657322</guid>
      <dc:creator>hymavathi_oruganti</dc:creator>
      <dc:date>2007-09-21T10:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding smartforms.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-smartforms/m-p/2811800#M657323</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;for Smartforms material&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;/P&gt;&lt;P&gt;How to trace smartform&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF" target="test_blank"&gt;http://www.help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/smartforms/smart-006.htm" target="test_blank"&gt;http://www.sap-img.com/smartforms/smart-006.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm" target="test_blank"&gt;http://www.sap-img.com/smartforms/smartforms-faq-part-two.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="1234083"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check most imp link&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;step by step good ex link is....&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;Please check the tables TNAPR and TTXFP for Standard Smartforms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the note 595812: it explain how to download the preconfigured smartforms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Detailed information can be accessed at the site:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://service.sap.com/preconfiguredforms" target="test_blank"&gt;http://service.sap.com/preconfiguredforms&lt;/A&gt; OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://service.sap.com/smb/development/preconfiguredforms" target="test_blank"&gt;http://service.sap.com/smb/development/preconfiguredforms&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To download preconfigured smartform package, please:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Go to &lt;A href="http://service.sap.com/installations" target="test_blank"&gt;http://service.sap.com/installations&lt;/A&gt;, select tab "download".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. On the right hand side screen, locate navigation tree node&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP Software Distribution Center-&amp;gt;Download-&amp;gt;Installations and Upgrades-&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Entry by Application Group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. In the main window (right hand side), follow the path&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP Best Practices-&amp;gt;Best Practices for mySAP All-in-One-&amp;gt; PRECONFIGURED&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SMART FORMS, you can find available preconfigured smartform versions.&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;here is the step by step which may help u as a starter ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to &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&lt;/P&gt;&lt;P&gt;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;P&gt;questions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  My Home &amp;gt; ABAP Development &amp;gt; Form Printing - SAPscript, Smartforms &amp;gt; Smartforms       &lt;/P&gt;&lt;P&gt;   ABAP Development  Welcome prabhu jayaraman | History | My Preferences |     &lt;/P&gt;&lt;P&gt;  Smartforms  &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; Additional Features    Add Page View Edit Comments Attachments (0) Info Notify Moderator Request Points  &lt;/P&gt;&lt;P&gt;Added by Wenceslaus G, last edited by Naresh Reddy on May 31, 2007  (view change) &lt;/P&gt;&lt;P&gt;Labels: (None) EDIT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add Labels   &lt;/P&gt;&lt;P&gt;Enter labels to add to this page:&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;Tip: Looking for a label? Just start typing.   &lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Smartforms: Frequently Asked Questions&lt;/P&gt;&lt;P&gt;HOME:#What are the differences between SAP Scripts and Smartforms? &lt;/P&gt;&lt;P&gt;HOME:#How can I insert symbols in Smartforms? &lt;/P&gt;&lt;P&gt;HOME:#I have a smartform which works fine in DEV. After trasnsporting it to PROD, there is no Function module generated for this smartform. As a result my program dumps in PROD? &lt;/P&gt;&lt;P&gt;HOME:#How can I make the Smartforms to choose a printer name by default? &lt;/P&gt;&lt;P&gt;HOME:#How can I make the Smartforms to display a print preview by default without displaying the popup for print parameters? &lt;/P&gt;&lt;P&gt;HOME:#How can I display the total number of pages in Smartforms? &lt;/P&gt;&lt;P&gt;HOME:#How can I display the total number of pages in Smartforms? &lt;/P&gt;&lt;P&gt;HOME:#I'm using the variable SFSY-FORMPAGES, I get a star "*" instead of the total number of pages. &lt;/P&gt;&lt;P&gt;HOME:#What are the various text formatting options in Smartforms? &lt;/P&gt;&lt;P&gt;HOME:#How can I provide a background shading to the table? &lt;/P&gt;&lt;P&gt;HOME:#Where can I provide the input parameters to the smartform? &lt;/P&gt;&lt;P&gt;HOME:#Where can I define my own global types for the smartform? &lt;/P&gt;&lt;P&gt;HOME:#I have defined my own Program Lines, where I have used a global variable G_TEXT. I get an error G_TEXT is not defined? &lt;/P&gt;&lt;P&gt;HOME:#I have created a table node for display. Where can I check the condition which must satisfy to display the table? &lt;/P&gt;&lt;P&gt;HOME:#How can I define Page Protect in Smartforms? &lt;/P&gt;&lt;P&gt;HOME:#What is the difference between Template and Table in Smartforms? &lt;/P&gt;&lt;P&gt;HOME:#Where can I define the paragraph and character format for the smartforms? &lt;/P&gt;&lt;P&gt;How to send smartform as mail and as PDF attachment &lt;/P&gt;&lt;P&gt;How to Convert smartform Output as PDF file &lt;/P&gt;&lt;P&gt;What are the differences between SAP Scripts and Smartforms?&lt;/P&gt;&lt;P&gt;SAP Scripts are client dependent whereas Smartforms are client independent. &lt;/P&gt;&lt;P&gt;SAP Scripts require a driver program to display the output whereas iHow to Create smartform Outpout as a PDF file and save it n smartforms the form routines can be written so that it is standalone. &lt;/P&gt;&lt;P&gt;An integrated Form Builder helps to design Smartforms more easily than SAP Scripts &lt;/P&gt;&lt;P&gt;An Table Painter and Smartstyles to assist in building up the smartforms &lt;/P&gt;&lt;P&gt;On activation a function module is generated for Smartforms &lt;/P&gt;&lt;P&gt;It is possible to create a Smartform without a main window &lt;/P&gt;&lt;P&gt;Smartforms generates XML output which can be viewed through the web &lt;/P&gt;&lt;P&gt;Multiple page formats is possible in smartforms &lt;/P&gt;&lt;P&gt;How can I insert symbols in Smartforms?&lt;/P&gt;&lt;P&gt;Select the Text node.&lt;/P&gt;&lt;P&gt;Change Editor (Click the button above Check near the Editor)&lt;/P&gt;&lt;P&gt;Go to menu Include-&amp;gt;Characters-&amp;gt;SAP Symbols&lt;/P&gt;&lt;P&gt;Choose the SAP symbol that you want to insert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a smartform which works fine in DEV. After trasnsporting it to PROD, there is no Function module generated for this smartform. As a result my program dumps in PROD?&lt;/P&gt;&lt;P&gt;The Smartform that is created in the Development may not have the same name in the Production server. So it is always advised to use the Function Module SSF_FUNCTION_MODULE_NAME to get the Function Module name by passing the Smartform name.&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;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;  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;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;CALL FUNCTION fm_name&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;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.How can I make the Smartforms to choose a printer name by default?&lt;/P&gt;&lt;P&gt;In the CALL FUNCTION of the Smartform Function Module, set the output options parameter to set the printer name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output options is of the type SSFCOMPOP which contains the field TDDEST. Set the TDDEST field to your default printer name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I make the Smartforms to display a print preview by default without displaying the popup for print parameters?&lt;/P&gt;&lt;P&gt;In the SSF_OPEN function module,&lt;/P&gt;&lt;P&gt;Set the OUTPUT OPTIONS paramter TDDEST to your printer name.&lt;/P&gt;&lt;P&gt;Set the CONTROL PARAMETERS and control parameters as shown below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;control-preview = 'X'.&lt;/P&gt;&lt;P&gt;control-no_open = 'X'.&lt;/P&gt;&lt;P&gt;control-no_close = 'X'.&lt;/P&gt;&lt;P&gt;control-no_dialog = 'X'.&lt;/P&gt;&lt;P&gt;control-device = 'PRINTER'.&lt;/P&gt;&lt;P&gt;control_parameters-no_dialog = 'X'.&lt;/P&gt;&lt;P&gt;control_parameters-no_open = 'X'.&lt;/P&gt;&lt;P&gt;control_parameters-no_close = 'X'.&lt;/P&gt;&lt;P&gt;OUTPUT_OPTIONS-TDDEST = 'PRINTER NAME'.&lt;/P&gt;&lt;P&gt;OUTPUT_OPTIONS-TDNOPRINT = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SSF_OPEN'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    output_options     = output_options&lt;/P&gt;&lt;P&gt;    control_parameters = control&lt;/P&gt;&lt;P&gt;    user_settings      = ' '&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.How can I display the total number of pages in Smartforms?&lt;/P&gt;&lt;P&gt;Use SFSY-FORMPAGES to display the total number of pages in the Smartforms&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;SFSY-PAGE&amp;amp;  Current page number  &lt;/P&gt;&lt;P&gt;&amp;amp;SFSY-FORMPAGE&amp;amp;  Total number of pages in the currently formatted layout set  &lt;/P&gt;&lt;P&gt;&amp;amp;SFSY-JOBPAGE&amp;amp;  Total number of pages in the currently formatted print request  &lt;/P&gt;&lt;P&gt;&amp;amp;SFSY-COPYCOUNT&amp;amp;  Original-1,1st copy-2  &lt;/P&gt;&lt;P&gt;&amp;amp;SFSY-DATE&amp;amp;  Date  &lt;/P&gt;&lt;P&gt;&amp;amp;SFSY-TIME&amp;amp;  Time  &lt;/P&gt;&lt;P&gt;&amp;amp;SFSY-USERNAME&amp;amp;  Username  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the variable SFSY-FORMPAGES, I get a star "*" instead of the total number of pages.&lt;/P&gt;&lt;P&gt;There may not be enough space in the window to display the variable, either increase the window dimensions or condense the spaces using &amp;amp;SFSY-FORMPAGES(C)&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What are the various text formatting options in Smartforms?&lt;/P&gt;&lt;P&gt;&amp;amp;symbol(Z)&amp;amp;  Omit Leading Zeros  &lt;/P&gt;&lt;P&gt;&amp;amp;symbol(S)&amp;amp;  Omit Leading Sign  &lt;/P&gt;&lt;P&gt;&amp;amp;symbol(&amp;lt;)&amp;amp;  Display Leading Sign to the Left  &lt;/P&gt;&lt;P&gt;&amp;amp;symbol(&amp;gt;)&amp;amp;  Display Leading Sign to the Right  &lt;/P&gt;&lt;P&gt;&amp;amp;symbol(C)&amp;amp;  Compress Spaces  &lt;/P&gt;&lt;P&gt;&amp;amp;symbol(.N)&amp;amp;  Display upto N decimal places  &lt;/P&gt;&lt;P&gt;&amp;amp;symbol(T)&amp;amp;  Omit thousands separator  &lt;/P&gt;&lt;P&gt;&amp;amp;symbol(R)&amp;amp;  Right justified  &lt;/P&gt;&lt;P&gt;&amp;amp;symbol(I)&amp;amp;  Suppress output of the initial value  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I provide a background shading to the table?&lt;/P&gt;&lt;P&gt;In the Table Painter, you can specify the color and shading for the table lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where can I provide the input parameters to the smartform?&lt;/P&gt;&lt;P&gt;The input parameters for the smartform can be defined in Global Settings-&amp;gt;Form Interface.&lt;/P&gt;&lt;P&gt; The Associated Type must be defined in the ABAP Dictionary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where can I define my own global types for the smartform?&lt;/P&gt;&lt;P&gt;The global types(within the smartform) can be defined in Global Settings-&amp;gt;Global Definitions-&amp;gt;Types&lt;/P&gt;&lt;P&gt;The types defined here will be global through the entire smartform.&lt;/P&gt;&lt;P&gt;Also the form routines can be defined Global Settings-&amp;gt;Global Definitions-&amp;gt;Form Routines&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have defined my own Program Lines, where I have used a global variable G_TEXT. I get an error G_TEXT is not defined?&lt;/P&gt;&lt;P&gt;Whenever using the global variables in the Program Lines, enter the variable name in Input Parameters if you are going to use(read) the variable. If you are going to both read/write the variable value enter the same in Output Parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a table node for display. Where can I check the condition which must satisfy to display the table?&lt;/P&gt;&lt;P&gt;The conditions can be defined in the Conditions tab. In smartforms all the nodes have a condition tab where you can specify the condition to be satisfied to access the node.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I define Page Protect in Smartforms?&lt;/P&gt;&lt;P&gt;To define Page Protect for a node go to the Output options and check the Page Protection checkbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the difference between Template and Table in Smartforms?&lt;/P&gt;&lt;P&gt;The Template contains a fixed number of rows and columns, where the output is fixed.&lt;/P&gt;&lt;P&gt;The Table can have variable number of rows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where can I define the paragraph and character format for the smartforms?&lt;/P&gt;&lt;P&gt;The paragraph and character format for the smartforms can be defined in the transaction SMARTSTYLES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 1 children | View in hierarchy  &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;Prabhu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if it is helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2007 10:49:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-smartforms/m-p/2811800#M657323</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-21T10:49:05Z</dc:date>
    </item>
  </channel>
</rss>

