<?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, PDF Error, Unrecognized Token in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-pdf-error-unrecognized-token/m-p/2920682#M687756</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi vasu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We were using the FM 'CONVERT_OTF', but we instead used 'CONVERT_OTF_2_PDF' WHICH IS SUGGESTED By you.&lt;/P&gt;&lt;P&gt;It is working fine when we download the form but when we send mail, it is giving an error "Token BT70.85 not found" . Can you help me???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For sending mail i am using 'SO_NEW_DOCUMENT_ATT_SEND_API1' function module. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      DOCUMENT_DATA              = WA_DOCUMENT		&lt;/P&gt;&lt;P&gt;      PUT_IN_OUTBOX              = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     COMMIT_WORK                = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      PACKING_LIST               = IT_PACKING&lt;/P&gt;&lt;P&gt;      CONTENTS_BIN               = IT_CONTENTS_BIN&lt;/P&gt;&lt;P&gt;      CONTENTS_TXT               = IT_CONTENTS_TXT&lt;/P&gt;&lt;P&gt;      RECEIVERS                  = IT_RECEIVERS&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      TOO_MANY_RECEIVERS         = 1&lt;/P&gt;&lt;P&gt;      DOCUMENT_NOT_SENT          = 2&lt;/P&gt;&lt;P&gt;      DOCUMENT_TYPE_NOT_EXIST    = 3&lt;/P&gt;&lt;P&gt;      OPERATION_NO_AUTHORIZATION = 4&lt;/P&gt;&lt;P&gt;      PARAMETER_ERROR            = 5&lt;/P&gt;&lt;P&gt;      X_ERROR                    = 6&lt;/P&gt;&lt;P&gt;      ENQUEUE_ERROR              = 7&lt;/P&gt;&lt;P&gt;      OTHERS                     = 8.&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;Please reply ASAP. Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jigar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Oct 2007 11:07:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-10T11:07:24Z</dc:date>
    <item>
      <title>Smartform, PDF Error, Unrecognized Token</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-pdf-error-unrecognized-token/m-p/2920679#M687753</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;I have used smarform to send the output of Order Confirmation in PDF format to customer's external mail id. The program is working fine and sending mail to customer's mail id. But the problem is when I am trying to open the PDF file, I am getting the error. The error says ''An unrecognized token 'xxx.xx' was found", where xxx.xx is some number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have searched the forum, got some link to resolve that but didnt get the success. To send the mail, I have used the program which is generally used to send the mail. Like me some more users are looking for the solution for this error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using SAP4.7.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Helpful Ans will be rewarded&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Adv.&lt;/P&gt;&lt;P&gt;Jigar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 10:10:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-pdf-error-unrecognized-token/m-p/2920679#M687753</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T10:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Smartform, PDF Error, Unrecognized Token</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-pdf-error-unrecognized-token/m-p/2920680#M687754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look this: &lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3932162"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SX_OBJECT_CONVERT_OTF_PDF     Please use this function module to solve the problem......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this in following way....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Get the FM name of the SSF:&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 = 'SSF'"Name of the SSF&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;fm_name = fmname "Variable&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;2. Get the Output of the Form....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA :l_t_job_output TYPE ssfcrescl OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA :l_t_out LIKE ssfcompop OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA :l_t_control LIKE ssfctrlop OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_t_out-tddest = 'LOCL'.&lt;/P&gt;&lt;P&gt;APPEND l_t_out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_t_control-no_dialog = 'X'.&lt;/P&gt;&lt;P&gt;l_t_control-getotf = 'X'.&lt;/P&gt;&lt;P&gt;l_t_control-no_close = space.&lt;/P&gt;&lt;P&gt;APPEND l_t_control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION fmname&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;control_parameters = l_t_control&lt;/P&gt;&lt;P&gt;output_options = l_t_out&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;job_output_info = l_t_job_output&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&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;&lt;/P&gt;&lt;P&gt;3. Convert the OTF to PDF format...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA :l_t_pdfdata_tab LIKE tline OCCURS 200.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERT_OTF_2_PDF'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;use_otf_mc_cmd = 'X'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;bin_filesize = l_filesize_deck "Variable&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;otf = l_t_job_output-otfdata&lt;/P&gt;&lt;P&gt;doctab_archive = l_t_docs " Variable&lt;/P&gt;&lt;P&gt;lines = l_t_pdfdata_tab&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;err_conv_not_possible = 1&lt;/P&gt;&lt;P&gt;err_otf_mc_noendmarker = 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;4. Download the PDF data...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WS_DOWNLOAD'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;bin_filesize = l_filesize "Variable&lt;/P&gt;&lt;P&gt;filename = 'C:\temp.pdf'&lt;/P&gt;&lt;P&gt;filetype = 'BIN"&lt;/P&gt;&lt;P&gt;mode = ' '&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;filelength = l_filesize "Variable&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;data_tab = l_t_pdfdata_tab&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;file_open_error = 1&lt;/P&gt;&lt;P&gt;file_write_error = 2&lt;/P&gt;&lt;P&gt;invalid_filesize = 3&lt;/P&gt;&lt;P&gt;invalid_type = 4&lt;/P&gt;&lt;P&gt;no_batch = 5&lt;/P&gt;&lt;P&gt;unknown_error = 6&lt;/P&gt;&lt;P&gt;invalid_table_width = 7&lt;/P&gt;&lt;P&gt;gui_refuse_filetransfer = 8&lt;/P&gt;&lt;P&gt;customer_error = 9&lt;/P&gt;&lt;P&gt;OTHERS = 10.&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;5. View the Doc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WS_EXECUTE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;document = 'X'&lt;/P&gt;&lt;P&gt;cd = 'C:\'&lt;/P&gt;&lt;P&gt;program = 'C:\temp.pdf'&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;frontend_error = 1&lt;/P&gt;&lt;P&gt;no_batch = 2&lt;/P&gt;&lt;P&gt;prog_not_found = 3&lt;/P&gt;&lt;P&gt;illegal_option = 4&lt;/P&gt;&lt;P&gt;gui_refuse_execute = 5&lt;/P&gt;&lt;P&gt;OTHERS = 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: The Exceptions in any FM are to be uncommented to catch the errer. Else SAP may trigger a dump.&lt;/P&gt;&lt;P&gt;*********************&lt;/P&gt;&lt;P&gt;call function 'SX_OBJECT_CONVERT_OTF_PDF'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;format_src = 'OTF'&lt;/P&gt;&lt;P&gt;format_dst = 'PDF'&lt;/P&gt;&lt;P&gt;devtype = 'PRINTER'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FUNCPARA =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;len_in = '1234'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;LEN_OUT =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;content_in = objbin&lt;/P&gt;&lt;P&gt;content_out = objpdf&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;ERR_CONV_FAILED = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2.&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;UL&gt;&lt;UL&gt;&lt;LI level="19" type="ul"&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;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 10:17:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-pdf-error-unrecognized-token/m-p/2920680#M687754</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T10:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: Smartform, PDF Error, Unrecognized Token</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-pdf-error-unrecognized-token/m-p/2920681#M687755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jigar,&lt;/P&gt;&lt;P&gt;Once u get the PDF data in the internal table, u need to translate symbol '&amp;lt;b&amp;gt;~&amp;lt;/b&amp;gt;' to space before storing all the data in the internal table for MAILBIN. (Interface of Fm SO_NEW_DOCUMENT_ATT_SEND_API1).&lt;/P&gt;&lt;P&gt;Please Check.&lt;/P&gt;&lt;P&gt;Award points if found useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 10:18:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-pdf-error-unrecognized-token/m-p/2920681#M687755</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T10:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: Smartform, PDF Error, Unrecognized Token</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-pdf-error-unrecognized-token/m-p/2920682#M687756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi vasu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We were using the FM 'CONVERT_OTF', but we instead used 'CONVERT_OTF_2_PDF' WHICH IS SUGGESTED By you.&lt;/P&gt;&lt;P&gt;It is working fine when we download the form but when we send mail, it is giving an error "Token BT70.85 not found" . Can you help me???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For sending mail i am using 'SO_NEW_DOCUMENT_ATT_SEND_API1' function module. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      DOCUMENT_DATA              = WA_DOCUMENT		&lt;/P&gt;&lt;P&gt;      PUT_IN_OUTBOX              = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     COMMIT_WORK                = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      PACKING_LIST               = IT_PACKING&lt;/P&gt;&lt;P&gt;      CONTENTS_BIN               = IT_CONTENTS_BIN&lt;/P&gt;&lt;P&gt;      CONTENTS_TXT               = IT_CONTENTS_TXT&lt;/P&gt;&lt;P&gt;      RECEIVERS                  = IT_RECEIVERS&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      TOO_MANY_RECEIVERS         = 1&lt;/P&gt;&lt;P&gt;      DOCUMENT_NOT_SENT          = 2&lt;/P&gt;&lt;P&gt;      DOCUMENT_TYPE_NOT_EXIST    = 3&lt;/P&gt;&lt;P&gt;      OPERATION_NO_AUTHORIZATION = 4&lt;/P&gt;&lt;P&gt;      PARAMETER_ERROR            = 5&lt;/P&gt;&lt;P&gt;      X_ERROR                    = 6&lt;/P&gt;&lt;P&gt;      ENQUEUE_ERROR              = 7&lt;/P&gt;&lt;P&gt;      OTHERS                     = 8.&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;Please reply ASAP. Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jigar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 11:07:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-pdf-error-unrecognized-token/m-p/2920682#M687756</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T11:07:24Z</dc:date>
    </item>
  </channel>
</rss>

