<?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 SBWP save attachment in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sbwp-save-attachment/m-p/2013020#M411064</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On our SAP system i'm sending a mail to Business Workplace with an attachment. When I go to BW, I see the attachment, when I want to save it to file, it get's the proper name (which is coded in abap, see below)&lt;/P&gt;&lt;P&gt;But when I do exactly the same on another system at the client, it always get's the filename 'Untitled', while it should be 'example.csv'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our SAP system: SAP ERP Central Component 5.0&lt;/P&gt;&lt;P&gt;Client SAP system: BBPCRM 4.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code I used (for the attachment):&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
t_packing_list-transf_bin = 'X'.
t_packing_list-head_start = 1.
t_packing_list-head_num   = 1.
t_packing_list-body_start = 1.

DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
t_packing_list-doc_type   = 'CSV'.
t_packing_list-obj_descr  = 'example'.
t_packing_list-obj_name   = 'name'.
t_packing_list-doc_size   = t_packing_list-body_num * 255.
APPEND t_packing_list.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone an idea why it isn't working on 'BBPCRM 4.0'?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Mar 2007 10:15:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-05T10:15:20Z</dc:date>
    <item>
      <title>SBWP save attachment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sbwp-save-attachment/m-p/2013020#M411064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On our SAP system i'm sending a mail to Business Workplace with an attachment. When I go to BW, I see the attachment, when I want to save it to file, it get's the proper name (which is coded in abap, see below)&lt;/P&gt;&lt;P&gt;But when I do exactly the same on another system at the client, it always get's the filename 'Untitled', while it should be 'example.csv'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our SAP system: SAP ERP Central Component 5.0&lt;/P&gt;&lt;P&gt;Client SAP system: BBPCRM 4.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code I used (for the attachment):&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
t_packing_list-transf_bin = 'X'.
t_packing_list-head_start = 1.
t_packing_list-head_num   = 1.
t_packing_list-body_start = 1.

DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
t_packing_list-doc_type   = 'CSV'.
t_packing_list-obj_descr  = 'example'.
t_packing_list-obj_name   = 'name'.
t_packing_list-doc_size   = t_packing_list-body_num * 255.
APPEND t_packing_list.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone an idea why it isn't working on 'BBPCRM 4.0'?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2007 10:15:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sbwp-save-attachment/m-p/2013020#M411064</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-05T10:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: SBWP save attachment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sbwp-save-attachment/m-p/2013021#M411065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found it! &lt;/P&gt;&lt;P&gt;It should be mentioned in obj_header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: t_header like solisti1 occurs 0 with header line.
t_header = 'test.csv'.
append t_header.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in FM:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
....
TABLES
OBJECT_HEADER = t_header
....
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2007 14:11:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sbwp-save-attachment/m-p/2013021#M411065</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-06T14:11:35Z</dc:date>
    </item>
  </channel>
</rss>

