<?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: Smartform internal_error when merging forms into 1 spool request in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-internal-error-when-merging-forms-into-1-spool-request/m-p/1199154#M130577</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; I dont think you can call the FM twice for 2 different layouts,because once the call to the smartform is done,it will not return to the program &amp;amp; start another smartform.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Feb 2006 20:59:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-02-16T20:59:11Z</dc:date>
    <item>
      <title>Smartform internal_error when merging forms into 1 spool request</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-internal-error-when-merging-forms-into-1-spool-request/m-p/1199153#M130576</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;I have 2 smartforms - a letter and a certificate. The user has the option to print either one of these forms or both, per employee. I'm using 1 spool request.&lt;/P&gt;&lt;P&gt;As soon as I call the second smartform there is an INTERNAL_ERROR. Why does this happen and how do I solve the problem? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer to the code sample below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; loop at i380.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;make sure the spool is not closed&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  control_parameters-no_open = 'X'.&lt;/P&gt;&lt;P&gt;  control_parameters-no_close = 'X'.&lt;/P&gt;&lt;P&gt;  AT FIRST.&lt;/P&gt;&lt;P&gt;   control_parameters-no_open = ' '.   &lt;/P&gt;&lt;P&gt;  ENDAT.&lt;/P&gt;&lt;P&gt;  AT LAST.&lt;/P&gt;&lt;P&gt;    control_parameters-no_close = ' '. &lt;/P&gt;&lt;P&gt;  ENDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;call smartform 1&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           = 'ZLETTER'&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 &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      WRITE: / 'ERROR 1'.&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;     CALL FUNCTION FM_NAME&lt;/P&gt;&lt;P&gt;             EXPORTING&lt;/P&gt;&lt;P&gt;                  CONTROL_PARAMETERS = control_parameters&lt;/P&gt;&lt;P&gt;                  OUTPUT_OPTIONS     = output_options&lt;/P&gt;&lt;P&gt;                  USER_SETTINGS      = ' '&lt;/P&gt;&lt;P&gt;                  pernr              = i380-pernr&lt;/P&gt;&lt;P&gt;             IMPORTING&lt;/P&gt;&lt;P&gt;                  JOB_OUTPUT_INFO    = otf_info&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;        endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;second smartform - certificate&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           = 'ZCERTIFICATE'&lt;/P&gt;&lt;P&gt;         IMPORTING&lt;/P&gt;&lt;P&gt;              FM_NAME            = FM_NAME2&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;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     CALL FUNCTION FM_NAME2&lt;/P&gt;&lt;P&gt;             EXPORTING&lt;/P&gt;&lt;P&gt;                  CONTROL_PARAMETERS = control_parameters&lt;/P&gt;&lt;P&gt;                  OUTPUT_OPTIONS     = output_options&lt;/P&gt;&lt;P&gt;                  USER_SETTINGS      = ' '&lt;/P&gt;&lt;P&gt;                  pernr              = i380-pernr&lt;/P&gt;&lt;P&gt;             IMPORTING&lt;/P&gt;&lt;P&gt;                  JOB_OUTPUT_INFO    = otf_info&lt;/P&gt;&lt;P&gt;             EXCEPTIONS&lt;/P&gt;&lt;P&gt;                  FORMATTING_ERROR   = 1&lt;/P&gt;&lt;P&gt;                 &amp;lt;b&amp;gt; INTERNAL_ERROR     = 2&amp;lt;/b&amp;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;        ENDIF.&lt;/P&gt;&lt;P&gt; endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cleared output_parameters, output_options and otf_info when calling form ZCERTIFICATE but this does not solve the problem. When ZCERTIFICATE is called seperately, there is no problem.  The forms should be printed directly without conversion to PDF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your help will be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2006 20:52:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-internal-error-when-merging-forms-into-1-spool-request/m-p/1199153#M130576</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-16T20:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: Smartform internal_error when merging forms into 1 spool request</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-internal-error-when-merging-forms-into-1-spool-request/m-p/1199154#M130577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; I dont think you can call the FM twice for 2 different layouts,because once the call to the smartform is done,it will not return to the program &amp;amp; start another smartform.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2006 20:59:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-internal-error-when-merging-forms-into-1-spool-request/m-p/1199154#M130577</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-16T20:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: Smartform internal_error when merging forms into 1 spool request</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-internal-error-when-merging-forms-into-1-spool-request/m-p/1199155#M130578</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;In the loop AT Last is in wrong place. May be that could be the reason for your problem. Then the second call to samrt from is will be working on a closed session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;austin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Joseph Austin Prabhu Paulthas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2006 10:16:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-internal-error-when-merging-forms-into-1-spool-request/m-p/1199155#M130578</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-17T10:16:32Z</dc:date>
    </item>
  </channel>
</rss>

