<?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: Error while opening the ADOBE FORM via mail in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-opening-the-adobe-form-via-mail/m-p/8020925#M1608721</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;looks good so far.&lt;/P&gt;&lt;P&gt;Did you try to save the pdf into a file instead of sending it? Maybe your smartfform is corrupt?!&lt;/P&gt;&lt;P&gt;Here is another example of what you are trying. Maybe you can compare yours to that:&lt;/P&gt;&lt;P&gt;&lt;A href="http://mysapcom.weebly.com/1/archives/06-2009/1.html" target="test_blank"&gt;http://mysapcom.weebly.com/1/archives/06-2009/1.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Oliver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Aug 2011 06:02:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-08-02T06:02:47Z</dc:date>
    <item>
      <title>Error while opening the ADOBE FORM via mail</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-opening-the-adobe-form-via-mail/m-p/8020922#M1608718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi to all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a program to attached ADOBE FORM to mail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I execute the program, it sends ADOBE FORM to my mail ID successfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I open my mail and try to open attached ADOBE FORM, it gives error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ADOBE READER COULD NOT OPEN u2018PDF FORM (1). PDFu2019 because it is either not a supported file type or because the file has been damaged ( for example, it was sent as an email attached and wasnu2019t correctly decoded).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please can any tell me, what the problem is and what the solution is for that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I shall be thankful to you for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavneet Rana&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: pavneet rana on Aug 1, 2011 2:22 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2011 11:59:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-opening-the-adobe-form-via-mail/m-p/8020922#M1608718</guid>
      <dc:creator>pavneet_rana</dc:creator>
      <dc:date>2011-08-01T11:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Error while opening the ADOBE FORM via mail</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-opening-the-adobe-form-via-mail/m-p/8020923#M1608719</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;usually you have to attach the file in XSTRING format. Did you do this?&lt;/P&gt;&lt;P&gt;Post your code. Maybe this helps to find the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Oliver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2011 12:56:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-opening-the-adobe-form-via-mail/m-p/8020923#M1608719</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-01T12:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: Error while opening the ADOBE FORM via mail</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-opening-the-adobe-form-via-mail/m-p/8020924#M1608720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below is the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;  l_fm_name         TYPE rs38l_fnam,&lt;/P&gt;&lt;P&gt;   l_formname   TYPE fpname VALUE 'ZTESTF1' ,&lt;/P&gt;&lt;P&gt;  fp_docparams      TYPE sfpdocparams,&lt;/P&gt;&lt;P&gt;  FP_FORMOUTPUT     TYPE FPFORMOUTPUT,&lt;/P&gt;&lt;P&gt;  fp_outputparams   TYPE sfpoutputparams.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:  I_ATT_CONTENT_HEX  type SOLIX_TAB.&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;P&gt;data: st  TYPE  ZTABFM11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: it type table of sflight.&lt;/P&gt;&lt;P&gt;data: wa like LINE OF it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: wa_st like LINE OF ST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fp_docparams-langu   =      'E'.&lt;/P&gt;&lt;P&gt;  fp_docparams-country =      'US'.&lt;/P&gt;&lt;P&gt;  fp_docparams-fillable =      'X'.&lt;/P&gt;&lt;P&gt;  fp_outputparams-nodialog = 'X'.&lt;/P&gt;&lt;P&gt;  fp_outputparams-preview =   'X'.&lt;/P&gt;&lt;P&gt;  fp_outputparams-device   =  'LP01'.&lt;/P&gt;&lt;P&gt;  fp_outputparams-getpdf  =   'X' .&lt;/P&gt;&lt;P&gt;  fp_outputparams-dest   =    'LP01'.&lt;/P&gt;&lt;P&gt;  fp_outputparams-reqimm  =   'X'.&lt;/P&gt;&lt;P&gt;  fp_outputparams-reqdel  =   'X' .&lt;/P&gt;&lt;P&gt;  fp_outputparams-xfpoutdev = 'LP01'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_name     = l_formname&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      e_funcname = l_fm_name.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  E_INTERFACE_TYPE           =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'FP_JOB_OPEN'&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      ie_outputparams = fp_outputparams&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      cancel          = 1&lt;/P&gt;&lt;P&gt;      usage_error     = 2&lt;/P&gt;&lt;P&gt;      system_error    = 3&lt;/P&gt;&lt;P&gt;      internal_error  = 4&lt;/P&gt;&lt;P&gt;      OTHERS          = 5.&lt;/P&gt;&lt;P&gt;select * from sflight into TABLE it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at it into wa.&lt;/P&gt;&lt;P&gt;    wa_st-CARRID = wa-CARRID.&lt;/P&gt;&lt;P&gt;    wa_st-CONNID = wa-CONNID.&lt;/P&gt;&lt;P&gt;    wa_st-FLDATE = wa-FLDATE .&lt;/P&gt;&lt;P&gt;    wa_st-PLANETYPE   = wa-PLANETYPE.&lt;/P&gt;&lt;P&gt;    append wa_st to st.&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION l_fm_name&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      /1bcdwb/docparams  = fp_docparams&lt;/P&gt;&lt;P&gt;          st               = st&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      /1BCDWB/FORMOUTPUT = FP_FORMOUTPUT&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      usage_error        = 1&lt;/P&gt;&lt;P&gt;      system_error       = 2&lt;/P&gt;&lt;P&gt;      internal_error     = 3&lt;/P&gt;&lt;P&gt;      OTHERS             = 4&lt;/P&gt;&lt;P&gt;      .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   CALL FUNCTION 'FP_JOB_CLOSE'&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;    E_RESULT             = result&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;     usage_error          = 1&lt;/P&gt;&lt;P&gt;     system_error         = 2&lt;/P&gt;&lt;P&gt;     internal_error       = 3&lt;/P&gt;&lt;P&gt;     OTHERS               = 4&lt;/P&gt;&lt;P&gt;             .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      BUFFER                = FP_FORMOUTPUT-PDF&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  APPEND_TO_TABLE       = ' '&lt;/P&gt;&lt;/LI&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;  OUTPUT_LENGTH         =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      BINARY_TAB            = I_ATT_CONTENT_HEX  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS cl_bcs DEFINITION LOAD.&lt;/P&gt;&lt;P&gt;  DATA:&lt;/P&gt;&lt;P&gt;  lo_send_request TYPE REF TO cl_bcs VALUE IS INITIAL.&lt;/P&gt;&lt;P&gt;  lo_send_request = cl_bcs=&amp;gt;create_persistent( ).&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Message body and subject&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DATA:&lt;/P&gt;&lt;P&gt;  lt_message_body TYPE bcsy_text VALUE IS INITIAL,&lt;/P&gt;&lt;P&gt;  lo_document TYPE REF TO cl_document_bcs VALUE IS INITIAL.&lt;/P&gt;&lt;P&gt;  APPEND 'Dear,' TO lt_message_body.&lt;/P&gt;&lt;P&gt;  append ' ' to lt_message_body.&lt;/P&gt;&lt;P&gt;  APPEND 'Fill the details.'&lt;/P&gt;&lt;P&gt;  TO lt_message_body.&lt;/P&gt;&lt;P&gt;  append ' ' to lt_message_body.&lt;/P&gt;&lt;P&gt;  APPEND 'Thank You,' TO lt_message_body.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  lo_document = cl_document_bcs=&amp;gt;create_document(&lt;/P&gt;&lt;P&gt;  i_type = 'RAW'&lt;/P&gt;&lt;P&gt;  i_text = lt_message_body&lt;/P&gt;&lt;P&gt;  i_subject = 'flight details' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: lx_document_bcs TYPE REF TO cx_document_bcs VALUE IS INITIAL.&lt;/P&gt;&lt;P&gt;  TRY.&lt;/P&gt;&lt;P&gt;      lo_document-&amp;gt;add_attachment(&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;      i_attachment_type = 'PDF'&lt;/P&gt;&lt;P&gt;      i_attachment_subject = 'flight details'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I_ATTACHMENT_SIZE =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I_ATTACHMENT_LANGUAGE = SPACE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I_ATT_CONTENT_TEXT =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I_ATTACHMENT_HEADER =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      I_ATT_CONTENT_HEX  = I_ATT_CONTENT_HEX  ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CATCH cx_document_bcs INTO lx_document_bcs.&lt;/P&gt;&lt;P&gt;  ENDTRY.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Add attachment&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Pass the document to send request&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  lo_send_request-&amp;gt;set_document( lo_document ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create sender&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA:&lt;/P&gt;&lt;P&gt;  lo_sender TYPE REF TO if_sender_bcs VALUE IS INITIAL,&lt;/P&gt;&lt;P&gt;  l_send type ADR6-SMTP_ADDR value 'mail id '.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; lo_sender = cl_cam_address_bcs=&amp;gt;create_internet_address( l_send ).&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  lo_sender = cl_sapuser_bcs=&amp;gt;create( sy-uname ).&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Set sender&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  lo_send_request-&amp;gt;set_sender(&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;  i_sender = lo_sender ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create recipient&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DATA:&lt;/P&gt;&lt;P&gt;  lo_recipient TYPE REF TO if_recipient_bcs VALUE IS INITIAL.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; lo_recipient = cl_sapuser_bcs=&amp;gt;create( sy-uname ).&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  lo_recipient = cl_cam_address_bcs=&amp;gt;create_internet_address( l_send ).&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;Set recipient&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  lo_send_request-&amp;gt;add_recipient(&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;  i_recipient = lo_recipient&lt;/P&gt;&lt;P&gt;  i_express = 'X' ).&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; lo_send_request-&amp;gt;add_recipient(&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; i_recipient = lo_recipient&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; i_express = 'X' ).&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Send email&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DATA: lv_sent_to_all(1) TYPE c VALUE IS INITIAL.&lt;/P&gt;&lt;P&gt;  lo_send_request-&amp;gt;send(&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;  i_with_error_screen = 'X'&lt;/P&gt;&lt;P&gt;  RECEIVING&lt;/P&gt;&lt;P&gt;  result = lv_sent_to_all ).&lt;/P&gt;&lt;P&gt;  COMMIT WORK.&lt;/P&gt;&lt;P&gt;  message 'Form sucessfuly send to person' type 'I'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plesase can any one, provide the soultion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i shall be thankful toy you for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;pavneet rana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 04:27:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-opening-the-adobe-form-via-mail/m-p/8020924#M1608720</guid>
      <dc:creator>pavneet_rana</dc:creator>
      <dc:date>2011-08-02T04:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: Error while opening the ADOBE FORM via mail</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-opening-the-adobe-form-via-mail/m-p/8020925#M1608721</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;looks good so far.&lt;/P&gt;&lt;P&gt;Did you try to save the pdf into a file instead of sending it? Maybe your smartfform is corrupt?!&lt;/P&gt;&lt;P&gt;Here is another example of what you are trying. Maybe you can compare yours to that:&lt;/P&gt;&lt;P&gt;&lt;A href="http://mysapcom.weebly.com/1/archives/06-2009/1.html" target="test_blank"&gt;http://mysapcom.weebly.com/1/archives/06-2009/1.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Oliver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 06:02:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-opening-the-adobe-form-via-mail/m-p/8020925#M1608721</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-02T06:02:47Z</dc:date>
    </item>
  </channel>
</rss>

