<?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: smart forms in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/smart-forms/m-p/3542387#M852183</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;How to create a New smartfrom, it is having step by step procedure &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap.niraj.tripod.com/id67.html" target="test_blank"&gt;http://sap.niraj.tripod.com/id67.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;step by step good ex link is....&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;Here is the procedure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create a new smartforms &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Transaction code SMARTFORMS &lt;/P&gt;&lt;P&gt;Create new smartforms call ZSMART&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Define looping process for internal table &lt;/P&gt;&lt;P&gt;Pages and windows &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First Page -&amp;gt; Header Window (Cursor at First Page then click Edit -&amp;gt; Node -&amp;gt; Create) &lt;/P&gt;&lt;P&gt;Here, you can specify your title and page numbering &lt;/P&gt;&lt;P&gt;&amp;amp;SFSY-PAGE&amp;amp; (Page 1) of &amp;amp;SFSY-FORMPAGES(Z4.0)&amp;amp; (Total Page) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Main windows -&amp;gt; TABLE -&amp;gt; DATA &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Loop section, tick Internal table and fill in &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITAB1 (table in ABAP SMARTFORM calling function) INTO ITAB2 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Define table in smartforms &lt;/P&gt;&lt;P&gt;Global settings : &lt;/P&gt;&lt;P&gt;Form interface &lt;/P&gt;&lt;P&gt;Variable name Type assignment Reference type &lt;/P&gt;&lt;P&gt;ITAB1 TYPE Table Structure &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Global definitions &lt;/P&gt;&lt;P&gt;Variable name Type assignment Reference type &lt;/P&gt;&lt;P&gt;ITAB2 TYPE Table Structure &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. To display the data in the form &lt;/P&gt;&lt;P&gt;Make used of the Table Painter and declare the Line Type in Tabstrips Table &lt;/P&gt;&lt;P&gt;e.g. HD_GEN for printing header details, &lt;/P&gt;&lt;P&gt;IT_GEN for printing data details. &lt;/P&gt;&lt;P&gt;You have to specify the Line Type in your Text elements in the Tabstrips Output options. &lt;/P&gt;&lt;P&gt;Tick the New Line and specify the Line Type for outputting the data. &lt;/P&gt;&lt;P&gt;Declare your output fields in Text elements &lt;/P&gt;&lt;P&gt;Tabstrips - Output Options &lt;/P&gt;&lt;P&gt;For different fonts use this Style : IDWTCERTSTYLE &lt;/P&gt;&lt;P&gt;For Quantity or Amout you can used this variable &amp;amp;GS_ITAB-AMOUNT(12.2)&amp;amp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. Calling SMARTFORMS from your ABAP program &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZSMARTFORM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Calling SMARTFORMS from your ABAP program. &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Collecting all the table data in your program, and pass once to SMARTFORMS &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SMARTFORMS &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Declare your table type in :- &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Global Settings -&amp;gt; Form Interface &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Global Definintions -&amp;gt; Global Data &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Main Window -&amp;gt; Table -&amp;gt; DATA &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Written by : SAP Hints and Tips on Configuration and ABAP/4 Programming &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;&lt;A href="http://sapr3.tripod.com" target="test_blank"&gt;http://sapr3.tripod.com&lt;/A&gt; &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: MKPF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: FM_NAME TYPE RS38L_FNAM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF INT_MKPF OCCURS 0. &lt;/P&gt;&lt;P&gt;INCLUDE STRUCTURE MKPF. &lt;/P&gt;&lt;P&gt;DATA: END OF INT_MKPF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR. &lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING MKPF TO INT_MKPF. &lt;/P&gt;&lt;P&gt;APPEND INT_MKPF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDSELECT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;At the end of your program. &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Passing data to SMARTFORMS &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'SSF_FUNCTION_MODULE_NAME' &lt;/P&gt;&lt;P&gt;exporting &lt;/P&gt;&lt;P&gt;formname = 'ZSMARTFORM' &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;VARIANT = ' ' &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;DIRECT_CALL = ' ' &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;IMPORTING &lt;/P&gt;&lt;P&gt;FM_NAME = FM_NAME &lt;/P&gt;&lt;P&gt;EXCEPTIONS &lt;/P&gt;&lt;P&gt;NO_FORM = 1 &lt;/P&gt;&lt;P&gt;NO_FUNCTION_MODULE = 2 &lt;/P&gt;&lt;P&gt;OTHERS = 3. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0. &lt;/P&gt;&lt;P&gt;WRITE: / 'ERROR 1'. &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;endif. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function FM_NAME &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXPORTING &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ARCHIVE_INDEX = &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ARCHIVE_INDEX_TAB = &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ARCHIVE_PARAMETERS = &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CONTROL_PARAMETERS = &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MAIL_APPL_OBJ = &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MAIL_RECIPIENT = &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MAIL_SENDER = &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;OUTPUT_OPTIONS = &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;USER_SETTINGS = 'X' &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;DOCUMENT_OUTPUT_INFO = &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;JOB_OUTPUT_INFO = &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;JOB_OUTPUT_OPTIONS = &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TABLES &lt;/P&gt;&lt;P&gt;GS_MKPF = INT_MKPF &lt;/P&gt;&lt;P&gt;EXCEPTIONS &lt;/P&gt;&lt;P&gt;FORMATTING_ERROR = 1 &lt;/P&gt;&lt;P&gt;INTERNAL_ERROR = 2 &lt;/P&gt;&lt;P&gt;SEND_ERROR = 3 &lt;/P&gt;&lt;P&gt;USER_CANCELED = 4 &lt;/P&gt;&lt;P&gt;OTHERS = 5. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0. &lt;/P&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO &lt;/P&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. &lt;/P&gt;&lt;P&gt;endif. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Smartform&lt;/P&gt;&lt;P&gt;you can check this link here you can see the steps and you can do it the same by looking at it..&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;SMARTFORMS STEPS.&lt;/P&gt;&lt;P&gt;1. In Tcode se11 Create a structure(struct) same like the Internal table that you are going to use in your report.&lt;/P&gt;&lt;P&gt;2. Create Table type(t_struct) of stracture in se11.&lt;/P&gt;&lt;P&gt;3. In your program declare Internal table(Itab) type table of structure(struct).&lt;/P&gt;&lt;P&gt;4. Define work area(wa) like line of internal table.&lt;/P&gt;&lt;P&gt;5. Open Tcode Smartforms&lt;/P&gt;&lt;P&gt;6. In form Global setting , forminterface Import parameter define Internal table(Itab) like table type of stracture(t_struct).&lt;/P&gt;&lt;P&gt;7. In form Global setting , Global definitions , in Global data define Work area(wa) like type stracture(struct).&lt;/P&gt;&lt;P&gt;8. In form pages and window, create Page node by default Page1 is available.&lt;/P&gt;&lt;P&gt;9. In page node you can create numbers of secondary window. But in form there is only one Main window.&lt;/P&gt;&lt;P&gt;10. By right click on page you can create windows or Go to Edit, Node, Create.&lt;/P&gt;&lt;P&gt;11. After creating the window right click on window create table for displaying the data that you are passing through internal table.&lt;/P&gt;&lt;P&gt;12. In the table Data parameter, loop internal internal table (Itab) into work area(wa).&lt;/P&gt;&lt;P&gt;13. In table there are three areas Header, Main Area, Footer.&lt;/P&gt;&lt;P&gt;14. Right click on the Main area create table line by default line type1 is there select it.&lt;/P&gt;&lt;P&gt;15. Divide line into cells according to your need then for each cell create Text node.&lt;/P&gt;&lt;P&gt;16. In text node general attribute. Write down fields of your work area(wa) or write any thing you want to display.&lt;/P&gt;&lt;P&gt;17. Save form and activate it.&lt;/P&gt;&lt;P&gt;18. Then go to Environment, function module name, there you get the name of function module copy it.&lt;/P&gt;&lt;P&gt;19. In your program call the function module that you have copied from your form.&lt;/P&gt;&lt;P&gt;20. In your program in exporting parameter of function pass the internal table(itab).&lt;/P&gt;&lt;P&gt;SAP Smart Forms is introduced in SAP Basis Release 4.6C as the tool for creating and maintaining forms. &lt;/P&gt;&lt;P&gt;SAP Smart Forms allow you to execute simple modifications to the form and in the form logic by using simple graphical tools; in 90% of all cases, this won't include any programming effort. Thus, a power user without any programming knowledge can &lt;/P&gt;&lt;P&gt;configure forms with data from an SAP System for the relevant business processes. &lt;/P&gt;&lt;P&gt;To print a form, you need a program for data retrieval and a Smart Form that contains the entire from logic. As data retrieval and form logic are separated, you must only adapt the Smart Form if changes to the form logic are necessary. The application program passes the data via a function module interface to the Smart Form. When activating the Smart Form, the system automatically generates a function module. At runtime, the system processes this function module. &lt;/P&gt;&lt;P&gt;You can insert static and dynamic tables. This includes line feeds in individual table cells, triggering events for table headings and subtotals, and sorting data before output. &lt;/P&gt;&lt;P&gt;You can check individual nodes as well as the entire form and find any existing errors in the tree structure. The data flow analysis checks whether all fields (variables) have a defined value at the moment they are displayed. &lt;/P&gt;&lt;P&gt;SAP Smart Forms allow you to include graphics, which you can display either as part of the form or as background graphics. You use background graphics to copy the layout of an existing (scanned) form or to lend forms a company-specific look. During printout, you can suppress the background graphic, if desired. &lt;/P&gt;&lt;P&gt;SAP Smart Forms also support postage optimizing. &lt;/P&gt;&lt;P&gt;Also read SAP Note No. 168368 - Smart Forms: New form tool in Release 4.6C &lt;/P&gt;&lt;P&gt;What Transaction to start SAP Smart Forms? &lt;/P&gt;&lt;P&gt;Execute transaction SMARTFORMS to start SAP Smart Forms. &lt;/P&gt;&lt;P&gt;Key Benefits of SAP Smart Forms: &lt;/P&gt;&lt;P&gt;SAP Smart Forms allows you to reduce considerably the implementation costs of mySAP.com solutions since forms can be adjusted in minimum time. &lt;/P&gt;&lt;P&gt;You design a form using the graphical Form Painter and the graphical Table Painter. The form logic is represented by a hierarchy structure (tree structure) that consists of individual nodes, such as nodes for global settings, nodes for texts, nodes for output tables, or nodes for graphics. &lt;/P&gt;&lt;P&gt;To make changes, use Drag &amp;amp; Drop, Copy &amp;amp; Paste, and select different attributes. &lt;/P&gt;&lt;P&gt;These actions do not include writing of coding lines or using a Script language. &lt;/P&gt;&lt;P&gt;Using your form description maintained in the Form Builder, Smart Forms generates a function module that encapsulates layout, content and form logic. So you do not need a group of function modules to print a form, but only one. &lt;/P&gt;&lt;P&gt;For Web publishing, the system provides a generated XML output of the processed form. &lt;/P&gt;&lt;P&gt;Smart Forms provides a data stream called XML for Smart Forms (XSF) to allow the use of 3rd party printing tools. XSF passes form content from R/3 to an external product without passing any layout information about the Smart Form. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SmartForms System Fields &lt;/P&gt;&lt;P&gt;Within a form you can use the field string SFSY with its system fields. During form processing the system replaces these fields with the corresponding values. The field values come from the SAP System or are results of the processing. &lt;/P&gt;&lt;P&gt;System fields of Smart Forms &lt;/P&gt;&lt;P&gt;&amp;amp;SFSY-DATE&amp;amp; &lt;/P&gt;&lt;P&gt;Displays the date. You determine the display format in the user master record. &lt;/P&gt;&lt;P&gt;&amp;amp;SFSY-TIME&amp;amp; &lt;/P&gt;&lt;P&gt;Displays the time of day in the form HH:MM:SS. &lt;/P&gt;&lt;P&gt;&amp;amp;SFSY-PAGE&amp;amp; &lt;/P&gt;&lt;P&gt;Inserts the number of the current print page into the text. You determine the format of the page number (for example, Arabic, numeric) in the page node. &lt;/P&gt;&lt;P&gt;&amp;amp;SFSY-FORMPAGES&amp;amp; &lt;/P&gt;&lt;P&gt;Displays the total number of pages for the currently processed form. This allows you to include texts such as'Page x of y' into your output. &lt;/P&gt;&lt;P&gt;&amp;amp;SFSY-JOBPAGES&amp;amp; &lt;/P&gt;&lt;P&gt;Contains the total page number of all forms in the currently processed print request. &lt;/P&gt;&lt;P&gt;&amp;amp;SFSY-WINDOWNAME&amp;amp; &lt;/P&gt;&lt;P&gt;Contains the name of the current window (string in the Window field) &lt;/P&gt;&lt;P&gt;&amp;amp;SFSY-PAGENAME&amp;amp; &lt;/P&gt;&lt;P&gt;Contains the name of the current page (string in the Page field) &lt;/P&gt;&lt;P&gt;&amp;amp;SFSY-PAGEBREAK&amp;amp; &lt;/P&gt;&lt;P&gt;Is set to 'X' after a page break (either automatic [Page 7] or command-controlled [Page 46]) &lt;/P&gt;&lt;P&gt;&amp;amp;SFSY-MAINEND&amp;amp; &lt;/P&gt;&lt;P&gt;Is set as soon as processing of the main window on the current page ends &lt;/P&gt;&lt;P&gt;&amp;amp;SFSY-EXCEPTION&amp;amp; &lt;/P&gt;&lt;P&gt;Contains the name of the raised exception. You must trigger your own exceptions, which you defined in the form interface, using the user_exception macro (syntax: user_exception &amp;lt;exception name &amp;gt;). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example Forms Available in Standard SAP R/3 &lt;/P&gt;&lt;P&gt;SF_EXAMPLE_01 &lt;/P&gt;&lt;P&gt;Simple example; invoice with table output of flight booking for one customer &lt;/P&gt;&lt;P&gt;SF_EXAMPLE_02 &lt;/P&gt;&lt;P&gt;Similar to SF_EXAMPLE_01 but with subtotals &lt;/P&gt;&lt;P&gt;SF_EXAMPLE_03 &lt;/P&gt;&lt;P&gt;Similar to SF_EXAMPLE_02, whereby several customers are selected in the application program; the form is called for each customer and all form outputs are included in an output request &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Advantages of SAP Smart Forms &lt;/P&gt;&lt;P&gt;SAP Smart Forms have the following advantages: &lt;/P&gt;&lt;P&gt;1. The adaption of forms is supported to a large extent by graphic tools for layout and logic, so that no programming knowledge is necessary (at least 90% of all adjustments). Therefore, power user forms can also make configurations for your business processes with data from an SAP system. Consultants are only required in special cases. &lt;/P&gt;&lt;P&gt;2. Displaying table structures (dynamic framing of texts) &lt;/P&gt;&lt;P&gt;3. Output of background graphics, for form design in particular the use of templates which were scanned. &lt;/P&gt;&lt;P&gt;4. Colored output of texts &lt;/P&gt;&lt;P&gt;5. User-friendly and integrated Form Painter for the graphical design of forms &lt;/P&gt;&lt;P&gt;6. Graphical Table Painter for drawing tables &lt;/P&gt;&lt;P&gt;7. Reusing Font and paragraph formats in forms (Smart Styles) &lt;/P&gt;&lt;P&gt;8. Data interface in XML format (XML for Smart Forms, in short XSF) &lt;/P&gt;&lt;P&gt;9. Form translation is supported by standard translation tools &lt;/P&gt;&lt;P&gt;10. Flexible reuse of text modules &lt;/P&gt;&lt;P&gt;11. HTML output of forms (Basis release 6.10) &lt;/P&gt;&lt;P&gt;12. Interactive Web forms with input fields, pushbuttons, radio buttons, etc. (Basis-Release 6.10) &lt;/P&gt;&lt;P&gt;Thnaks&amp;amp;regards,&lt;/P&gt;&lt;P&gt;Sravani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Mar 2008 07:25:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-28T07:25:32Z</dc:date>
    <item>
      <title>smart forms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smart-forms/m-p/3542385#M852181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anyone explain me...........&lt;/P&gt;&lt;P&gt;what is meant by Smary forms and what are the uses ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;give me some simple code examples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the difference between SAP script and Smart Forms ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz explain me,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks and regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;raghul.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2008 07:16:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smart-forms/m-p/3542385#M852181</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-28T07:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: smart forms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smart-forms/m-p/3542386#M852182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;SAP Smart Form Process Overview &lt;/P&gt;&lt;P&gt;The basic structure of SAP Smart Forms consists of the Smart Form Builder, the Smart Form print form template (which you create or is given to you as a preconfigured starting point), the Smart Form function module, and the Smart Form print program (also described as a driver program). &lt;/P&gt;&lt;P&gt;The Smart Form print programs are not the same as SAPScript programs, and you cannot use a SAPScript print program with a Smart Form print form. &lt;/P&gt;&lt;P&gt;Programming Flow &lt;/P&gt;&lt;P&gt;When an SAP Smart Form template is created, a user creates the form layout, defines the required fields, conditions, and special programming instructions in the Smart Form template using the Smart Form Builder. &lt;/P&gt;&lt;P&gt;After the form design is complete, the form needs to be activated before it can be tested or accessible by print programs. Activating the form initiates the generation of a function module that handles all of the form&amp;#146;s processing. &lt;/P&gt;&lt;P&gt;This function module interacts with the application program and print program to create the output &lt;/P&gt;&lt;P&gt;in the user-defined output media for the specified device. &lt;/P&gt;&lt;P&gt;5 Steps to create a simple SMARTFORMS &lt;/P&gt;&lt;P&gt;Read the abap program in step 5 first to see how the data is begin pass to the internal table. &lt;/P&gt;&lt;P&gt;1. Create a new smartforms &lt;/P&gt;&lt;P&gt;2. Define looping process for internal table &lt;/P&gt;&lt;P&gt;3. Define table in smartforms &lt;/P&gt;&lt;P&gt;4. To display the data in the form &lt;/P&gt;&lt;P&gt;5. Calling SMARTFORMS from your ABAP program &lt;/P&gt;&lt;P&gt;Create a new smartforms &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;The followings screen format will appear:- &lt;/P&gt;&lt;P&gt;- Form ZSMART                     Form             ZSMART &lt;/P&gt;&lt;P&gt;  - Global settings                      Description   New form &lt;/P&gt;&lt;P&gt;    - Form attributes &lt;/P&gt;&lt;P&gt;    - Form interface &lt;/P&gt;&lt;P&gt;    - Global definitions                General attributes      Output Options &lt;/P&gt;&lt;P&gt;  - Pages and windows &lt;/P&gt;&lt;P&gt;    + %PAGE1 New page &lt;/P&gt;&lt;P&gt;You can click at the Form Painter button to view the graphical display layout of your smartforms&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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;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;To display the data in Smartform &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;Calling SMARTFORMS from your ABAP program &lt;/P&gt;&lt;P&gt;REPORT ZSMARTFORM. &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Calling SMARTFORMS from your ABAP program. &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Collecting all the table data in your program, and pass once to SMARTFORMS &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SMARTFORMS &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Declare your table type in :- &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Global Settings -&amp;gt; Form Interface &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Global Definintions -&amp;gt; Global Data &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Main Window -&amp;gt; Table -&amp;gt; DATA &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Written by :  SAP Hints and Tips on Configuration and ABAP/4 Programming &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                    &lt;A href="http://sapr3.tripod.com" target="test_blank"&gt;http://sapr3.tripod.com&lt;/A&gt; &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TABLES: MKPF. &lt;/P&gt;&lt;P&gt;DATA: FM_NAME TYPE RS38L_FNAM. &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;SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001. &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;ENDSELECT. &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;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;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;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;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;Comparision&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What About SAPscript? &lt;/P&gt;&lt;P&gt;SAP customers can use either SAPScript or Smart Forms as their SAP forms solution. SAP recommends you use Smart Forms for new developments (from 4.6C), because these forms are much easier to edit when using the Smart Forms graphical tools. Also, further development is planned for the Smart Form print solution. &lt;/P&gt;&lt;P&gt;For example, the customer can use a preconfigured Smart Form for the Purchase Order, and a SAPscript form for the Production Order (if no suitable Smart Form is available), or create the Smart Form. &lt;/P&gt;&lt;P&gt;While unnecessary, a user&amp;#146;s prior knowledge of SAPScript forms can accelerate their Smart Forms learning because some tools are used both by Smart Forms and SAPscript (for example, font maintenance transaction SE73, SAPScript texts, and more). &lt;/P&gt;&lt;P&gt;Difference with SMARTFORMS vs. SapScript(SE71) &lt;/P&gt;&lt;P&gt;The Following are the differences:- &lt;/P&gt;&lt;P&gt;a) Multiple page formats are possible in smartforms which is not the case in SAPScripts &lt;/P&gt;&lt;P&gt;b) It is possible to have a smartform without a main window. &lt;/P&gt;&lt;P&gt;c) Labels cannot be created in smartforms. &lt;/P&gt;&lt;P&gt;d) Routines can be written in smartforms tool. &lt;/P&gt;&lt;P&gt;e) Smartforms generates a function module when activated&lt;/P&gt;&lt;P&gt;Form Control&lt;/P&gt;&lt;P&gt;To branch to a new page in Smart forms &lt;/P&gt;&lt;P&gt;The page to which you want to branch must exist. You can branch to a new page only as long as you are still displaying the contents of a main window. &lt;/P&gt;&lt;P&gt;Choose Create -&amp;gt; Command in the context menu to create a command node in the main window of the page. &lt;/P&gt;&lt;P&gt;On the General Attributes tab strips  Tick Go to new page.  Determine the new page using the list box next to the checkbox (it can be the same page if you want). &lt;/P&gt;&lt;P&gt;The output of the main window will continues on the new page. &lt;/P&gt;&lt;P&gt;Additional Fonts for your SMARTFORMS &lt;/P&gt;&lt;P&gt;You can create additional fonts and style with transaction SMARTSTYLES &lt;/P&gt;&lt;P&gt;This can then be define in the paragraph and character formats, which you can then be assign to texts and fields in the Smart Form. &lt;/P&gt;&lt;P&gt;The character formats includes effects such as superscript, subscript, barcode and font attributes&lt;/P&gt;&lt;P&gt;Smartforms function module not saved in development class &lt;/P&gt;&lt;P&gt;Smart forms whose function module that was generated is not saved in any &lt;/P&gt;&lt;P&gt;development class. Is it anything to do with / name space.  When I transported the &lt;/P&gt;&lt;P&gt;smartforms only the layout went but not function module. How could this be sorted? &lt;/P&gt;&lt;P&gt;That is because the Function module is not transported. &lt;/P&gt;&lt;P&gt;It is regenerated on the Target System as a new function module all together. &lt;/P&gt;&lt;P&gt;You can transport the smartform from SE01.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2008 07:23:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smart-forms/m-p/3542386#M852182</guid>
      <dc:creator>mahaboob_pathan</dc:creator>
      <dc:date>2008-03-28T07:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: smart forms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smart-forms/m-p/3542387#M852183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;How to create a New smartfrom, it is having step by step procedure &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap.niraj.tripod.com/id67.html" target="test_blank"&gt;http://sap.niraj.tripod.com/id67.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;step by step good ex link is....&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;Here is the procedure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create a new smartforms &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Transaction code SMARTFORMS &lt;/P&gt;&lt;P&gt;Create new smartforms call ZSMART&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Define looping process for internal table &lt;/P&gt;&lt;P&gt;Pages and windows &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First Page -&amp;gt; Header Window (Cursor at First Page then click Edit -&amp;gt; Node -&amp;gt; Create) &lt;/P&gt;&lt;P&gt;Here, you can specify your title and page numbering &lt;/P&gt;&lt;P&gt;&amp;amp;SFSY-PAGE&amp;amp; (Page 1) of &amp;amp;SFSY-FORMPAGES(Z4.0)&amp;amp; (Total Page) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Main windows -&amp;gt; TABLE -&amp;gt; DATA &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Loop section, tick Internal table and fill in &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITAB1 (table in ABAP SMARTFORM calling function) INTO ITAB2 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Define table in smartforms &lt;/P&gt;&lt;P&gt;Global settings : &lt;/P&gt;&lt;P&gt;Form interface &lt;/P&gt;&lt;P&gt;Variable name Type assignment Reference type &lt;/P&gt;&lt;P&gt;ITAB1 TYPE Table Structure &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Global definitions &lt;/P&gt;&lt;P&gt;Variable name Type assignment Reference type &lt;/P&gt;&lt;P&gt;ITAB2 TYPE Table Structure &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. To display the data in the form &lt;/P&gt;&lt;P&gt;Make used of the Table Painter and declare the Line Type in Tabstrips Table &lt;/P&gt;&lt;P&gt;e.g. HD_GEN for printing header details, &lt;/P&gt;&lt;P&gt;IT_GEN for printing data details. &lt;/P&gt;&lt;P&gt;You have to specify the Line Type in your Text elements in the Tabstrips Output options. &lt;/P&gt;&lt;P&gt;Tick the New Line and specify the Line Type for outputting the data. &lt;/P&gt;&lt;P&gt;Declare your output fields in Text elements &lt;/P&gt;&lt;P&gt;Tabstrips - Output Options &lt;/P&gt;&lt;P&gt;For different fonts use this Style : IDWTCERTSTYLE &lt;/P&gt;&lt;P&gt;For Quantity or Amout you can used this variable &amp;amp;GS_ITAB-AMOUNT(12.2)&amp;amp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. Calling SMARTFORMS from your ABAP program &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZSMARTFORM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Calling SMARTFORMS from your ABAP program. &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Collecting all the table data in your program, and pass once to SMARTFORMS &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SMARTFORMS &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Declare your table type in :- &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Global Settings -&amp;gt; Form Interface &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Global Definintions -&amp;gt; Global Data &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Main Window -&amp;gt; Table -&amp;gt; DATA &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Written by : SAP Hints and Tips on Configuration and ABAP/4 Programming &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;&lt;A href="http://sapr3.tripod.com" target="test_blank"&gt;http://sapr3.tripod.com&lt;/A&gt; &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: MKPF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: FM_NAME TYPE RS38L_FNAM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF INT_MKPF OCCURS 0. &lt;/P&gt;&lt;P&gt;INCLUDE STRUCTURE MKPF. &lt;/P&gt;&lt;P&gt;DATA: END OF INT_MKPF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR. &lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING MKPF TO INT_MKPF. &lt;/P&gt;&lt;P&gt;APPEND INT_MKPF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDSELECT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;At the end of your program. &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Passing data to SMARTFORMS &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'SSF_FUNCTION_MODULE_NAME' &lt;/P&gt;&lt;P&gt;exporting &lt;/P&gt;&lt;P&gt;formname = 'ZSMARTFORM' &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;VARIANT = ' ' &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;DIRECT_CALL = ' ' &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;IMPORTING &lt;/P&gt;&lt;P&gt;FM_NAME = FM_NAME &lt;/P&gt;&lt;P&gt;EXCEPTIONS &lt;/P&gt;&lt;P&gt;NO_FORM = 1 &lt;/P&gt;&lt;P&gt;NO_FUNCTION_MODULE = 2 &lt;/P&gt;&lt;P&gt;OTHERS = 3. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0. &lt;/P&gt;&lt;P&gt;WRITE: / 'ERROR 1'. &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;endif. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function FM_NAME &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXPORTING &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ARCHIVE_INDEX = &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ARCHIVE_INDEX_TAB = &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ARCHIVE_PARAMETERS = &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CONTROL_PARAMETERS = &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MAIL_APPL_OBJ = &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MAIL_RECIPIENT = &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MAIL_SENDER = &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;OUTPUT_OPTIONS = &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;USER_SETTINGS = 'X' &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;DOCUMENT_OUTPUT_INFO = &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;JOB_OUTPUT_INFO = &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;JOB_OUTPUT_OPTIONS = &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TABLES &lt;/P&gt;&lt;P&gt;GS_MKPF = INT_MKPF &lt;/P&gt;&lt;P&gt;EXCEPTIONS &lt;/P&gt;&lt;P&gt;FORMATTING_ERROR = 1 &lt;/P&gt;&lt;P&gt;INTERNAL_ERROR = 2 &lt;/P&gt;&lt;P&gt;SEND_ERROR = 3 &lt;/P&gt;&lt;P&gt;USER_CANCELED = 4 &lt;/P&gt;&lt;P&gt;OTHERS = 5. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0. &lt;/P&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO &lt;/P&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. &lt;/P&gt;&lt;P&gt;endif. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Smartform&lt;/P&gt;&lt;P&gt;you can check this link here you can see the steps and you can do it the same by looking at it..&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;SMARTFORMS STEPS.&lt;/P&gt;&lt;P&gt;1. In Tcode se11 Create a structure(struct) same like the Internal table that you are going to use in your report.&lt;/P&gt;&lt;P&gt;2. Create Table type(t_struct) of stracture in se11.&lt;/P&gt;&lt;P&gt;3. In your program declare Internal table(Itab) type table of structure(struct).&lt;/P&gt;&lt;P&gt;4. Define work area(wa) like line of internal table.&lt;/P&gt;&lt;P&gt;5. Open Tcode Smartforms&lt;/P&gt;&lt;P&gt;6. In form Global setting , forminterface Import parameter define Internal table(Itab) like table type of stracture(t_struct).&lt;/P&gt;&lt;P&gt;7. In form Global setting , Global definitions , in Global data define Work area(wa) like type stracture(struct).&lt;/P&gt;&lt;P&gt;8. In form pages and window, create Page node by default Page1 is available.&lt;/P&gt;&lt;P&gt;9. In page node you can create numbers of secondary window. But in form there is only one Main window.&lt;/P&gt;&lt;P&gt;10. By right click on page you can create windows or Go to Edit, Node, Create.&lt;/P&gt;&lt;P&gt;11. After creating the window right click on window create table for displaying the data that you are passing through internal table.&lt;/P&gt;&lt;P&gt;12. In the table Data parameter, loop internal internal table (Itab) into work area(wa).&lt;/P&gt;&lt;P&gt;13. In table there are three areas Header, Main Area, Footer.&lt;/P&gt;&lt;P&gt;14. Right click on the Main area create table line by default line type1 is there select it.&lt;/P&gt;&lt;P&gt;15. Divide line into cells according to your need then for each cell create Text node.&lt;/P&gt;&lt;P&gt;16. In text node general attribute. Write down fields of your work area(wa) or write any thing you want to display.&lt;/P&gt;&lt;P&gt;17. Save form and activate it.&lt;/P&gt;&lt;P&gt;18. Then go to Environment, function module name, there you get the name of function module copy it.&lt;/P&gt;&lt;P&gt;19. In your program call the function module that you have copied from your form.&lt;/P&gt;&lt;P&gt;20. In your program in exporting parameter of function pass the internal table(itab).&lt;/P&gt;&lt;P&gt;SAP Smart Forms is introduced in SAP Basis Release 4.6C as the tool for creating and maintaining forms. &lt;/P&gt;&lt;P&gt;SAP Smart Forms allow you to execute simple modifications to the form and in the form logic by using simple graphical tools; in 90% of all cases, this won't include any programming effort. Thus, a power user without any programming knowledge can &lt;/P&gt;&lt;P&gt;configure forms with data from an SAP System for the relevant business processes. &lt;/P&gt;&lt;P&gt;To print a form, you need a program for data retrieval and a Smart Form that contains the entire from logic. As data retrieval and form logic are separated, you must only adapt the Smart Form if changes to the form logic are necessary. The application program passes the data via a function module interface to the Smart Form. When activating the Smart Form, the system automatically generates a function module. At runtime, the system processes this function module. &lt;/P&gt;&lt;P&gt;You can insert static and dynamic tables. This includes line feeds in individual table cells, triggering events for table headings and subtotals, and sorting data before output. &lt;/P&gt;&lt;P&gt;You can check individual nodes as well as the entire form and find any existing errors in the tree structure. The data flow analysis checks whether all fields (variables) have a defined value at the moment they are displayed. &lt;/P&gt;&lt;P&gt;SAP Smart Forms allow you to include graphics, which you can display either as part of the form or as background graphics. You use background graphics to copy the layout of an existing (scanned) form or to lend forms a company-specific look. During printout, you can suppress the background graphic, if desired. &lt;/P&gt;&lt;P&gt;SAP Smart Forms also support postage optimizing. &lt;/P&gt;&lt;P&gt;Also read SAP Note No. 168368 - Smart Forms: New form tool in Release 4.6C &lt;/P&gt;&lt;P&gt;What Transaction to start SAP Smart Forms? &lt;/P&gt;&lt;P&gt;Execute transaction SMARTFORMS to start SAP Smart Forms. &lt;/P&gt;&lt;P&gt;Key Benefits of SAP Smart Forms: &lt;/P&gt;&lt;P&gt;SAP Smart Forms allows you to reduce considerably the implementation costs of mySAP.com solutions since forms can be adjusted in minimum time. &lt;/P&gt;&lt;P&gt;You design a form using the graphical Form Painter and the graphical Table Painter. The form logic is represented by a hierarchy structure (tree structure) that consists of individual nodes, such as nodes for global settings, nodes for texts, nodes for output tables, or nodes for graphics. &lt;/P&gt;&lt;P&gt;To make changes, use Drag &amp;amp; Drop, Copy &amp;amp; Paste, and select different attributes. &lt;/P&gt;&lt;P&gt;These actions do not include writing of coding lines or using a Script language. &lt;/P&gt;&lt;P&gt;Using your form description maintained in the Form Builder, Smart Forms generates a function module that encapsulates layout, content and form logic. So you do not need a group of function modules to print a form, but only one. &lt;/P&gt;&lt;P&gt;For Web publishing, the system provides a generated XML output of the processed form. &lt;/P&gt;&lt;P&gt;Smart Forms provides a data stream called XML for Smart Forms (XSF) to allow the use of 3rd party printing tools. XSF passes form content from R/3 to an external product without passing any layout information about the Smart Form. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SmartForms System Fields &lt;/P&gt;&lt;P&gt;Within a form you can use the field string SFSY with its system fields. During form processing the system replaces these fields with the corresponding values. The field values come from the SAP System or are results of the processing. &lt;/P&gt;&lt;P&gt;System fields of Smart Forms &lt;/P&gt;&lt;P&gt;&amp;amp;SFSY-DATE&amp;amp; &lt;/P&gt;&lt;P&gt;Displays the date. You determine the display format in the user master record. &lt;/P&gt;&lt;P&gt;&amp;amp;SFSY-TIME&amp;amp; &lt;/P&gt;&lt;P&gt;Displays the time of day in the form HH:MM:SS. &lt;/P&gt;&lt;P&gt;&amp;amp;SFSY-PAGE&amp;amp; &lt;/P&gt;&lt;P&gt;Inserts the number of the current print page into the text. You determine the format of the page number (for example, Arabic, numeric) in the page node. &lt;/P&gt;&lt;P&gt;&amp;amp;SFSY-FORMPAGES&amp;amp; &lt;/P&gt;&lt;P&gt;Displays the total number of pages for the currently processed form. This allows you to include texts such as'Page x of y' into your output. &lt;/P&gt;&lt;P&gt;&amp;amp;SFSY-JOBPAGES&amp;amp; &lt;/P&gt;&lt;P&gt;Contains the total page number of all forms in the currently processed print request. &lt;/P&gt;&lt;P&gt;&amp;amp;SFSY-WINDOWNAME&amp;amp; &lt;/P&gt;&lt;P&gt;Contains the name of the current window (string in the Window field) &lt;/P&gt;&lt;P&gt;&amp;amp;SFSY-PAGENAME&amp;amp; &lt;/P&gt;&lt;P&gt;Contains the name of the current page (string in the Page field) &lt;/P&gt;&lt;P&gt;&amp;amp;SFSY-PAGEBREAK&amp;amp; &lt;/P&gt;&lt;P&gt;Is set to 'X' after a page break (either automatic [Page 7] or command-controlled [Page 46]) &lt;/P&gt;&lt;P&gt;&amp;amp;SFSY-MAINEND&amp;amp; &lt;/P&gt;&lt;P&gt;Is set as soon as processing of the main window on the current page ends &lt;/P&gt;&lt;P&gt;&amp;amp;SFSY-EXCEPTION&amp;amp; &lt;/P&gt;&lt;P&gt;Contains the name of the raised exception. You must trigger your own exceptions, which you defined in the form interface, using the user_exception macro (syntax: user_exception &amp;lt;exception name &amp;gt;). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example Forms Available in Standard SAP R/3 &lt;/P&gt;&lt;P&gt;SF_EXAMPLE_01 &lt;/P&gt;&lt;P&gt;Simple example; invoice with table output of flight booking for one customer &lt;/P&gt;&lt;P&gt;SF_EXAMPLE_02 &lt;/P&gt;&lt;P&gt;Similar to SF_EXAMPLE_01 but with subtotals &lt;/P&gt;&lt;P&gt;SF_EXAMPLE_03 &lt;/P&gt;&lt;P&gt;Similar to SF_EXAMPLE_02, whereby several customers are selected in the application program; the form is called for each customer and all form outputs are included in an output request &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Advantages of SAP Smart Forms &lt;/P&gt;&lt;P&gt;SAP Smart Forms have the following advantages: &lt;/P&gt;&lt;P&gt;1. The adaption of forms is supported to a large extent by graphic tools for layout and logic, so that no programming knowledge is necessary (at least 90% of all adjustments). Therefore, power user forms can also make configurations for your business processes with data from an SAP system. Consultants are only required in special cases. &lt;/P&gt;&lt;P&gt;2. Displaying table structures (dynamic framing of texts) &lt;/P&gt;&lt;P&gt;3. Output of background graphics, for form design in particular the use of templates which were scanned. &lt;/P&gt;&lt;P&gt;4. Colored output of texts &lt;/P&gt;&lt;P&gt;5. User-friendly and integrated Form Painter for the graphical design of forms &lt;/P&gt;&lt;P&gt;6. Graphical Table Painter for drawing tables &lt;/P&gt;&lt;P&gt;7. Reusing Font and paragraph formats in forms (Smart Styles) &lt;/P&gt;&lt;P&gt;8. Data interface in XML format (XML for Smart Forms, in short XSF) &lt;/P&gt;&lt;P&gt;9. Form translation is supported by standard translation tools &lt;/P&gt;&lt;P&gt;10. Flexible reuse of text modules &lt;/P&gt;&lt;P&gt;11. HTML output of forms (Basis release 6.10) &lt;/P&gt;&lt;P&gt;12. Interactive Web forms with input fields, pushbuttons, radio buttons, etc. (Basis-Release 6.10) &lt;/P&gt;&lt;P&gt;Thnaks&amp;amp;regards,&lt;/P&gt;&lt;P&gt;Sravani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2008 07:25:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smart-forms/m-p/3542387#M852183</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-28T07:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: smart forms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smart-forms/m-p/3542388#M852184</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;Purpose:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You use Smart Forms to create and maintain forms for mass printing in SAP systems. Besides using the printer for standard output you can also select the Internet (by using a generated HTML output), a fax, or e-mail as the output medium.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition to the tool, SAP delivers a selection of forms for central business processes. This includes forms in Customer Relationship Management (CRM) as well as in the applications SD, FI, and HR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Smart Forms offers the following advantages:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;#149; Creating and maintaining forms requiring half the time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;#149; Adapting forms without any programming knowledge due to entirely graphical user interface&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;#149; Integrating input elements into the HTML output, which enables you to use a form in Internet applications as well&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Smart Forms replace SAPscript forms. SAPscript forms will still be supported in the future; you can use them without making any changes for years to come. You can even use SAPscript texts in the Smart Forms. Migration of SAPscript forms into Smart Forms is supported.&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;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;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;/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;Subtotals - Check the link...&lt;/P&gt;&lt;P&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="2919744"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to create a New smartfrom, it is having step by step procedure &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap.niraj.tripod.com/id67.html" target="test_blank"&gt;http://sap.niraj.tripod.com/id67.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;step by step good ex link is....&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;Here is the procedure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create a new smartforms &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Transaction code SMARTFORMS &lt;/P&gt;&lt;P&gt;Create new smartforms call ZSMART&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Define looping process for internal table &lt;/P&gt;&lt;P&gt;Pages and windows &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First Page -&amp;gt; Header Window (Cursor at First Page then click Edit -&amp;gt; Node -&amp;gt; Create) &lt;/P&gt;&lt;P&gt;Here, you can specify your title and page numbering &lt;/P&gt;&lt;P&gt;&amp;amp;SFSY-PAGE&amp;amp; (Page 1) of &amp;amp;SFSY-FORMPAGES(Z4.0)&amp;amp; (Total Page) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Main windows -&amp;gt; TABLE -&amp;gt; DATA &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Loop section, tick Internal table and fill in &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITAB1 (table in ABAP SMARTFORM calling function) INTO ITAB2 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Define table in smartforms &lt;/P&gt;&lt;P&gt;Global settings : &lt;/P&gt;&lt;P&gt;Form interface &lt;/P&gt;&lt;P&gt;Variable name Type assignment Reference type &lt;/P&gt;&lt;P&gt;ITAB1 TYPE Table Structure &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Global definitions &lt;/P&gt;&lt;P&gt;Variable name Type assignment Reference type &lt;/P&gt;&lt;P&gt;ITAB2 TYPE Table Structure &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. To display the data in the form &lt;/P&gt;&lt;P&gt;Make used of the Table Painter and declare the Line Type in Tabstrips Table &lt;/P&gt;&lt;P&gt;e.g. HD_GEN for printing header details, &lt;/P&gt;&lt;P&gt;IT_GEN for printing data details. &lt;/P&gt;&lt;P&gt;You have to specify the Line Type in your Text elements in the Tabstrips Output options. &lt;/P&gt;&lt;P&gt;Tick the New Line and specify the Line Type for outputting the data. &lt;/P&gt;&lt;P&gt;Declare your output fields in Text elements &lt;/P&gt;&lt;P&gt;Tabstrips - Output Options &lt;/P&gt;&lt;P&gt;For different fonts use this Style : IDWTCERTSTYLE &lt;/P&gt;&lt;P&gt;For Quantity or Amout you can used this variable &amp;amp;GS_ITAB-AMOUNT(12.2)&amp;amp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. Calling SMARTFORMS from your ABAP program &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZSMARTFORM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;Smartform&lt;/P&gt;&lt;P&gt;you can check this link here you can see the steps and you can do it the same by looking at it..&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;SMARTFORMS STEPS.&lt;/P&gt;&lt;P&gt;1. In Tcode se11 Create a structure(struct) same like the Internal table that you are going to use in your report.&lt;/P&gt;&lt;P&gt;2. Create Table type(t_struct) of stracture in se11.&lt;/P&gt;&lt;P&gt;3. In your program declare Internal table(Itab) type table of structure(struct).&lt;/P&gt;&lt;P&gt;4. Define work area(wa) like line of internal table.&lt;/P&gt;&lt;P&gt;5. Open Tcode Smartforms&lt;/P&gt;&lt;P&gt;6. In form Global setting , forminterface Import parameter define Internal table(Itab) like table type of stracture(t_struct).&lt;/P&gt;&lt;P&gt;7. In form Global setting , Global definitions , in Global data define Work area(wa) like type stracture(struct).&lt;/P&gt;&lt;P&gt;8. In form pages and window, create Page node by default Page1 is available.&lt;/P&gt;&lt;P&gt;9. In page node you can create numbers of secondary window. But in form there is only one Main window.&lt;/P&gt;&lt;P&gt;10. By right click on page you can create windows or Go to Edit, Node, Create.&lt;/P&gt;&lt;P&gt;11. After creating the window right click on window create table for displaying the data that you are passing through internal table.&lt;/P&gt;&lt;P&gt;12. In the table Data parameter, loop internal internal table (Itab) into work area(wa).&lt;/P&gt;&lt;P&gt;13. In table there are three areas Header, Main Area, Footer.&lt;/P&gt;&lt;P&gt;14. Right click on the Main area create table line by default line type1 is there select it.&lt;/P&gt;&lt;P&gt;15. Divide line into cells according to your need then for each cell create Text node.&lt;/P&gt;&lt;P&gt;16. In text node general attribute. Write down fields of your work area(wa) or write any thing you want to display.&lt;/P&gt;&lt;P&gt;17. Save form and activate it.&lt;/P&gt;&lt;P&gt;18. Then go to Environment, function module name, there you get the name of function module copy it.&lt;/P&gt;&lt;P&gt;19. In your program call the function module that you have copied from your form.&lt;/P&gt;&lt;P&gt;20. In your program in exporting parameter of function pass the internal table(itab).&lt;/P&gt;&lt;P&gt;SAP Smart Forms is introduced in SAP Basis Release 4.6C as the tool for creating and maintaining forms. &lt;/P&gt;&lt;P&gt;SAP Smart Forms allow you to execute simple modifications to the form and in the form logic by using simple graphical tools; in 90% of all cases, this won't include any programming effort. Thus, a power user without any programming knowledge can &lt;/P&gt;&lt;P&gt;configure forms with data from an SAP System for the relevant business processes. &lt;/P&gt;&lt;P&gt;To print a form, you need a program for data retrieval and a Smart Form that contains the entire from logic. As data retrieval and form logic are separated, you must only adapt the Smart Form if changes to the form logic are necessary. The application program passes the data via a function module interface to the Smart Form. When activating the Smart Form, the system automatically generates a function module. At runtime, the system processes this function module. &lt;/P&gt;&lt;P&gt;You can insert static and dynamic tables. This includes line feeds in individual table cells, triggering events for table headings and subtotals, and sorting data before output. &lt;/P&gt;&lt;P&gt;You can check individual nodes as well as the entire form and find any existing errors in the tree structure. The data flow analysis checks whether all fields (variables) have a defined value at the moment they are displayed. &lt;/P&gt;&lt;P&gt;SAP Smart Forms allow you to include graphics, which you can display either as part of the form or as background graphics. You use background graphics to copy the layout of an existing (scanned) form or to lend forms a company-specific look. During printout, you can suppress the background graphic, if desired. &lt;/P&gt;&lt;P&gt;SAP Smart Forms also support postage optimizing. &lt;/P&gt;&lt;P&gt;Also read SAP Note No. 168368 - Smart Forms: New form tool in Release 4.6C &lt;/P&gt;&lt;P&gt;What Transaction to start SAP Smart Forms? &lt;/P&gt;&lt;P&gt;Execute transaction SMARTFORMS to start SAP Smart Forms. &lt;/P&gt;&lt;P&gt;Key Benefits of SAP Smart Forms: &lt;/P&gt;&lt;P&gt;SAP Smart Forms allows you to reduce considerably the implementation costs of mySAP.com solutions since forms can be adjusted in minimum time. &lt;/P&gt;&lt;P&gt;You design a form using the graphical Form Painter and the graphical Table Painter. The form logic is represented by a hierarchy structure (tree structure) that consists of individual nodes, such as nodes for global settings, nodes for texts, nodes for output tables, or nodes for graphics. &lt;/P&gt;&lt;P&gt;To make changes, use Drag &amp;amp; Drop, Copy &amp;amp; Paste, and select different attributes. &lt;/P&gt;&lt;P&gt;These actions do not include writing of coding lines or using a Script language. &lt;/P&gt;&lt;P&gt;Using your form description maintained in the Form Builder, Smart Forms generates a function module that encapsulates layout, content and form logic. So you do not need a group of function modules to print a form, but only one. &lt;/P&gt;&lt;P&gt;For Web publishing, the system provides a generated XML output of the processed form. &lt;/P&gt;&lt;P&gt;Smart Forms provides a data stream called XML for Smart Forms (XSF) to allow the use of 3rd party printing tools. XSF passes form content from R/3 to an external product without passing any layout information about the Smart Form. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SmartForms System Fields &lt;/P&gt;&lt;P&gt;Within a form you can use the field string SFSY with its system fields. During form processing the system replaces these fields with the corresponding values. The field values come from the SAP System or are results of the processing. &lt;/P&gt;&lt;P&gt;System fields of Smart Forms &lt;/P&gt;&lt;P&gt;&amp;amp;SFSY-DATE&amp;amp; &lt;/P&gt;&lt;P&gt;Displays the date. You determine the display format in the user master record. &lt;/P&gt;&lt;P&gt;&amp;amp;SFSY-TIME&amp;amp; &lt;/P&gt;&lt;P&gt;Displays the time of day in the form HH:MM:SS. &lt;/P&gt;&lt;P&gt;&amp;amp;SFSY-PAGE&amp;amp; &lt;/P&gt;&lt;P&gt;Inserts the number of the current print page into the text. You determine the format of the page number (for example, Arabic, numeric) in the page node. &lt;/P&gt;&lt;P&gt;&amp;amp;SFSY-FORMPAGES&amp;amp; &lt;/P&gt;&lt;P&gt;Displays the total number of pages for the currently processed form. This allows you to include texts such as'Page x of y' into your output. &lt;/P&gt;&lt;P&gt;&amp;amp;SFSY-JOBPAGES&amp;amp; &lt;/P&gt;&lt;P&gt;Contains the total page number of all forms in the currently processed print request. &lt;/P&gt;&lt;P&gt;&amp;amp;SFSY-WINDOWNAME&amp;amp; &lt;/P&gt;&lt;P&gt;Contains the name of the current window (string in the Window field) &lt;/P&gt;&lt;P&gt;&amp;amp;SFSY-PAGENAME&amp;amp; &lt;/P&gt;&lt;P&gt;Contains the name of the current page (string in the Page field) &lt;/P&gt;&lt;P&gt;&amp;amp;SFSY-PAGEBREAK&amp;amp; &lt;/P&gt;&lt;P&gt;Is set to 'X' after a page break (either automatic Page 7 or command-controlled Page 46) &lt;/P&gt;&lt;P&gt;&amp;amp;SFSY-MAINEND&amp;amp; &lt;/P&gt;&lt;P&gt;Is set as soon as processing of the main window on the current page ends &lt;/P&gt;&lt;P&gt;&amp;amp;SFSY-EXCEPTION&amp;amp; &lt;/P&gt;&lt;P&gt;Contains the name of the raised exception. You must trigger your own exceptions, which you defined in the form interface, using the user_exception macro (syntax: user_exception &amp;lt;exception name &amp;gt;). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example Forms Available in Standard SAP R/3 &lt;/P&gt;&lt;P&gt;SF_EXAMPLE_01 &lt;/P&gt;&lt;P&gt;Simple example; invoice with table output of flight booking for one customer &lt;/P&gt;&lt;P&gt;SF_EXAMPLE_02 &lt;/P&gt;&lt;P&gt;Similar to SF_EXAMPLE_01 but with subtotals &lt;/P&gt;&lt;P&gt;SF_EXAMPLE_03 &lt;/P&gt;&lt;P&gt;Similar to SF_EXAMPLE_02, whereby several customers are selected in the application program; the form is called for each customer and all form outputs are included in an output request &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Advantages of SAP Smart Forms &lt;/P&gt;&lt;P&gt;SAP Smart Forms have the following advantages: &lt;/P&gt;&lt;P&gt;1. The adaption of forms is supported to a large extent by graphic tools for layout and logic, so that no programming knowledge is necessary (at least 90% of all adjustments). Therefore, power user forms can also make configurations for your business processes with data from an SAP system. Consultants are only required in special cases. &lt;/P&gt;&lt;P&gt;2. Displaying table structures (dynamic framing of texts) &lt;/P&gt;&lt;P&gt;3. Output of background graphics, for form design in particular the use of templates which were scanned. &lt;/P&gt;&lt;P&gt;4. Colored output of texts &lt;/P&gt;&lt;P&gt;5. User-friendly and integrated Form Painter for the graphical design of forms &lt;/P&gt;&lt;P&gt;6. Graphical Table Painter for drawing tables &lt;/P&gt;&lt;P&gt;7. Reusing Font and paragraph formats in forms (Smart Styles) &lt;/P&gt;&lt;P&gt;8. Data interface in XML format (XML for Smart Forms, in short XSF) &lt;/P&gt;&lt;P&gt;9. Form translation is supported by standard translation tools &lt;/P&gt;&lt;P&gt;10. Flexible reuse of text modules &lt;/P&gt;&lt;P&gt;11. HTML output of forms (Basis release 6.10) &lt;/P&gt;&lt;P&gt;12. Interactive Web forms with input fields, pushbuttons, radio buttons, etc. (Basis-Release 6.10)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is a link which will teach you step by step&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;More links&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/smartforms.htm" target="test_blank"&gt;http://www.sapgenie.com/abap/smartforms.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/smartforms/sap-smart-forms.htm" target="test_blank"&gt;http://www.sap-img.com/smartforms/sap-smart-forms.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/en/a5/de6838abce021ae10000009b38f842/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/en/a5/de6838abce021ae10000009b38f842/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step by Step creation of Smartforms&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-basis-abap.com/sapsf001.htm" target="test_blank"&gt;http://www.sap-basis-abap.com/sapsf001.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-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/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.sapbrain.com/TUTORIALS/TECHNICAL/SMARTFORMS_tutorial.html" target="test_blank"&gt;http://www.sapbrain.com/TUTORIALS/TECHNICAL/SMARTFORMS_tutorial.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;Difference between Scripts and Smartforms:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the main diffarences between smart form and script form are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) smart forms are clinent independent where as scripts are client dependent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) smart form require half the time to create and maintain forms compare with&lt;/P&gt;&lt;P&gt;script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) smart forms provide multiple page formats where as in script not possible&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) smart forms exisist without main window also where as in script not possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5) smart form is entairely graphical user interface comapre with script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6) labeling is not possible in smart form where as it is possible in script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;7) smart form genarate function module whenver it activate where as script &lt;/P&gt;&lt;P&gt;doesn't genarate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt; smart form can easily web publishing using the genarated XML output compare &lt;/P&gt;&lt;P&gt;with script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;9) using smart forms we can design web forms but bot possible with script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;10) we can maintain background graphics in smartform wher as in script not &lt;/P&gt;&lt;P&gt;possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;11) in smart form we use transaction codes SMARTFORM for designing FORM &lt;/P&gt;&lt;P&gt;and SMARTSTYLES to create differnt styles of text, where as in script we &lt;/P&gt;&lt;P&gt;use SE71 for form painter and SE72 for different styles of text and font.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;12) we can migrate script to smart form vice-versa is not possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;smartforms is extension of the sap scripts.&lt;/P&gt;&lt;P&gt;smart form gives more options to user to design the layouts than sap scripts.&lt;/P&gt;&lt;P&gt;the main diffrences are &lt;/P&gt;&lt;P&gt;Scripts:&lt;/P&gt;&lt;P&gt;1.These are client dependent.&lt;/P&gt;&lt;P&gt;2.Multiple page formats are not possible.&lt;/P&gt;&lt;P&gt;3.main window is compulsory&lt;/P&gt;&lt;P&gt;4.Lables are used&lt;/P&gt;&lt;P&gt;5.Function module is not generated when activated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Smartforms:&lt;/P&gt;&lt;P&gt;1.These are client independent.&lt;/P&gt;&lt;P&gt;2.Multiple page formats are possible.&lt;/P&gt;&lt;P&gt;3.main window is NOT compulsory&lt;/P&gt;&lt;P&gt;4.Lables are not used&lt;/P&gt;&lt;P&gt;5.Function module is generated when activated.&lt;/P&gt;&lt;P&gt;6.It is possible to write entire code in smartform itself.&lt;/P&gt;&lt;P&gt;i hope this is useful for u &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reward Points if found helpfull..&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Cheers,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Chandra Sekhar.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2008 07:26:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smart-forms/m-p/3542388#M852184</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-28T07:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: smart forms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smart-forms/m-p/3542389#M852185</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;Difference with SMARTFORMS vs. SapScript (SE71) &lt;/P&gt;&lt;P&gt;The Following are the differences :- &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a) Multiple page formats are possible in smartforms which is not the case in SAPScripts &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b) It is possible to have a smartform without a main window . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c) Labels cannot be created in smartforms. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;d) Routines can be written in smartforms tool. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e) Smartforms generates a function module when activated. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Unlike sapscripts (RSTXSCRP), you cannot upload/download Smartform to your local harddisk.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It was said that it was provided in CRM 3.0 version, but not available in R/3.  You can download smartforms into Local PC in a XML format.  In the same way you can upload this XML format into Smartform.  From the smartform editor itself you can call download option, if you are working in CRM 3.0 environment.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In R3 also, you can download into XML format. However, it's not sure about uploading. Refer to the program 'SF_XSF_DEMO'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In 4.7 Enterprise, other have seen this utlity which is completey missing in 4.6c. There is functionality to downlaod a complete form or only a particular node. (Utilities -&amp;gt; Download form). It will create a XML file and save it in the hard disk.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For others, if you want to download/upload the Smartforms source, you will need the help from the Basis people.  What you can do is to create a Transport and then FTP down to your local harddisk.   When you need the Smartform source in another system, you have FTP up the Smartforms file back to the SAP server.  Finally, the Basis team, will tp it into your system. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;g) The protect and endprotect command in sapscript doesn't work with smartforms. For example on a invoice: First data of position no 80. is printed on page one, other data of position no 80 is printed on page 2. And there's nothing you can do about it.  Actually, there is something you can do about it.  By using a folder node and checking the 'protect' checkbox, everything in that folder will be page protected.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i) The main difference is that SAP script is client-dependant, while smartform is independent. Also there are some advanced and intreractive features available in smartforms. &lt;/P&gt;&lt;P&gt;You can use an External subroutine-call in sapscript editor like: &lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;  /: perform &amp;lt;form_name&amp;gt; in program &amp;lt;program_name&amp;gt; &lt;/P&gt;&lt;P&gt;  /: using &amp;lt;var1&amp;gt; &lt;/P&gt;&lt;P&gt;  /: using &amp;lt;var2&amp;gt; &lt;/P&gt;&lt;P&gt;  . &lt;/P&gt;&lt;P&gt;  . &lt;/P&gt;&lt;P&gt;  /: changing &amp;lt;return1&amp;gt; &lt;/P&gt;&lt;P&gt;  /: changing &amp;lt;return2&amp;gt; &lt;/P&gt;&lt;P&gt;  /:endperform &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u go through this link yaar.&lt;/P&gt;&lt;P&gt;link:[http://sap.niraj.tripod.com/id67.html]&lt;/P&gt;&lt;P&gt;link:[http://www.sap-basis-abap.com/sapsf001.htm]&lt;/P&gt;&lt;P&gt;link:[&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1658458"&gt;&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;link:[http://sapabapscriptssmartformsbdctutorials.blogspot.com/2007/11/sap-scripts-smartforms-bdc-tutorials.html]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if helpful&lt;/P&gt;&lt;P&gt;raam&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Kodandarami Reddy.S on Mar 28, 2008 8:32 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2008 07:26:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smart-forms/m-p/3542389#M852185</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-28T07:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: smart forms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smart-forms/m-p/3542390#M852186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;script is client dependent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;smartform is client independent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;less programing in smart form&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;multiple page format is possible in smart form&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we can maintain background graphics in smartform&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;labelling is possible in scripts not possible in sf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WE CANNOT GET THE FUNCTION MODULE WHEN WE ACTIVATE THE PROGRAM&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;   WHEN WE ACTIVATE THE PROGRAM WE GET FUNCTION MODULE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4.WE CAN WRITE ENTIRE CODE IN SMARTFROM ITSELF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Smart forms is more interactive and the windows are easy to define.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;: Things are based on NODES ( eg - address node ) which onced defined can be assigned to other windows by just draging and dropping.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;: The flow is maintained by a tree stucture which is easy to modify.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;: The smart form is called just like a call function where all the calculated values are exported to the form and any errors are imported back to the program.&lt;/P&gt;&lt;P&gt;: no more OPEN, CLOSE, WRITE form and no more heavy coding as well as sitting and doing minor TAB adjustments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Smart forms is more interactive and the windows are easy to define.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;: Things are based on NODES ( eg - address node ) which onced defined can be assigned to other windows by just draging and dropping.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;: The flow is maintained by a tree stucture which is easy to modify.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;: The smart form is called just like a call function where all the calculated values are exported to the form and any errors are imported back to the program.&lt;/P&gt;&lt;P&gt;: no more OPEN, CLOSE, WRITE form and no more heavy coding as well as sitting and doing minor TAB adjustments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Smart forms is more interactive and the windows are easy to define.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;: Things are based on NODES ( eg - address node ) which onced defined can be assigned to other windows by just draging and dropping.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;: The flow is maintained by a tree stucture which is easy to modify.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;: The smart form is called just like a call function where all the calculated values are exported to the form and any errors are imported back to the program.&lt;/P&gt;&lt;P&gt;: no more OPEN, CLOSE, WRITE form and no more heavy coding as well as sitting and doing minor TAB adjustments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It was said that it was provided in CRM 3.0 version, but not available in R/3. You can download smartforms into Local PC in a XML format. In the same way you can upload this XML format into Smartform. From the smartform editor itself you can call download option, if you are working in CRM 3.0 environment. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In R3 also, you can download into XML format. However, it's not sure about uploading. Refer to the program 'SF_XSF_DEMO'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In 4.7 Enterprise, other have seen this utlity which is completey missing in 4.6c. There is functionality to downlaod a complete form or only a particular node. (Utilities -&amp;gt; Download form). It will create a XML file and save it in the hard disk. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For others, if you want to download/upload the Smartforms source, you will need the help from the Basis people. What you can do is to create a Transport and then FTP down to your local harddisk. When you need the Smartform source in another system, you have FTP up the Smartforms file back to the SAP server. Finally, the Basis team, will tp it into your system. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;g) The protect and endprotect command in sapscript doesn't work with smartforms. For example on a invoice: First data of position no 80. is printed on page one, other data of position no 80 is printed on page 2. And there's nothing you can do about it. Actually, there is something you can do about it. By using a folder node and checking the 'protect' checkbox, everything in that folder will be page protected. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;h) The main difference is that SAP script is client-dependant, while smartform is independent. Also there are some advanced and intreractive features available in smartforms. &lt;/P&gt;&lt;P&gt;You can use an External subroutine-call in sapscript editor like: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: perform &amp;lt;form_name&amp;gt; in program &amp;lt;program_name&amp;gt; &lt;/P&gt;&lt;P&gt;/: using &amp;lt;var1&amp;gt; &lt;/P&gt;&lt;P&gt;/: using &amp;lt;var2&amp;gt; &lt;/P&gt;&lt;P&gt;. &lt;/P&gt;&lt;P&gt;. &lt;/P&gt;&lt;P&gt;/: changing &amp;lt;return1&amp;gt; &lt;/P&gt;&lt;P&gt;/: changing &amp;lt;return2&amp;gt; &lt;/P&gt;&lt;P&gt;/:endperform&lt;/P&gt;&lt;P&gt;background pictures are possible in smartforms&lt;/P&gt;&lt;P&gt;--&amp;gt;code can be written directly in program lines of Smartform,no need of seperate driver program.&lt;/P&gt;&lt;P&gt;---&amp;gt;less code is written&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;regards&lt;/P&gt;&lt;P&gt;Sravani.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2008 07:36:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smart-forms/m-p/3542390#M852186</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-28T07:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: smart forms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smart-forms/m-p/3542391#M852187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;you go through these links.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/smartforms/smart-001.htm" target="test_blank"&gt;http://www.sap-img.com/smartforms/smart-001.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/smartforms/smartform-tutorial.htm" target="test_blank"&gt;http://www.sap-img.com/smartforms/smartform-tutorial.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/smartforms/advantages-of-sap-smart-forms.htm" target="test_blank"&gt;http://www.sap-img.com/smartforms/advantages-of-sap-smart-forms.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/smartforms/smartform-sapscripts.htm" target="test_blank"&gt;http://www.sap-img.com/smartforms/smartform-sapscripts.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/smartforms/smart-002.htm" target="test_blank"&gt;http://www.sap-img.com/smartforms/smart-002.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2008 07:58:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smart-forms/m-p/3542391#M852187</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-28T07:58:37Z</dc:date>
    </item>
  </channel>
</rss>

