<?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: trigerring two smartforms with single output in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/trigerring-two-smartforms-with-single-output/m-p/1402288#M194363</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tripathy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you just please elaborate?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;PRaneeth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Jun 2006 06:47:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-06-14T06:47:25Z</dc:date>
    <item>
      <title>trigerring two smartforms with single output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trigerring-two-smartforms-with-single-output/m-p/1402283#M194358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to trigger two smartforms with a single output.It is possible with SAP scripts and I am not sure whether it can be done with Smartforms.Advise appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Praneeth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2006 06:31:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trigerring-two-smartforms-with-single-output/m-p/1402283#M194358</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-14T06:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: trigerring two smartforms with single output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trigerring-two-smartforms-with-single-output/m-p/1402284#M194359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Praneeth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tell me if this is the requirement.&lt;/P&gt;&lt;P&gt;"You want to combine multiple smartform output to a single final OTF table".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that is the requirement, then I can help you .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2006 06:34:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trigerring-two-smartforms-with-single-output/m-p/1402284#M194359</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-14T06:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: trigerring two smartforms with single output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trigerring-two-smartforms-with-single-output/m-p/1402285#M194360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Praneeth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont think you can do that. Let assume for now that it does.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When a message is created, based on the output how will the processing program know which form to pick up. So practically it is not possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should have two output types for two forms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Naren Somen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2006 06:34:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trigerring-two-smartforms-with-single-output/m-p/1402285#M194360</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-14T06:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: trigerring two smartforms with single output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trigerring-two-smartforms-with-single-output/m-p/1402286#M194361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prasad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My actual requirement was I have two dynamic iterations in the form which I could not accomadate in a single main window of the form.So was thinking on the lines if I can cretae two SF's for a single output and trigger them one after the other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also is it possible to attach one smartform and one SAP script to a single output type?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;egards&lt;/P&gt;&lt;P&gt;Praneeth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2006 06:40:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trigerring-two-smartforms-with-single-output/m-p/1402286#M194361</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-14T06:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: trigerring two smartforms with single output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trigerring-two-smartforms-with-single-output/m-p/1402287#M194362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;GOOD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AS YOU HAVE MENTIONED IN YOUR REQUIREMENT IT IS NOT POSSIBLE IN THE SMARTFORM BUT HAVE TO TRY TO CALL THROUGH INCLUDE PROGRAM , TRY TO CALL ANOTHER SMARTFORMS USING INCLUDE IN THE DRIVER PROGRAM .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKS&lt;/P&gt;&lt;P&gt;MRUTYUN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2006 06:43:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trigerring-two-smartforms-with-single-output/m-p/1402287#M194362</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-14T06:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: trigerring two smartforms with single output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trigerring-two-smartforms-with-single-output/m-p/1402288#M194363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tripathy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you just please elaborate?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;PRaneeth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2006 06:47:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trigerring-two-smartforms-with-single-output/m-p/1402288#M194363</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-14T06:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: trigerring two smartforms with single output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trigerring-two-smartforms-with-single-output/m-p/1402289#M194364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Praneeth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to combine multiple smartforms and put it into PDF file in the local PC.&lt;/P&gt;&lt;P&gt;Just check this program and tell me if this is what you want..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT yshail_smartform1_new                     .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: zshail_t1,sflight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: cparam TYPE ssfctrlop,&lt;/P&gt;&lt;P&gt;      outop TYPE ssfcompop,&lt;/P&gt;&lt;P&gt;      fm_name TYPE rs38l_fnam,&lt;/P&gt;&lt;P&gt;      my_tabix TYPE sy-tabix,&lt;/P&gt;&lt;P&gt;      file_size TYPE i,&lt;/P&gt;&lt;P&gt;      bin_filesize TYPE i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: tab_otf_data TYPE ssfcrescl,&lt;/P&gt;&lt;P&gt;      pdf_tab LIKE tline OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      itab LIKE TABLE OF zshail_t1 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      otab TYPE TABLE OF sflight WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      tab_otf_final TYPE itcoo OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="17" type="ul"&gt;&lt;P&gt;suppressing the dialog box****************************&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;outop-tddest = 'LP01'.&lt;/P&gt;&lt;P&gt;cparam-no_dialog = 'X'.&lt;/P&gt;&lt;P&gt;cparam-preview = space.&lt;/P&gt;&lt;P&gt;cparam-getotf = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;******&lt;STRONG&gt;for first smartform&lt;/STRONG&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                 = 'ZSHAIL_SMFORM2'&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;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;SELECT my_id my_income my_name FROM zshail_t1 INTO TABLE itab.&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;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_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;/UL&gt;&lt;P&gt;   control_parameters         = cparam&lt;/P&gt;&lt;UL&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;/UL&gt;&lt;P&gt;   output_options             = outop&lt;/P&gt;&lt;P&gt;   user_settings              = space&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DOCUMENT_OUTPUT_INFO       =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   job_output_info            = tab_otf_data&lt;/P&gt;&lt;UL&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;    it_tab                     = itab[]&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;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;*********&lt;STRONG&gt;appending the otf data into the final table&lt;/STRONG&gt;*********************&lt;/P&gt;&lt;P&gt;tab_otf_final[] = tab_otf_data-otfdata[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*************&lt;STRONG&gt;for the second smartform&lt;/STRONG&gt;************************************&lt;/P&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                 = 'ZSHAIL_SMTAB'&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;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;SELECT carrid connid fldate price FROM sflight INTO CORRESPONDING FIELDS&lt;/P&gt;&lt;P&gt; OF TABLE otab.&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;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_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;/UL&gt;&lt;P&gt;   control_parameters         = cparam&lt;/P&gt;&lt;UL&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;/UL&gt;&lt;P&gt;   output_options             = outop&lt;/P&gt;&lt;P&gt;   user_settings              = space&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DOCUMENT_OUTPUT_INFO       =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   job_output_info            = tab_otf_data&lt;/P&gt;&lt;UL&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;    itab                       = otab[]&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;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;**&lt;STRONG&gt;removing the initial and final markers from the OTF data&lt;/STRONG&gt;*********&lt;/P&gt;&lt;P&gt;DELETE tab_otf_data-otfdata WHERE tdprintcom = '//'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="17" type="ul"&gt;&lt;P&gt;searching for the end-of-page in OTF table************&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;READ TABLE tab_otf_final WITH KEY tdprintcom = 'EP'.&lt;/P&gt;&lt;P&gt;my_tabix = sy-tabix + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="12" type="ul"&gt;&lt;P&gt;appending the modified OTF table to the final OTF table****&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;INSERT LINES OF tab_otf_data-otfdata INTO tab_otf_final INDEX my_tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="12" type="ul"&gt;&lt;P&gt;converting OTF data into pdf data**************************&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'CONVERT_OTF'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   format                      = 'PDF'&lt;/P&gt;&lt;P&gt;   max_linewidth               = 132&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;  COPYNUMBER                  = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ASCII_BIDI_VIS2LOG          = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   bin_filesize                = bin_filesize&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  BIN_FILE                    =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    otf                         = tab_otf_final&lt;/P&gt;&lt;P&gt;    lines                       = pdf_tab&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   err_max_linewidth           = 1&lt;/P&gt;&lt;P&gt;   err_format                  = 2&lt;/P&gt;&lt;P&gt;   err_conv_not_possible       = 3&lt;/P&gt;&lt;P&gt;   err_bad_otf                 = 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;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;************&lt;STRONG&gt;downloading the converted PDF data to your local PC&lt;/STRONG&gt;*******&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;   bin_filesize                    = bin_filesize&lt;/P&gt;&lt;P&gt;   filename                        = 'D:\TEST.PDF'&lt;/P&gt;&lt;P&gt;   filetype                        = 'BIN'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;   filelength                      = file_size&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    data_tab                        = pdf_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2006 07:05:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trigerring-two-smartforms-with-single-output/m-p/1402289#M194364</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-14T07:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: trigerring two smartforms with single output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trigerring-two-smartforms-with-single-output/m-p/1402290#M194365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What you can do is to design two different smart forms and combine the output into the same spool, so that user will not know the difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take a look at this link which explains how to club the output of multiple smart forms into one spool request&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/64/bf2f12ed1711d4b655006094192fe3/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/64/bf2f12ed1711d4b655006094192fe3/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&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>Wed, 14 Jun 2006 07:49:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trigerring-two-smartforms-with-single-output/m-p/1402290#M194365</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-14T07:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: trigerring two smartforms with single output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trigerring-two-smartforms-with-single-output/m-p/1402291#M194366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Praneeth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per your information, if you have two dynamic iterations, you can just keep two TABLE Nodes or you can use 2 LOOPs in the MAIN WINDOW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to use 2 MAIN WINDOW for your requirement, here is the solution for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First create one MAIN WINDOW and use one dynamic interation. In that iteration, you have to write piece of code to check whether that iteration is end or not. If it is end you will have to use COMMAND to trigger NEXT page. In the NEXT page, you have same MAIN  WINDOW but different iteration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when you see your MAIN WINDOW code, both iterations are one after another. So, you will get the desired output. I have done it several times and you dont need to create 2 smartforms or 1 smartform and 1 script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just create 1 smartform with 4 page formats. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PAGE1&lt;/P&gt;&lt;P&gt;NEXT1&lt;/P&gt;&lt;P&gt;PAGE2&lt;/P&gt;&lt;P&gt;NEXT2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you need more information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ram.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls award points if it is helpfull.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2006 08:32:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trigerring-two-smartforms-with-single-output/m-p/1402291#M194366</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-14T08:32:43Z</dc:date>
    </item>
  </channel>
</rss>

