<?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 Urgent : - Some Error in code while sending attachment thru SAP in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-some-error-in-code-while-sending-attachment-thru-sap/m-p/1012174#M79145</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hiii,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have posted a problem in the following thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="66408"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at some extent Surpreet is able to solve  the problem, but now we r stuck to this that email is coming with attachment but not the exact that i am attching and trying to send the mail.&lt;/P&gt;&lt;P&gt;can any one check this code and rectify if any error is there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

REPORT YBALTEST.

DATA: gd_cnt TYPE i,
gd_sent_all(1) TYPE c,
gd_doc_data LIKE sodocchgi1,
gd_error TYPE sy-subrc.


DATA: it_message LIKE solisti1 OCCURS 0 WITH HEADER LINE,
it_packing_list LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
it_contents LIKE solisti1 OCCURS 0 WITH HEADER LINE,
it_receivers LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
it_attachment LIKE solisti1 OCCURS 0 WITH HEADER LINE.

* Binary store for PDF
DATA: BEGIN OF it_pdf_output OCCURS 0,
row(255).
DATA: END OF it_pdf_output.

START-OF-SELECTION.
perform send_email_message .

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Form SEND_EMAIL_MESSAGE
*&amp;amp;---------------------------------------------------------------------*
* Send email message
*----------------------------------------------------------------------*
FORM send_email_message.
DATA: tab_lines LIKE SY-TABIX.

CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = 'C:test.pdf'
filetype = 'BIN'
TABLES
data_tab = it_pdf_output .

* Populate the subject/generic message attributes
concatenate 'Attached is the '
' are waiting for.' into it_message.
append it_message.

DESCRIBE TABLE it_message LINES tab_lines.
READ TABLE it_message INDEX tab_lines.

gd_doc_data-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( it_message ).
gd_doc_data-obj_langu = sy-langu.
gd_doc_data-obj_name = 'SENDFILE'.
gd_doc_data-obj_descr = 'Attachement'.
gd_doc_data-sensitivty = 'O'.

describe table it_pdf_output lines tab_lines.
* Describe the body of the message

CLEAR it_packing_list-transf_bin.
it_packing_list-head_start = 1.
it_packing_list-head_num = 0.
it_packing_list-body_start = 1.
it_packing_list-doc_type = 'RAW'.
it_packing_list-body_num = tab_lines.
APPEND it_packing_list.

describe table it_pdf_output lines tab_lines.

CLEAR it_packing_list.
it_packing_list-transf_bin = 'X'.
it_packing_list-head_start = 1.
it_packing_list-head_num = 1.
it_packing_list-body_start = 1.
it_packing_list-doc_type = 'RAW'.
it_packing_list-body_num = tab_lines.
it_packing_list-doc_size = tab_lines * 255.
it_packing_list-OBJ_DESCR = ' object '.
it_packing_list-obj_name = 'MAIL'.
APPEND it_packing_list.

it_receivers-receiver = 'sbal@.com'.
it_receivers-rec_type = 'U'.
it_receivers-com_type = 'INT'.
APPEND it_receivers .

* Call the FM to post the message to SAPMAIL
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = gd_doc_data
* put_in_outbox = 'X'
commit_work = 'X'
* IMPORTING
* sent_to_all = gd_sent_all
TABLES
packing_list = it_packing_list
contents_txt = it_message
contents_bin = it_pdf_output
receivers = it_receivers
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
ENDFORM. " SEND_EMAIL_MESSAGE&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;abhishek suppal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Sep 2005 03:01:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-09-20T03:01:42Z</dc:date>
    <item>
      <title>Urgent : - Some Error in code while sending attachment thru SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-some-error-in-code-while-sending-attachment-thru-sap/m-p/1012174#M79145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hiii,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have posted a problem in the following thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="66408"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at some extent Surpreet is able to solve  the problem, but now we r stuck to this that email is coming with attachment but not the exact that i am attching and trying to send the mail.&lt;/P&gt;&lt;P&gt;can any one check this code and rectify if any error is there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

