<?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: Spool Id - OTF end command // missing in OTF dat in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/spool-id-otf-end-command-missing-in-otf-dat/m-p/6409925#M1407687</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 is how you are going to capture the Spool number in Driver Program..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA : wa_result LIKE  itcpp.


******* OPEN FORM ZTERMSANDCONDITIONS FOR CREATING SPOOL #
  CALL FUNCTION 'OPEN_FORM'
    EXPORTING
      device                      = 'PRINTER'
      dialog                      = ' '
      form                        = 'ZTERMSANDCOND'
      OPTIONS                     = wa_options
    IMPORTING
      RESULT                      = wa_result.

  CALL FUNCTION 'CLOSE_FORM'
    IMPORTING
      RESULT                   = wa_result


"The spool number generated is avaialable in wa_result-tdspoolid.
"now call the below function module to generate PDF from Spool.

  CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
    EXPORTING
      src_spoolid                    = wa_result-tdspoolid    "THis is Spool number field in the open form and Close form..
     no_dialog                      = 'X'.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prabhuads&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Nov 2009 13:54:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-24T13:54:25Z</dc:date>
    <item>
      <title>Spool Id - OTF end command // missing in OTF dat</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spool-id-otf-end-command-missing-in-otf-dat/m-p/6409924#M1407686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I searched a lot about this error in SDN But i could not get a clear solution...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having a SAP Script and i have generated the spool request through OPEN_FORM and CLOSE_FORM&lt;/P&gt;&lt;P&gt;Converted that to PDF using CONVERT_OTF_2_PDF...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when i try to trigger a mail...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Throwing error "OTF end command // missing in OTF dat"....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly, let me know how should i generate or get the spool id so as to pass this spool id to CONVERT_OTF_2_PDF&lt;/P&gt;&lt;P&gt;to avoid this error...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is CONVERT_ABAPSPOOLJOB_2_PDF FM a must to use instaed of CONVERT_OTF_2_PDF...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that is the case how can i capture the spool id to pass that in CONVERT_ABAPSPOOLJOB_2_PDF....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Waiting for your replies....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2009 12:46:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spool-id-otf-end-command-missing-in-otf-dat/m-p/6409924#M1407686</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-24T12:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: Spool Id - OTF end command // missing in OTF dat</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spool-id-otf-end-command-missing-in-otf-dat/m-p/6409925#M1407687</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 is how you are going to capture the Spool number in Driver Program..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA : wa_result LIKE  itcpp.


******* OPEN FORM ZTERMSANDCONDITIONS FOR CREATING SPOOL #
  CALL FUNCTION 'OPEN_FORM'
    EXPORTING
      device                      = 'PRINTER'
      dialog                      = ' '
      form                        = 'ZTERMSANDCOND'
      OPTIONS                     = wa_options
    IMPORTING
      RESULT                      = wa_result.

  CALL FUNCTION 'CLOSE_FORM'
    IMPORTING
      RESULT                   = wa_result


"The spool number generated is avaialable in wa_result-tdspoolid.
"now call the below function module to generate PDF from Spool.

  CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
    EXPORTING
      src_spoolid                    = wa_result-tdspoolid    "THis is Spool number field in the open form and Close form..
     no_dialog                      = 'X'.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prabhuads&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2009 13:54:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spool-id-otf-end-command-missing-in-otf-dat/m-p/6409925#M1407687</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-24T13:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Spool Id - OTF end command // missing in OTF dat</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spool-id-otf-end-command-missing-in-otf-dat/m-p/6409926#M1407688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Prabhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your guidance, i tried this code but i could not get the spool id from Open and Close Forms...&lt;/P&gt;&lt;P&gt;Could you please suggest me some more things...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2009 04:16:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spool-id-otf-end-command-missing-in-otf-dat/m-p/6409926#M1407688</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-25T04:16:35Z</dc:date>
    </item>
  </channel>
</rss>

