<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SMARTFORMS in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/1017188#M80295</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I thought that you only need to have separate spool requests for each customer, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP at customer_table.   " Unique Customer Numbers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Call the smartforms function &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;and set the "new id" flag in the options &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;parameter.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this not working?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Aug 2005 19:53:25 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2005-08-29T19:53:25Z</dc:date>
    <item>
      <title>SMARTFORMS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/1017176#M80283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI FOLKS,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I printing the statements using ABAP print program, and my objective is to print  for a range of customers (which I input in the selection-options and give the range) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have read these customer numbers into an ITAB and looping the data I am declaring the function module within the loop. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, the entire data is printing in  one statement which should not be the case, for each customer it should print  different statements i.e for each customer it should print unique and not update the same statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i facilitate this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;vinu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2005 18:34:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/1017176#M80283</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-29T18:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: SMARTFORMS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/1017177#M80284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are saying that it is putting all of the statements into one spool?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2005 18:37:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/1017177#M80284</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-08-29T18:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: SMARTFORMS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/1017178#M80285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try putting an "X" in the TDNEWID field of the OUTPUT_OPTIONS parameter when calling the function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2005 18:40:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/1017178#M80285</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-08-29T18:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: SMARTFORMS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/1017179#M80286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this is what I have in the function module of the smartform&lt;/P&gt;&lt;P&gt;i entered the value 'X' in 'output options' in the exporting parameter section and got a runtime error.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;now call the generated function module&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    call function fm_name&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                archive_index        =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                archive_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;/UL&gt;&lt;P&gt;                    ZTOTAL = ZTOTALAMOUNT&lt;/P&gt;&lt;P&gt;                    zscan_code = scan_number&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                   zpartner = bpartner&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;                    z_bdate = e_date&lt;/P&gt;&lt;P&gt;                    zadnumber = adnumber&lt;/P&gt;&lt;P&gt;                    zadnumber1 = zzadnumber&lt;/P&gt;&lt;P&gt;                    zagencynumber = agencynumber&lt;/P&gt;&lt;P&gt;                    z_payment_terms = v_payment_terms&lt;/P&gt;&lt;P&gt;                    zzadname         = adname1&lt;/P&gt;&lt;P&gt;                     zadname         = adname&lt;/P&gt;&lt;P&gt;                    zagencyname     = agencyname&lt;/P&gt;&lt;P&gt;                    zphone          = bphone&lt;/P&gt;&lt;P&gt;                    zcreditgroup    =  zcredittext&lt;/P&gt;&lt;P&gt;                    z_bperiod       = monthn&lt;/P&gt;&lt;P&gt;                    ztotalcredits   = zappliedcredits1&lt;/P&gt;&lt;P&gt;                    ztotalbalance   = zcurrenttotal&lt;/P&gt;&lt;P&gt;                    ZZEXTZIP        = zzextensionzip&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                bookings             = bookings&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     importing  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;                    stribunecustomer     = customer&lt;/P&gt;&lt;P&gt;                    accountdata       = accitab&lt;/P&gt;&lt;P&gt;                    zcdatar               = zcdata&lt;/P&gt;&lt;P&gt;                    zaging                = agingdataitab&lt;/P&gt;&lt;P&gt;                    ZADDRESS              = i_address_number&lt;/P&gt;&lt;P&gt;         exceptions 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;Regards&lt;/P&gt;&lt;P&gt;santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2005 18:57:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/1017179#M80286</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-29T18:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: SMARTFORMS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/1017180#M80287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you do it like this...........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


data: output_options type  ssfcompop .

output_options-tdnewid = 'X'.

call function '/1BCDWB/SF00000002'
  exporting
*   ARCHIVE_INDEX              =
*   ARCHIVE_INDEX_TAB          =
*   ARCHIVE_PARAMETERS         =
*   CONTROL_PARAMETERS         =
*   MAIL_APPL_OBJ              =
*   MAIL_RECIPIENT             =
*   MAIL_SENDER                =
    output_options             = output_options
*   USER_SETTINGS              = 'X'

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2005 19:06:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/1017180#M80287</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-08-29T19:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: SMARTFORMS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/1017181#M80288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Santhosh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to have explicit page break whenever you find a new customer. Hope you are using the TABLE node for displaying the line items. But explicit page break (using COMMAND node) is not possible inside the TABLE node. The solution is using LOOP node. I think you are using an internal table for TABLE node. Copy the values in another internal table and take only unique customer number (use SORT and DELETE ADJUCENT DUPLICATES). Use this internal table in the LOOP node. The TABLE node will be inside the LOOP node. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the LOOP node will loop through the unique customer number internal table and the TABLE node will loop through the items for the selected customer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you. If you want to have different page numbers for each customer please go through this blog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/people/vinod.chandran/blog/2005/08/23/using-final-window-in-smartforms&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another solution is to control this in the print program.&lt;/P&gt;&lt;P&gt;Instead of command node for page break you have to call the smartform for each customer passing the items for the selected customer. You need the unique internal table in the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2005 19:08:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/1017181#M80288</guid>
      <dc:creator>Vinod_Chandran</dc:creator>
      <dc:date>2005-08-29T19:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: SMARTFORMS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/1017182#M80289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Working with this example program below,  it generated 3 separate spool requests.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0002 .