REPORT YBALTEST.

DATA: gd_cnt TYPE i,
gd_sent_all(1) TYPE c,
gd_doc_data LIKE sodocchgi1,
gd_error TYPE sy-subrc.


DATA: it_message LIKE solisti1 OCCURS 0 WITH HEADER LINE,
it_packing_list LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
it_contents LIKE solisti1 OCCURS 0 WITH HEADER LINE,
it_receivers LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
it_attachment LIKE solisti1 OCCURS 0 WITH HEADER LINE.

* Binary store for PDF
DATA: BEGIN OF it_pdf_output OCCURS 0,
row(255).
DATA: END OF it_pdf_output.

START-OF-SELECTION.
perform send_email_message .

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Form SEND_EMAIL_MESSAGE
*&amp;amp;---------------------------------------------------------------------*
* Send email message
*----------------------------------------------------------------------*
FORM send_email_message.
DATA: tab_lines LIKE SY-TABIX.

CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = 'C:test.pdf'
filetype = 'BIN'
TABLES
data_tab = it_pdf_output .

* Populate the subject/generic message attributes
concatenate 'Attached is the '
' are waiting for.' into it_message.
append it_message.

DESCRIBE TABLE it_message LINES tab_lines.
READ TABLE it_message INDEX tab_lines.

gd_doc_data-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( it_message ).
gd_doc_data-obj_langu = sy-langu.
gd_doc_data-obj_name = 'SENDFILE'.
gd_doc_data-obj_descr = 'Attachement'.
gd_doc_data-sensitivty = 'O'.

describe table it_pdf_output lines tab_lines.
* Describe the body of the message

CLEAR it_packing_list-transf_bin.
it_packing_list-head_start = 1.
it_packing_list-head_num = 0.
it_packing_list-body_start = 1.
it_packing_list-doc_type = 'RAW'.
it_packing_list-body_num = tab_lines.
APPEND it_packing_list.

describe table it_pdf_output lines tab_lines.

CLEAR it_packing_list.
it_packing_list-transf_bin = 'X'.
it_packing_list-head_start = 1.
it_packing_list-head_num = 1.
it_packing_list-body_start = 1.
it_packing_list-doc_type = 'RAW'.
it_packing_list-body_num = tab_lines.
it_packing_list-doc_size = tab_lines * 255.
it_packing_list-OBJ_DESCR = ' object '.
it_packing_list-obj_name = 'MAIL'.
APPEND it_packing_list.

it_receivers-receiver = 'sbal@.com'.
it_receivers-rec_type = 'U'.
it_receivers-com_type = 'INT'.
APPEND it_receivers .

