<?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: Problem sending pdf file in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-sending-pdf-file/m-p/1081608#M97987</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;Once you are ready with pdf data in an internal table try to use the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count the number of lines in an internal table and store them in tab_lines&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR objpack-transf_bin.&lt;/P&gt;&lt;P&gt;objpack-transf_bin = 'X'.&lt;/P&gt;&lt;P&gt;objpack-head_start = 0.&lt;/P&gt;&lt;P&gt;objpack-head_num   = 0.&lt;/P&gt;&lt;P&gt;objpack-body_start = 0.&lt;/P&gt;&lt;P&gt;objpack-body_num   = tab_lines.&lt;/P&gt;&lt;P&gt;objpack-doc_type   = 'pdf'.&lt;/P&gt;&lt;P&gt;objpack-doc_size   = tab_lines * 255.&lt;/P&gt;&lt;P&gt;APPEND objpack.&lt;/P&gt;&lt;P&gt;CLEAR objpack.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;objbin: contains the attachment contents&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Sending the document&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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              = doc_chng&lt;/P&gt;&lt;P&gt;    put_in_outbox              = 'X'&lt;/P&gt;&lt;P&gt;    commit_work                = 'X'&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    packing_list               = objpack&lt;/P&gt;&lt;P&gt;    contents_txt               = objtxt&lt;/P&gt;&lt;P&gt;    contents_bin               = objbin&lt;/P&gt;&lt;P&gt;    receivers                  = reclist&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;    operation_no_authorization = 4&lt;/P&gt;&lt;P&gt;    OTHERS                     = 99.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;  SUBMIT rsconn01 WITH mode = 'INT' AND RETURN.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to give app. points if it helps your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Suman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Dec 2005 14:12:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-12-16T14:12:17Z</dc:date>
    <item>
      <title>Problem sending pdf file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-sending-pdf-file/m-p/1081600#M97979</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;I need to send a sapscript via email.&lt;/P&gt;&lt;P&gt;I convert the spool in pdf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I try to download the internal table with pdf content I'm able to create correctly the pdf file on my pc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Insted, if  I send the contet of internal table with the pdf data via email, an error occured when I try to open the attached pdf file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;enzo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2005 11:39:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-sending-pdf-file/m-p/1081600#M97979</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-16T11:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem sending pdf file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-sending-pdf-file/m-p/1081601#M97980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; This below code may help you in case:&lt;/P&gt;&lt;P&gt;  DATA WA_OBJBIN LIKE SOLISTI1.&lt;/P&gt;&lt;P&gt;  DESCRIBE TABLE OBJTXT LINES PDFLINES.&lt;/P&gt;&lt;P&gt;*-- A funtion module to convert otf to pdf format&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                = PDFLINES&lt;/P&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;P&gt;     LEN_OUT                = PDFLINES&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      CONTENT_IN            = OBJTXT&lt;/P&gt;&lt;P&gt;      CONTENT_OUT           = OBJBIN&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;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;  DESCRIBE TABLE OBJBIN LINES PDFLINES.&lt;/P&gt;&lt;P&gt;  DESCRIBE TABLE OBJTXT LINES TAB_LINES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*-- a perform to do the email&lt;/P&gt;&lt;P&gt;*--   creation of the entry for the compressed document&lt;/P&gt;&lt;P&gt;  CLEAR OBJPACK-TRANSF_BIN.&lt;/P&gt;&lt;P&gt;  OBJPACK-HEAD_START = 1.&lt;/P&gt;&lt;P&gt;  OBJPACK-HEAD_NUM = 0.&lt;/P&gt;&lt;P&gt;  OBJPACK-BODY_START = 1.&lt;/P&gt;&lt;P&gt;  OBJPACK-BODY_NUM = TAB_LINES.&lt;/P&gt;&lt;P&gt;  OBJPACK-DOC_TYPE = 'RAW'.&lt;/P&gt;&lt;P&gt;  OBJPACK-DOC_SIZE = TAB_LINES * 255.&lt;/P&gt;&lt;P&gt;  APPEND OBJPACK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*-- creation of the entry for the attachment&lt;/P&gt;&lt;P&gt;  CLEAR OBJPACK.&lt;/P&gt;&lt;P&gt;  OBJPACK-TRANSF_BIN = 'X'.&lt;/P&gt;&lt;P&gt;  OBJPACK-HEAD_START = 1.&lt;/P&gt;&lt;P&gt;  OBJPACK-HEAD_NUM = 0.&lt;/P&gt;&lt;P&gt;  OBJPACK-BODY_START = 1.&lt;/P&gt;&lt;P&gt;  OBJPACK-BODY_NUM = PDFLINES.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     objpack-objname =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  OBJPACK-OBJ_DESCR = '%PDF-FILE.PDF'.&lt;/P&gt;&lt;P&gt;  OBJPACK-DOC_TYPE = 'PDF'.&lt;/P&gt;&lt;P&gt;  OBJPACK-DOC_SIZE = PDFLINES * 255.&lt;/P&gt;&lt;P&gt;  APPEND OBJPACK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*-- populating the t_receivers with mail address&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; READ TABLE t_adr6 INDEX 1.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF NOT T_ADR6[] IS INITIAL.&lt;/P&gt;&lt;P&gt;    LOOP AT T_ADR6.&lt;/P&gt;&lt;P&gt;      T_RECEIVERS-RECEIVER = T_ADR6-SMTP_ADDR.&lt;/P&gt;&lt;P&gt;      T_RECEIVERS-REC_TYPE = 'U'.&lt;/P&gt;&lt;P&gt;      APPEND T_RECEIVERS.&lt;/P&gt;&lt;P&gt;      CLEAR T_RECEIVERS.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*-- Calling a function module to send an E-mail&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                    = DOC_DATA&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;    IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      SENT_TO_ALL                      =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      NEW_OBJECT_ID                    =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      PACKING_LIST                     = OBJPACK&lt;/P&gt;&lt;P&gt;     OBJECT_HEADER                     = OBJHEAD&lt;/P&gt;&lt;P&gt;     CONTENTS_BIN                      = OBJBIN&lt;/P&gt;&lt;P&gt;     CONTENTS_TXT                      = OBJTXT&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    contents_hex                      = objbin&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      OBJECT_PARA                      =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      OBJECT_PARB                      =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        RECEIVERS                        = T_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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  It may help you.&lt;/P&gt;&lt;P&gt;  try to rectify the mistake that you have in your program by checking this sample code....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2005 12:33:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-sending-pdf-file/m-p/1081601#M97980</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-16T12:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem sending pdf file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-sending-pdf-file/m-p/1081602#M97981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Enzo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. There can be many possible causes for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. a) Checkout the SCOT settings&lt;/P&gt;&lt;P&gt;      (basis team may help u out)&lt;/P&gt;&lt;P&gt;   b) In ur pgoram code,&lt;/P&gt;&lt;P&gt;      mention attachment type as 'PDF'&lt;/P&gt;&lt;P&gt;      instead of 'BIN'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2005 12:44:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-sending-pdf-file/m-p/1081602#M97981</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-16T12:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem sending pdf file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-sending-pdf-file/m-p/1081603#M97982</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;I'm using the PDF type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More, I have opened the 2 pdf file on my pc:&lt;/P&gt;&lt;P&gt;one downloaded with download FM,&lt;/P&gt;&lt;P&gt;one downloaded from the email.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first one opens normaly, the other no.&lt;/P&gt;&lt;P&gt;I try to open they with a notepad.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have seen that in the attached file missing some rows (many, eg. the line with EOF) that are present in the file downloaded with FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does it suggest nothing to anyone?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye&lt;/P&gt;&lt;P&gt;enzo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2005 13:55:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-sending-pdf-file/m-p/1081603#M97982</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-16T13:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem sending pdf file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-sending-pdf-file/m-p/1081604#M97983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can you open a Pdf file with Notepad.&lt;/P&gt;&lt;P&gt;i don't know,&lt;/P&gt;&lt;P&gt;check out some problem lies in mail attachment...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2005 14:00:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-sending-pdf-file/m-p/1081604#M97983</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-16T14:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem sending pdf file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-sending-pdf-file/m-p/1081605#M97984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Enzo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also try this.. it is a Table entry but this is usually done by BASIS..&lt;/P&gt;&lt;P&gt;TABLE: SXSERV&lt;/P&gt;&lt;P&gt;KEY: NODE = INTIMAL, ADDR_TYPE = INT&lt;/P&gt;&lt;P&gt;change the fields CONVERT_S, CONVERT_L, CONVERT_O, and CONVERT_T to 'PDF'.&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;Suresh Datti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2005 14:04:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-sending-pdf-file/m-p/1081605#M97984</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2005-12-16T14:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem sending pdf file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-sending-pdf-file/m-p/1081606#M97985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I open the pdf with a program named ConText is an simple text editor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2005 14:04:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-sending-pdf-file/m-p/1081606#M97985</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-16T14:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem sending pdf file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-sending-pdf-file/m-p/1081607#M97986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suresh,&lt;/P&gt;&lt;P&gt;I saw the table SXSERV, but there aren't the fields you said to change?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2005 14:10:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-sending-pdf-file/m-p/1081607#M97986</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-16T14:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem sending pdf file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-sending-pdf-file/m-p/1081608#M97987</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;Once you are ready with pdf data in an internal table try to use the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count the number of lines in an internal table and store them in tab_lines&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR objpack-transf_bin.&lt;/P&gt;&lt;P&gt;objpack-transf_bin = 'X'.&lt;/P&gt;&lt;P&gt;objpack-head_start = 0.&lt;/P&gt;&lt;P&gt;objpack-head_num   = 0.&lt;/P&gt;&lt;P&gt;objpack-body_start = 0.&lt;/P&gt;&lt;P&gt;objpack-body_num   = tab_lines.&lt;/P&gt;&lt;P&gt;objpack-doc_type   = 'pdf'.&lt;/P&gt;&lt;P&gt;objpack-doc_size   = tab_lines * 255.&lt;/P&gt;&lt;P&gt;APPEND objpack.&lt;/P&gt;&lt;P&gt;CLEAR objpack.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;objbin: contains the attachment contents&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Sending the document&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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              = doc_chng&lt;/P&gt;&lt;P&gt;    put_in_outbox              = 'X'&lt;/P&gt;&lt;P&gt;    commit_work                = 'X'&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    packing_list               = objpack&lt;/P&gt;&lt;P&gt;    contents_txt               = objtxt&lt;/P&gt;&lt;P&gt;    contents_bin               = objbin&lt;/P&gt;&lt;P&gt;    receivers                  = reclist&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;    operation_no_authorization = 4&lt;/P&gt;&lt;P&gt;    OTHERS                     = 99.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;  SUBMIT rsconn01 WITH mode = 'INT' AND RETURN.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to give app. points if it helps your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Suman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2005 14:12:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-sending-pdf-file/m-p/1081608#M97987</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-16T14:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problem sending pdf file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-sending-pdf-file/m-p/1081609#M97988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Enzo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What version are you on? I am on 47 and used this very table to fix our PDF email issue..&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;Suresh Datti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2005 14:59:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-sending-pdf-file/m-p/1081609#M97988</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2005-12-16T14:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problem sending pdf file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-sending-pdf-file/m-p/1081610#M97989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suresh,&lt;/P&gt;&lt;P&gt;I'm on a 4.6C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2005 11:09:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-sending-pdf-file/m-p/1081610#M97989</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-19T11:09:43Z</dc:date>
    </item>
  </channel>
</rss>