data: output_options type  ssfcompop,
      customers type  ty_customers,
      bookings type  ty_bookings,
      connections type  ty_connections,
      control type  ssfctrlop.

control-no_dialog = 'X'.
output_options-tdnewid = 'X'.

do 3 times.

  call function '/1BCDWB/SF00000002'
    exporting
*   ARCHIVE_INDEX              =
*   ARCHIVE_INDEX_TAB          =
*   ARCHIVE_PARAMETERS         =
    control_parameters         = control
*   MAIL_APPL_OBJ              =
*   MAIL_RECIPIENT             =
*   MAIL_SENDER                =
      output_options             = output_options
*   USER_SETTINGS              = 'X'
      customers                  = customers
      bookings                   = bookings
      connections                = connections
* IMPORTING
*   DOCUMENT_OUTPUT_INFO       =
*   JOB_OUTPUT_INFO            =
*   JOB_OUTPUT_OPTIONS         =
* EXCEPTIONS
*   FORMATTING_ERROR           = 1
*   INTERNAL_ERROR             = 2
*   SEND_ERROR                 = 3
*   USER_CANCELED              = 4
*   OTHERS                     = 5
            .
  if sy-subrc &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  endif.

enddo.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2005 19:17:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/1017182#M80289</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-08-29T19:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: SMARTFORMS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/1017183#M80290</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;Instead of selecting the data in program and calling the fm for each loop, call the smartforms just once and put all the select statements and other stuff in the smart forms in node PROGRAM LINES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you loop thru this internal table in node LOOP and print the data for each table entry in the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you. Let me know if you need in detail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vamsi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2005 19:17:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/1017183#M80290</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-29T19:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: SMARTFORMS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/1017184#M80291</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;As said in earlier mail. This can be handled in Print Program. Print program will extract data in Internal Table Sorted on Customer. Within loop set Print parameters &amp;amp; Call Function module. After call to Function module Set Parameter New Spool Id = 'X'.&lt;/P&gt;&lt;P&gt;But it has a smaller problem. You have to give 'Wait' for some seconds before starting new customer. This way it will generate seperate spools for seperate customers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mahindra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2005 19:25:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/1017184#M80291</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-29T19:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: SMARTFORMS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/1017185#M80292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi vinod, I think you can help me out here, I am not following what you are saying?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me give you the body template of the print program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declaration part... itab,variables&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;select-options:s_custid for knc1-kunnr default 1.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;select distinct kunnr xausz from knb1 into table customerperiod where&lt;/P&gt;&lt;P&gt;kunnr in s_custid.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;* list of business partners/customers *&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;loop at customerperiod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  zzbusinesspartner = customerperiod-kunnr.&lt;/P&gt;&lt;P&gt;   icode2 = customerperiod-xausz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;***list of all the advertisers matching the business partners for which statements have to be printed on the form  ****&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; select distinct inserent regulierer from jhaga into table&lt;/P&gt;&lt;P&gt;customertotal where regulierer = zzbusinesspartner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at customertotal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    zzadvertiser = customertotal-inserent.&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;THE BODY OF THE FORM IS POPULATED USING THE LINE ITEMS OF THE TABLE NODE OF THE SMART FORM ****&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&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  formname           = p_form&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  fm_name            = fm_name&lt;/P&gt;&lt;P&gt;         exceptions no_form            = 1&lt;/P&gt;&lt;P&gt;                    no_function_module = 2&lt;/P&gt;&lt;P&gt;                    others             = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  error handling&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;      exit.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;now call the generated function module&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    call function fm_name&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;if  sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  error handling&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; endselect.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I have to change in the smartform use said that the LOOP node has to be used,  I have used an interntable 'accitab'  into which i reading the lineitems and in the form looping that into a work area 'wa-accountdata' and displaying that into the form.&lt;/P&gt;&lt;P&gt;can you elaborate on that? that would help me to understand .&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2005 19:36:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/1017185#M80292</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-29T19:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: SMARTFORMS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/1017186#M80293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Santhosh,  Are you saying that setting this flag is not working for you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;output_options-tdnewid = 'X'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2005 19:40:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/1017186#M80293</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-08-29T19:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: SMARTFORMS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/1017187#M80294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rich, my question is how can I give a specific number of spool requests when I cannot give the specific number of customers I am dealing with upfront.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2005 19:47:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/1017187#M80294</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-29T19:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: SMARTFORMS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/1017188#M80295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I thought that you only need to have separate spool requests for each customer, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP at customer_table.   " Unique Customer Numbers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Call the smartforms function &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;and set the "new id" flag in the options &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;parameter.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this not working?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2005 19:53:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/1017188#M80295</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-08-29T19:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: SMARTFORMS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/1017189#M80296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it throws a runtime error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function module interface allows only to specify fields of a particular type under " OUTPUT_OPTIONS"  this has a different field type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2005 20:12:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/1017189#M80296</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-29T20:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: SMARTFORMS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/1017190#M80297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The structure for output_options should have structure 'ssfcompop'. Within this set parameter ssfcompop-tdnewid.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2005 20:19:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/1017190#M80297</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-29T20:19:09Z</dc:date>
    </item>
  </channel>
</rss>