* Call the FM to post the message to SAPMAIL
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = gd_doc_data
* put_in_outbox = 'X'
commit_work = 'X'
* IMPORTING
* sent_to_all = gd_sent_all
TABLES
packing_list = it_packing_list
contents_txt = it_message
contents_bin = it_pdf_output
receivers = it_receivers
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
ENDFORM. " SEND_EMAIL_MESSAGE&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;abhishek suppal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2005 03:01:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-some-error-in-code-while-sending-attachment-thru-sap/m-p/1012174#M79145</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-20T03:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent : - Some Error in code while sending attachment thru SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-some-error-in-code-while-sending-attachment-thru-sap/m-p/1012175#M79146</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;one error i left &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;describe table it_pdf_output lines tab_lines.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Describe the body of the message&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR it_packing_list-transf_bin.&lt;/P&gt;&lt;P&gt;it_packing_list-head_start = 1.&lt;/P&gt;&lt;P&gt;it_packing_list-head_num = 0.&lt;/P&gt;&lt;P&gt;it_packing_list-body_start = 1.&lt;/P&gt;&lt;P&gt;it_packing_list-doc_type = 'RAW'.&lt;/P&gt;&lt;P&gt;it_packing_list-body_num = tab_lines.&lt;/P&gt;&lt;P&gt;APPEND it_packing_list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;describe table it_pdf_output lines tab_lines&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete first describe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;although it will not remove the error we are facing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2005 03:10:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-some-error-in-code-while-sending-attachment-thru-sap/m-p/1012175#M79146</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-20T03:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent : - Some Error in code while sending attachment thru SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-some-error-in-code-while-sending-attachment-thru-sap/m-p/1012176#M79147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What are you getting as the attachment? Is it just unreadable or some other pdf document?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2005 03:14:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-some-error-in-code-while-sending-attachment-thru-sap/m-p/1012176#M79147</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-20T03:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent : - Some Error in code while sending attachment thru SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-some-error-in-code-while-sending-attachment-thru-sap/m-p/1012177#M79148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just unreadable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;#128;¥ä&amp;#153;&amp;#132;ã&amp;#132;­ã&amp;#152;®â&amp;#148;&amp;#141;î&amp;#143;¢í&amp;#143;&amp;#143;à¨&amp;#141;ã&amp;#136;±ã&amp;#140;¸ã&amp;#128; æ¼ æ©¢ã° â¼¼æ¥&amp;#140;æ&amp;#149;®ç&amp;#137;¡ç©©æ&amp;#145;¥ã&amp;#132; ä°¯ã&amp;#140; ã&amp;#148;²ã&amp;#152;²â¼¶â&amp;#129;&amp;#143;ã&amp;#136;±ã&amp;#156;¸ä&amp;#148;¯ã&amp;#144; ã¤·ã&amp;#144;´ä¸¯ã&amp;#136; â¼¹â&amp;#129;&amp;#148;ã¤²ã&amp;#148;¹ã&amp;#128;´ä ¯å¬ ã&amp;#132; ã&amp;#152;µâ&amp;#128;·ã&amp;#136;¹å´¶ã¸¾æ&amp;#148;&amp;#141;æ&amp;#145;®æ&amp;#137;¯àµªâ&amp;#128; â&amp;#128; â&amp;#128; â&amp;#128; â&amp;#128; à¨&amp;#141;ç&amp;#137;¸æ&amp;#153;¥à¨&amp;#141;ã&amp;#136;±ã&amp;#140;¸ã&amp;#152; à´±ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#128;°ã&amp;#132;°â&amp;#128;¶ã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#136;°ã¤¶â&amp;#128;¹ã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#136;°ã&amp;#140;¸â&amp;#128;·ã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#140;°ã&amp;#156;±â&amp;#128;³ã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#140;°ã&amp;#140;³â&amp;#128;²ã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#140;°ã µâ&amp;#128;°ã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#140;°ã&amp;#132;¶â&amp;#128;¸ã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#140;°ã&amp;#128;¸â&amp;#128;²ã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#140;°ã ¸â&amp;#128;°ã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#152;°ã&amp;#148;µâ&amp;#128;±ã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#136;´ã&amp;#144;µâ&amp;#128;¹ã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#136;´ã&amp;#136;¶â&amp;#128;²ã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#136;´ã&amp;#128;·â&amp;#128;³ã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#136;´ã&amp;#152;¸â&amp;#128;¶ã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#136;´ã&amp;#136;¹â&amp;#128;°ã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#140;´ã °â&amp;#128;´ã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#140;´ã&amp;#140;±â&amp;#128;¸ã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#140;´ã&amp;#144;³â&amp;#128;µã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#140;´ã&amp;#132;µâ&amp;#128;¸ã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®&lt;/P&gt;&lt;P&gt;ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#140;´ã&amp;#156;µâ&amp;#128;²ã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#140;´ã&amp;#144;·â&amp;#128;¸ã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#140;´ã&amp;#144;¹â&amp;#128;µã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#144;´ã&amp;#128;±â&amp;#128;¶ã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#144;´ã&amp;#152;±â&amp;#128;°ã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#144;´ã&amp;#140;³â&amp;#128;¶ã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#144;´ã&amp;#140;´â&amp;#128;¹ã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#144;´ã¤´â&amp;#128;²ã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#144;´ã¤µâ&amp;#128;´ã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#144;´ã&amp;#140;¶â&amp;#128;¶ã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#144;´ã&amp;#152;·â&amp;#128;´ã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#144;´ã&amp;#132;¸â&amp;#128;¸ã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#148;´ã&amp;#136;°â&amp;#128;´ã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#148;´ã&amp;#148;²â&amp;#128;°ã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#148;´ã ³â&amp;#128;¶ã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#148;´ã&amp;#144;´â&amp;#128;°ã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#148;´ã&amp;#156;µâ&amp;#128;·ã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#148;´ã&amp;#140;¶â&amp;#128;±ã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#148;´ã ¶â&amp;#128;µã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#148;´ã&amp;#140;·â&amp;#128;¹ã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#148;´ã&amp;#128;¹â&amp;#128;·ã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#148;´ã&amp;#152;¹â&amp;#128;±ã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#152;´ã&amp;#128;²â&amp;#128;¸ã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#152;´ã&amp;#152;²â&amp;#128;²ã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#152;´ã&amp;#128;µâ&amp;#128;·ã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#152;´ã&amp;#152;µ&lt;/P&gt;&lt;P&gt;â&amp;#128;±ã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#152;´ã&amp;#140;·â&amp;#128;¶ã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#152;´ã¤·â&amp;#128;°ã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#152;´ã&amp;#152;¹â&amp;#128;²ã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#156;´ã&amp;#132;°â&amp;#128;¶ã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#156;´ã&amp;#156;°â&amp;#128;°ã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#156;´ã&amp;#136;±â&amp;#128;´ã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#156;´ã ²â&amp;#128;¸ã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#156;´ã&amp;#144;³â&amp;#128;²ã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#156;´ã&amp;#156;´â&amp;#128;¸ã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#156;´ã&amp;#140;µâ&amp;#128;²ã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#156;´ã&amp;#140;·â&amp;#128;·ã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#156;´ã¤·â&amp;#128;±ã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#156;´ã&amp;#144;¸â&amp;#128;µã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#156;´ã¤¸â&amp;#128;¹ã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#136;°ã¤´â&amp;#128;³ã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ã&amp;#128;&amp;#138;ã&amp;#128;°ã&amp;#128;°ã&amp;#132;°ã&amp;#152;µâ&amp;#128;·ã&amp;#128;°ã&amp;#128;°â&amp;#128;°àµ®ç&amp;#144;&amp;#138;æ&amp;#133;²æ±©ç&amp;#137;¥à¨&amp;#141;ã°¼å&amp;#140;¯ç©©â&amp;#129;¥ã&amp;#140;±ã&amp;#144;´å&amp;#128;¯æ&amp;#149;²â&amp;#129;¶ã¤²ã&amp;#148;¹ã&amp;#156;²å ¯æ&amp;#149;&amp;#146;å&amp;#141;¦æµ´ã&amp;#136; ã¤´â¼³æ½&amp;#146;ç&amp;#145;¯ã&amp;#132; ã ²â&amp;#128;µâ&amp;#128;°â½&amp;#146;æ¹&amp;#133;ç&amp;#137;£ç&amp;#129;¹â&amp;#129;´ã&amp;#136;±ã&amp;#144;¸ã&amp;#128; å&amp;#136; ä¤¯æ&amp;#153;®â&amp;#129;¯ã&amp;#152;²â&amp;#128;³â&amp;#128;°â½&amp;#146;ä&amp;#145;&amp;#137;ã±&amp;#155;ã&amp;#137;&amp;#134;ã&amp;#132;·ã&amp;#128;µã&amp;#132;±ã&amp;#136;²ã&amp;#129;&amp;#134;ä&amp;#149;&amp;#130;ä&amp;#145;&amp;#131;ä&amp;#137;&amp;#132;ã&amp;#156;µä&amp;#132;³ä&amp;#140;¸ã&amp;#136;¹ã&amp;#132;°ã&amp;#136;±ä&amp;#152;±ã°¾ã&amp;#148;°ã¤°ä&amp;#140;±ã&amp;#129;&amp;#133;ã&amp;#141;&amp;#129;ä&amp;#140;¹ã&amp;#156;³ä&amp;#136;´ä&amp;#137;&amp;#129;ã&amp;#153;&amp;#130;ä&amp;#144;´ä&amp;#140;µã&amp;#156;·ä&amp;#145;&amp;#130;ã&amp;#141;&amp;#129;ä&amp;#153;&amp;#129;å´¾ã¸¾à¨&amp;#141;ç&amp;#145;³ç&amp;#137;¡ç¡´æ&amp;#149;²àµ¦ã&amp;#128;&amp;#138;&lt;/P&gt;&lt;P&gt;à¨&amp;#141;â&amp;#148;¥ä½&amp;#133;àµ&amp;#134;â&amp;#128;&amp;#138;â&amp;#128; â&amp;#128; â&amp;#128; â&amp;#128; â&amp;#128; â&amp;#128; â&amp;#128; â&amp;#128; â&amp;#128; â&amp;#128; â&amp;#128; â&amp;#128; à´ ã&amp;#132;&amp;#138;ã&amp;#144;³â&amp;#128;³â&amp;#128;°æ&amp;#137;¯ã±ªâ¼¼æ&amp;#149;&amp;#140;æ&amp;#157;®æ¡´ã  ã&amp;#132;²ä&amp;#140;¯ã&amp;#132; ã&amp;#136;³â¼·æ¥&amp;#134;ç&amp;#145;¬ç&amp;#137;¥ä&amp;#152;¯æ&amp;#133;¬æ&amp;#149;´æ&amp;#149;&amp;#132;æ½£æ&amp;#149;¤ä¤¯ã&amp;#132; ã&amp;#144;´â¼²â&amp;#129;&amp;#140;ã&amp;#140;±ã&amp;#132;±ä¼¯ã&amp;#132; ã¤²â¼µâ&amp;#129;&amp;#147;ã&amp;#148;¹ã¸¶ç&amp;#140;¾ç&amp;#137;´æ&amp;#133;¥àµ­#í&amp;#146;&amp;#156;é·¾å§&amp;#144;î&amp;#148;&amp;#152;å&amp;#145;­ï¼&amp;#137;á½&amp;#157;ï&amp;#137;¡ë&amp;#144;&amp;#145;ç&amp;#155;¿ï&amp;#135;¼##á¼½ì&amp;#138;&amp;#130;â&amp;#146;·ê&amp;#150;&amp;#147;â&amp;#142;&amp;#135;â&amp;#134;¦â®&amp;#141;æ&amp;#134;ºà®&amp;#140;í&amp;#142;&amp;#153;#ë&amp;#159;¼ë´­ ä&amp;#143;·ä¦&amp;#147;î&amp;#140;&amp;#136;ë½&amp;#137;ì&amp;#154;°Ø&amp;#137;æ&amp;#130;©ë¶£èµ¤è&amp;#140;¾é&amp;#157;&amp;#153;à·&amp;#141;å&amp;#135;&amp;#135;á®&amp;#128;à§ªê&amp;#153;«é&amp;#141;¢ë&amp;#145;&amp;#132;åª¸ì¯¨ä¶&amp;#148;â£&amp;#130;î­¡ä&amp;#157;&amp;#148;í&amp;#133;&amp;#134;î&amp;#147;®ä&amp;#147;&amp;#151;é¿¦ì½&amp;#155;æ­&amp;#158;á&amp;#138;&amp;#129;é®½î&amp;#139;&amp;#153;ä&amp;#141;&amp;#138;æ&amp;#159;¾ï&amp;#144;&amp;#137;ä&amp;#152;&amp;#154;î &amp;#130;ã¥ªæ±£ï&amp;#133;¯ç±½é¡&amp;#131;ç¨&amp;#149;âª&amp;#136;ä&amp;#144;»ê&amp;#137;&amp;#157;ç&amp;#132;&amp;#147;ï·&amp;#150;ä¤&amp;#152;à³®ä&amp;#159;&amp;#156;é§&amp;#130;ã&amp;#131;&amp;#141;è&amp;#143;©ä &amp;#131;æ¡¸î&amp;#132;¦â&amp;#155;³î&amp;#129;ºç©·ë&amp;#134;¿ä&amp;#138;¹ê&amp;#140;&amp;#141;êº&amp;#158;×¥æ­£ê&amp;#138;½îº&amp;#142;#çµ¥ì&amp;#135;&amp;#146;ë&amp;#128;&amp;#129;å&amp;#138;&amp;#146;í&amp;#152;£ê¸¤îªµã&amp;#143;¬ä®§î®ºä&amp;#137;&amp;#143;ã&amp;#149;´î´&amp;#141;ç®¨ä&amp;#148;&amp;#136;é²&amp;#157;ã&amp;#159;&amp;#134;ê&amp;#131;¬î&amp;#145;&amp;#141;ã®&amp;#129;å±¤#å&amp;#128;&amp;#139;é¡&amp;#131;æ­&amp;#142;å¯¶í&amp;#158;£ä&amp;#150;&amp;#149;à£ªå£&amp;#131;ä&amp;#152;&amp;#141;â¬&amp;#157;ç®²é¼¨í&amp;#157;&amp;#134;ä&amp;#156;½é´&amp;#148;ï&amp;#154;·ï&amp;#139;­é&amp;#131;¶ì&amp;#139;¥ç&amp;#140;&amp;#145;ë°&amp;#137;ë°´â&amp;#130;&amp;#135;à¹¸é±¤ä&amp;#129;&amp;#135;é®&amp;#139;æ®¢é&amp;#148;´ã&amp;#128;&amp;#138;ë&amp;#144;±ä&amp;#149;»ï±ªÚ&amp;#132;ì·&amp;#147;ç&amp;#148;&amp;#155;ë&amp;#138;¢æ¿ á¼&amp;#158;å·»ë&amp;#128;¸â&amp;#157;&amp;#154;ë¯&amp;#135;áµ¢æ&amp;#138;&amp;#143;î&amp;#128;&amp;#143;â¢®ï&amp;#129;¥ì£¦î&amp;#146;&amp;#141;ë¡¹ê&amp;#146;¼æ¾ é¢¹å&amp;#130;&amp;#139;äª&amp;#143;è¨¹è&amp;#141;&amp;#139;ê·&amp;#142;ä&amp;#137;½ì&amp;#129;&amp;#145;Ä&amp;#143;â­¤é»&amp;#151;î²±â­&amp;#137;æ&amp;#154;£ë²¨è&amp;#153;&amp;#132;î&amp;#130;»å&amp;#135;¾#è¾&amp;#141;ï®&amp;#148;&lt;/P&gt;&lt;P&gt;ê»&amp;#134;í&amp;#142;½î¼&amp;#158;ã¥&amp;#134;â½&amp;#155;ä&amp;#134;ºã¬¸ï&amp;#158;&amp;#156;ç&amp;#157;²ï¥&amp;#154;ã¤&amp;#147;ê&amp;#146;&amp;#156;è&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;&lt;/P&gt;&lt;P&gt;Message was edited by: Surpreet Singh Bal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2005 03:17:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-some-error-in-code-while-sending-attachment-thru-sap/m-p/1012177#M79148</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-20T03:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent : - Some Error in code while sending attachment thru SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-some-error-in-code-while-sending-attachment-thru-sap/m-p/1012178#M79149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes something like this is getting in the attachment file.&lt;/P&gt;&lt;P&gt;also surpreet i have done something&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CLEAR it_packing_list.
  it_packing_list-transf_bin = 'X'.
  it_packing_list-head_start = 1.
  it_packing_list-head_num = 1.
  it_packing_list-body_start = 1.
  it_packing_list-doc_type = 'RAW'.
  it_packing_list-body_num = tab_lines.
  it_packing_list-doc_size = tab_lines * 255.

