<?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: Populating Data into a Smartform in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-data-into-a-smartform/m-p/3278198#M783888</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Val Kisanga &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;      I hope u r new to Smart Forms. First thing is smart forms are little different then SAP script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. when you create program which is having data . In this program all the internal table are of type ddic object only. you can't create internal table mixing the fileds of two table and pass them to Smart forms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Just Create the internal table or Work Area of DDIC object and Fill the data in it which you want to show in smart forms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Go to Smart Forms : Global Setting-&amp;gt;Form Interface:&amp;gt;&lt;/P&gt;&lt;P&gt;   here you find 4 Tab Containing the different thing We need to 1 and Thrid Tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;import Tab :&lt;/STRONG&gt; In this you have to define the Work Area and Table which contain single Row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_werks          like      vbap-Werks.&lt;/P&gt;&lt;P&gt;wa_vbap            LIKE     vbap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3 tab is called as Table :In this tab you can send pass the table contain Many Data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_vbap             like     vbap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now Suppose I have create a smart form In which I am passing these three object so how the pgm will be code and smart form called see below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZAKJ7                                   .&lt;/P&gt;&lt;P&gt;tables:&lt;/P&gt;&lt;P&gt;     vbap.&lt;/P&gt;&lt;P&gt;data : Wa_werks  like   vbap-werks.&lt;/P&gt;&lt;P&gt;data : wa_vbap   like   vbap.&lt;/P&gt;&lt;P&gt;data : it_vbap   type   standard table of vbap with header line.&lt;/P&gt;&lt;P&gt;parameters : p_vbeln  type   vbap-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select * from vbap into table it_vbap where vbeln = p_vbeln.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;read table it_vbap into wa_vbap index 1.&lt;/P&gt;&lt;P&gt;wa_werks = wa_Vbap-werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;here you need to add some more line&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION '/1BCDWB/SF00000190'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    WA_VBAP                    =  wa_vbap&lt;/P&gt;&lt;P&gt;    WA_WERKS                   = wa_werks&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    IT_VBAP                    =  it_vbap.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&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;The name /1BCDWB/SF00000190 come from the smart form when you press f8 in smart form you get this name. But there is one problem after this the pGM will run in Same client but not in different client.&lt;/P&gt;&lt;P&gt;For that you have to use one more function(I forget the name at present) to make it usable to other also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you check my question you got the anser or the name of that function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can refer below link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="521237"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it usefull for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Swati namdev&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Swati Namdev on Jan 6, 2008 11:58 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Swati Namdev on Jan 6, 2008 12:24 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 06 Jan 2008 06:28:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-06T06:28:23Z</dc:date>
    <item>
      <title>Populating Data into a Smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-data-into-a-smartform/m-p/3278193#M783883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to populate data into a smartform. I already have a table with the data I want, and I created all my smartforms using templates. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is how do I populate this data into my smartforms.. or can I also populate the data from infotypes? and if so, how?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Val.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2008 17:41:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-data-into-a-smartform/m-p/3278193#M783883</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-03T17:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: Populating Data into a Smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-data-into-a-smartform/m-p/3278194#M783884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;WEll, where are you populating data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is in driver program or in smartform itself?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, if it is in your driver program, you need to pass thru the smartform interface. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to get data from smartform itself, then go ahead and create a program lines in any window or you can do the same in global initialization.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;explain clearly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2008 23:36:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-data-into-a-smartform/m-p/3278194#M783884</guid>
      <dc:creator>former_member191735</dc:creator>
      <dc:date>2008-01-03T23:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Populating Data into a Smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-data-into-a-smartform/m-p/3278195#M783885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi check out this.&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;&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;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;hema sundara.&lt;/P&gt;&lt;P&gt;pls reward if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2008 03:49:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-data-into-a-smartform/m-p/3278195#M783885</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-04T03:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: Populating Data into a Smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-data-into-a-smartform/m-p/3278196#M783886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi check out this.&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;&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;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;hema sundara.&lt;/P&gt;&lt;P&gt;pls reward if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Jan 2008 05:12:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-data-into-a-smartform/m-p/3278196#M783886</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-06T05:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Populating Data into a Smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-data-into-a-smartform/m-p/3278197#M783887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In ur SMARTFORM, go to form interface and declare the table that you want to pass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pass dat table in ur driver program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nishant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Jan 2008 05:16:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-data-into-a-smartform/m-p/3278197#M783887</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-06T05:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Populating Data into a Smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-data-into-a-smartform/m-p/3278198#M783888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Val Kisanga &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;      I hope u r new to Smart Forms. First thing is smart forms are little different then SAP script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. when you create program which is having data . In this program all the internal table are of type ddic object only. you can't create internal table mixing the fileds of two table and pass them to Smart forms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Just Create the internal table or Work Area of DDIC object and Fill the data in it which you want to show in smart forms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Go to Smart Forms : Global Setting-&amp;gt;Form Interface:&amp;gt;&lt;/P&gt;&lt;P&gt;   here you find 4 Tab Containing the different thing We need to 1 and Thrid Tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;import Tab :&lt;/STRONG&gt; In this you have to define the Work Area and Table which contain single Row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_werks          like      vbap-Werks.&lt;/P&gt;&lt;P&gt;wa_vbap            LIKE     vbap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3 tab is called as Table :In this tab you can send pass the table contain Many Data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_vbap             like     vbap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now Suppose I have create a smart form In which I am passing these three object so how the pgm will be code and smart form called see below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZAKJ7                                   .&lt;/P&gt;&lt;P&gt;tables:&lt;/P&gt;&lt;P&gt;     vbap.&lt;/P&gt;&lt;P&gt;data : Wa_werks  like   vbap-werks.&lt;/P&gt;&lt;P&gt;data : wa_vbap   like   vbap.&lt;/P&gt;&lt;P&gt;data : it_vbap   type   standard table of vbap with header line.&lt;/P&gt;&lt;P&gt;parameters : p_vbeln  type   vbap-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select * from vbap into table it_vbap where vbeln = p_vbeln.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;read table it_vbap into wa_vbap index 1.&lt;/P&gt;&lt;P&gt;wa_werks = wa_Vbap-werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;here you need to add some more line&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION '/1BCDWB/SF00000190'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    WA_VBAP                    =  wa_vbap&lt;/P&gt;&lt;P&gt;    WA_WERKS                   = wa_werks&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    IT_VBAP                    =  it_vbap.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&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;The name /1BCDWB/SF00000190 come from the smart form when you press f8 in smart form you get this name. But there is one problem after this the pGM will run in Same client but not in different client.&lt;/P&gt;&lt;P&gt;For that you have to use one more function(I forget the name at present) to make it usable to other also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you check my question you got the anser or the name of that function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can refer below link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="521237"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it usefull for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Swati namdev&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Swati Namdev on Jan 6, 2008 11:58 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Swati Namdev on Jan 6, 2008 12:24 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Jan 2008 06:28:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-data-into-a-smartform/m-p/3278198#M783888</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-06T06:28:23Z</dc:date>
    </item>
  </channel>
</rss>

