<?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 smart form.. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/smart-form/m-p/1883024#M370675</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts&lt;/P&gt;&lt;P&gt;i devepoled a form for a paricular document no.....in that if i give doc no and date i   will get the items in that document no.......but i want in such a way that i will give range of document no's....all the  recipts for that range should come one after the other...(on seperate papers)....................&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Jan 2007 08:57:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-08T08:57:34Z</dc:date>
    <item>
      <title>smart form..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smart-form/m-p/1883024#M370675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts&lt;/P&gt;&lt;P&gt;i devepoled a form for a paricular document no.....in that if i give doc no and date i   will get the items in that document no.......but i want in such a way that i will give range of document no's....all the  recipts for that range should come one after the other...(on seperate papers)....................&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2007 08:57:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smart-form/m-p/1883024#M370675</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-08T08:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: smart form..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smart-form/m-p/1883025#M370676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming that your driver program has a select-option for the range of documents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select * from &amp;lt;master table for the doucments&amp;gt; &lt;/P&gt;&lt;P&gt;into table itab &lt;/P&gt;&lt;P&gt;where document number in s_docno.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itav.&lt;/P&gt;&lt;P&gt;P_docno = itab-docno. " p_docno is the parameter that you had earlier..&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;earlier logic for printing each document.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2007 09:18:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smart-form/m-p/1883025#M370676</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-08T09:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: smart form..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smart-form/m-p/1883026#M370677</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;This can be solved like the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to write a report program, which collects all the required documents and the required data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you have all data, write a coding into your program like this. The coding is unfinished and untested, but maybe gives you a good idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* determine smartform function module for delivery note
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
         EXPORTING  FORMNAME           = LF_FORMNAME   "your smartform
*                 variant            = ' '
*                 direct_call        = ' '
         IMPORTING  FM_NAME            = LF_FM_NAME   "sap FM for smartform
         EXCEPTIONS NO_FORM            = 1
                    NO_FUNCTION_MODULE = 2
                    OTHERS             = 3.
    IF SY-SUBRC &amp;lt;&amp;gt; 0.
*   error handling
      CF_RETCODE = SY-SUBRC.
      PERFORM PROTOCOL_UPDATE.
    ENDIF.
  ENDIF.

  LOOP AT itab INTO wa_itab.
  AT END OF doc_num. 

  IF CF_RETCODE = 0.
*   call smartform delivery note
    CALL FUNCTION LF_FM_NAME
         EXPORTING
                  ARCHIVE_INDEX        = TOA_DARA
                  ARCHIVE_PARAMETERS   = ARC_PARAMS
                  CONTROL_PARAMETERS   = LS_CONTROL_PARAM
*                 mail_appl_obj        =
                  MAIL_RECIPIENT       = LS_RECIPIENT
                  MAIL_SENDER          = LS_SENDER
                  OUTPUT_OPTIONS       = LS_COMPOSER_PARAM
                  USER_SETTINGS        = ' '
                  IS_DLV_DELNOTE       = LS_DLV_DELNOTE
                  IS_NAST              = NAST
*      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.
*   error handling
      CF_RETCODE = SY-SUBRC.
      PERFORM PROTOCOL_UPDATE.
*     get SmartForm protocoll and store it in the NAST protocoll
      PERFORM ADD_SMFRM_PROT.                  "INS_HP_335958
    ENDIF.
  ENDIF.
  ENDAT.
  ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2007 09:21:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smart-form/m-p/1883026#M370677</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-08T09:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: smart form..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smart-form/m-p/1883027#M370678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TNX U..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2007 09:25:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smart-form/m-p/1883027#M370678</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-08T09:25:08Z</dc:date>
    </item>
  </channel>
</rss>