*  it_packing_list-obj_descr = ' object '.

  it_packing_list-obj_descr = 'test.pdf'.
  it_packing_list-obj_name = 'MAIL'.
  APPEND it_packing_list.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by doing so we can get the exact file name, .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;abhishek suppal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2005 03:21:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-some-error-in-code-while-sending-attachment-thru-sap/m-p/1012178#M79149</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-20T03:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent : - Some Error in code while sending attachment thru SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-some-error-in-code-while-sending-attachment-thru-sap/m-p/1012179#M79150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does your internet email node allow PDF type documents to be sent? Check in transaction SCOT for the node, if *.pdf is there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2005 03:24:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-some-error-in-code-while-sending-attachment-thru-sap/m-p/1012179#M79150</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-20T03:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent : - Some Error in code while sending attachment thru SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-some-error-in-code-while-sending-attachment-thru-sap/m-p/1012180#M79151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes srinivas its there in scot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also surpreet i have just check it for txt file it is going well, but for pdf file its something like the above format, may be i thing i have just debug the function GUI_UPLOAD the internal table got all the data in binary format may be we have to see there....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;abhishek suppal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2005 03:29:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-some-error-in-code-while-sending-attachment-thru-sap/m-p/1012180#M79151</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-20T03:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent : - Some Error in code while sending attachment thru SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-some-error-in-code-while-sending-attachment-thru-sap/m-p/1012181#M79152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhisek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am pasting the exact code which will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT YBALTEST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: gd_cnt TYPE i,&lt;/P&gt;&lt;P&gt;gd_sent_all(1) TYPE c,&lt;/P&gt;&lt;P&gt;gd_doc_data LIKE sodocchgi1,&lt;/P&gt;&lt;P&gt;gd_error TYPE sy-subrc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA OBJBIN LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: it_message LIKE solisti1 OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;it_packing_list LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;it_contents LIKE solisti1 OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;it_receivers LIKE somlreci1 OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;it_attachment LIKE solisti1 OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Binary store for PDF&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA: BEGIN OF it_pdf_output OCCURS 0,&lt;/P&gt;&lt;P&gt;row(255).&lt;/P&gt;&lt;P&gt;DATA: END OF it_pdf_output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;perform send_email_message .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Form SEND_EMAIL_MESSAGE&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Send email message&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM send_email_message.&lt;/P&gt;&lt;P&gt;DATA: tab_lines LIKE SY-TABIX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;filename = 'C:\test.pdf'&lt;/P&gt;&lt;P&gt;filetype = 'BIN'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;data_tab = it_pdf_output .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Populate the subject/generic message attributes&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;concatenate 'Attached is the '&lt;/P&gt;&lt;P&gt;' are waiting for.' into it_message.&lt;/P&gt;&lt;P&gt;append it_message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE it_message LINES tab_lines.&lt;/P&gt;&lt;P&gt;READ TABLE it_message INDEX tab_lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gd_doc_data-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( it_message ).&lt;/P&gt;&lt;P&gt;gd_doc_data-obj_langu = sy-langu.&lt;/P&gt;&lt;P&gt;gd_doc_data-obj_name = 'SENDFILE'.&lt;/P&gt;&lt;P&gt;gd_doc_data-obj_descr = 'Attachement'.&lt;/P&gt;&lt;P&gt;gd_doc_data-sensitivty = 'O'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;describe table it_pdf_output lines tab_lines.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Describe the body of the message&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR it_packing_list-transf_bin.&lt;/P&gt;&lt;P&gt;it_packing_list-head_start = 1.&lt;/P&gt;&lt;P&gt;it_packing_list-head_num = 0.&lt;/P&gt;&lt;P&gt;it_packing_list-body_start = 1.&lt;/P&gt;&lt;P&gt;it_packing_list-doc_type = 'RAW'.&lt;/P&gt;&lt;P&gt;it_packing_list-body_num = tab_lines.&lt;/P&gt;&lt;P&gt;APPEND it_packing_list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_pdf_output.&lt;/P&gt;&lt;P&gt;move it_pdf_output-row to objbin-line.&lt;/P&gt;&lt;P&gt;append objbin.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;describe table objbin lines tab_lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR it_packing_list.&lt;/P&gt;&lt;P&gt;it_packing_list-transf_bin = 'X'.&lt;/P&gt;&lt;P&gt;it_packing_list-head_start = 1.&lt;/P&gt;&lt;P&gt;it_packing_list-head_num = 1.&lt;/P&gt;&lt;P&gt;it_packing_list-body_start = 1.&lt;/P&gt;&lt;P&gt;it_packing_list-doc_type = 'PDF'.&lt;/P&gt;&lt;P&gt;it_packing_list-body_num = tab_lines.&lt;/P&gt;&lt;P&gt;it_packing_list-doc_size = tab_lines * 255.&lt;/P&gt;&lt;P&gt;it_packing_list-OBJ_DESCR = ' object '.&lt;/P&gt;&lt;P&gt;*it_packing_list-obj_name = 'MAIL'.&lt;/P&gt;&lt;P&gt;APPEND it_packing_list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_receivers-receiver = 'sanjay.sinha@.com'.&lt;/P&gt;&lt;P&gt;it_receivers-rec_type = 'U'.&lt;/P&gt;&lt;P&gt;it_receivers-com_type = 'INT'.&lt;/P&gt;&lt;P&gt;APPEND it_receivers .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Call the FM to post the message to SAPMAIL&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 = gd_doc_data&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;put_in_outbox = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;commit_work = '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 = gd_sent_all&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;packing_list = it_packing_list&lt;/P&gt;&lt;P&gt;contents_txt = it_message&lt;/P&gt;&lt;P&gt;contents_bin = objbin&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;ENDFORM. " SEND_EMAIL_MESSAGE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2005 03:54:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-some-error-in-code-while-sending-attachment-thru-sap/m-p/1012181#M79152</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-20T03:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent : - Some Error in code while sending attachment thru SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-some-error-in-code-while-sending-attachment-thru-sap/m-p/1012182#M79153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes sanjay &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you are right i missed to put data in objbin-line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2005 03:58:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-some-error-in-code-while-sending-attachment-thru-sap/m-p/1012182#M79153</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-20T03:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent : - Some Error in code while sending attachment thru SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-some-error-in-code-while-sending-attachment-thru-sap/m-p/1012183#M79154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It will work even if you dont use OBJBIN . Just comment the following line in your original code -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_packing_list-obj_name = 'MAIL'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However it is a good practice to pass compatible / similar parameters to FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2005 04:07:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-some-error-in-code-while-sending-attachment-thru-sap/m-p/1012183#M79154</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-20T04:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent : - Some Error in code while sending attachment thru SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-some-error-in-code-while-sending-attachment-thru-sap/m-p/1012184#M79155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes it works,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;important point&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;doc_type = '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;thanks sanjay, abhi please close your both threads&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2005 05:38:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-some-error-in-code-while-sending-attachment-thru-sap/m-p/1012184#M79155</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-20T05:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent : - Some Error in code while sending attachment thru SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-some-error-in-code-while-sending-attachment-thru-sap/m-p/1012185#M79156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes surpreet&lt;/P&gt;&lt;P&gt;doc_type = 'PDF'&lt;/P&gt;&lt;P&gt;is the main thing&lt;/P&gt;&lt;P&gt;and also i have checked it for excel file putting&lt;/P&gt;&lt;P&gt;doc_type = 'XLS'&lt;/P&gt;&lt;P&gt;and for Word file&lt;/P&gt;&lt;P&gt;doc_type = 'DOC'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it works fine....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx sanjay and  surpreet for ur efforts&lt;/P&gt;&lt;P&gt;ya sure i am going to close both threads and reward the points..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;abhishek suppal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2005 06:02:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-some-error-in-code-while-sending-attachment-thru-sap/m-p/1012185#M79156</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-20T06:02:44Z</dc:date>
    </item>
  </channel>
</rss>

