<?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: Multiple prints with one call. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-multiple-prints-with-one-call/m-p/967241#M68812</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;More info about this problem: When i call the smartforms FM&lt;/P&gt;&lt;P&gt;it seems to be a problem with the control_parameters (se the code in the previous message) parameter, because the values that are stored in the structure control, are lost when the program goes to the smartform FM and the parameter CONTROL_PARAMETERS is empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is really weird, and I don't know why is happening....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Sep 2005 15:09:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-09-02T15:09:47Z</dc:date>
    <item>
      <title>SMARTFORMS: Multiple prints with one call.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-multiple-prints-with-one-call/m-p/967240#M68811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, I need to print several certificates using just one call to the smartforms function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The structure of the internal table that i'm using is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cert_number&lt;/P&gt;&lt;P&gt;kunnr&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;other data...&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now, there will be several kunnr for one cert_number, and I need to print every cert_number per page with all the kunnrs in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i did it as follow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;BEGIN OF CODE **&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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           = 'ZCLFI_WITTHOLD_001'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      fm_name            = l_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;    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;  control-no_dialog = 'X'.&lt;/P&gt;&lt;P&gt;  control-preview   = 'X'.&lt;/P&gt;&lt;P&gt;  control-no_open   = 'X'.&lt;/P&gt;&lt;P&gt;  control-no_close  = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'SSF_OPEN'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      control_parameters = control&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;    EXIT.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SORT it_data BY cert_number.&lt;/P&gt;&lt;P&gt;  LOOP AT it_data.&lt;/P&gt;&lt;P&gt;    APPEND it_data TO print_data.&lt;/P&gt;&lt;P&gt;    AT END OF nro_cert.&lt;/P&gt;&lt;P&gt;      CALL FUNCTION l_fm_name&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          control_parameter = control&lt;/P&gt;&lt;P&gt;          date              = date&lt;/P&gt;&lt;P&gt;          year              = gjahr&lt;/P&gt;&lt;P&gt;          it_data           = print_data[]&lt;/P&gt;&lt;P&gt;          p_name            = p_name&lt;/P&gt;&lt;P&gt;          p_rut             = p_rut&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;      REFRESH print_data.&lt;/P&gt;&lt;P&gt;    ENDAT.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'SSF_CLOSE'&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;      OTHERS           = 4.&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;  CALL FUNCTION 'SSF_READ_ERRORS'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      errortab = errtab.&lt;/P&gt;&lt;P&gt;  IF NOT errtab IS INITIAL.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Error analysis here....&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;END OF CODE **&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the problem is that in the first loop pass i get the following error message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Previous output request was not finished.&lt;/P&gt;&lt;P&gt;Message no. SSFCOMPOSER150&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Diagnosis&lt;/P&gt;&lt;P&gt;A previous output request has not been finished. Therefore you are not allowed to start a new output request.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;System Response&lt;/P&gt;&lt;P&gt;The system issues an error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Procedure&lt;/P&gt;&lt;P&gt;Check the sequence in which you call the function modules SSFCOMP_OPEN and SSFCOMP_CLOSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The order of the FM i think they are ok, so i don't know what could be the problem. Any help is welcome!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance, and regards.&lt;/P&gt;&lt;P&gt;Mauro.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Sep 2005 14:34:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-multiple-prints-with-one-call/m-p/967240#M68811</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-02T14:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: SMARTFORMS: Multiple prints with one call.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-multiple-prints-with-one-call/m-p/967241#M68812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;More info about this problem: When i call the smartforms FM&lt;/P&gt;&lt;P&gt;it seems to be a problem with the control_parameters (se the code in the previous message) parameter, because the values that are stored in the structure control, are lost when the program goes to the smartform FM and the parameter CONTROL_PARAMETERS is empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is really weird, and I don't know why is happening....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Sep 2005 15:09:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-multiple-prints-with-one-call/m-p/967241#M68812</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-02T15:09:47Z</dc:date>
    </item>
  </channel>
</rss>

