<?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 Document Attachment in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-attachment/m-p/8529200#M1656543</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;I need to attach a pdf file in plmd_audit transaction my file is already in SAP (AL11 directory); I'm using BDS_BUSINESSDOCUMENT_CREATEF with the standart parameters but not a local directory and, function module return  error_kpro            = 4  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any suggestions?&lt;/P&gt;&lt;P&gt;thx in advance&lt;/P&gt;&lt;P&gt;Fabio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Feb 2012 15:40:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-02-17T15:40:22Z</dc:date>
    <item>
      <title>Document Attachment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-attachment/m-p/8529200#M1656543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;I need to attach a pdf file in plmd_audit transaction my file is already in SAP (AL11 directory); I'm using BDS_BUSINESSDOCUMENT_CREATEF with the standart parameters but not a local directory and, function module return  error_kpro            = 4  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any suggestions?&lt;/P&gt;&lt;P&gt;thx in advance&lt;/P&gt;&lt;P&gt;Fabio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 15:40:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/document-attachment/m-p/8529200#M1656543</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-17T15:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Document Attachment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-attachment/m-p/8529201#M1656544</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;Can you check if below code may be you can find the problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: i_files like bapifiles occurs 1 with header line,&lt;/P&gt;&lt;P&gt;      i_signature like bapisignat occurs 1 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i_files-doc_count = '1'.&lt;/P&gt;&lt;P&gt;i_files-comp_count = '1'.&lt;/P&gt;&lt;P&gt;i_files-directory = 'C:\sappcadm'. "#EC NOTEXT&lt;/P&gt;&lt;P&gt;i_files-filename = 'BDSPRESENTATION.PPT'. "#EC NOTEXT&lt;/P&gt;&lt;P&gt;i_files-mimetype = 'PPT'.&lt;/P&gt;&lt;P&gt;append i_files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i_signature-doc_count = '1'.&lt;/P&gt;&lt;P&gt;i_signature-prop_name = 'BDS_DOCUMENTTYPE'.&lt;/P&gt;&lt;P&gt;i_signature-prop_value = 'BUSTEST'.&lt;/P&gt;&lt;P&gt;append i_signature.&lt;/P&gt;&lt;P&gt;i_signature-prop_name = 'BDS_DOCUMENTCLASS'.&lt;/P&gt;&lt;P&gt;i_signature-prop_value = 'PPT'.&lt;/P&gt;&lt;P&gt;append i_signature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'BDS_BUSINESSDOCUMENT_CREATEF'&lt;/P&gt;&lt;P&gt;     exporting&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        LOGICAL_SYSTEM =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          classname      = 'BUS0815'&lt;/P&gt;&lt;P&gt;          classtype      = 'BO'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        CLIENT         = SY-MANDT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          object_key     = '123'&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;        OBJECT_KEY     =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        return         =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     tables&lt;/P&gt;&lt;P&gt;          files          = i_files&lt;/P&gt;&lt;P&gt;          signature      = i_signature&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 16:01:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/document-attachment/m-p/8529201#M1656544</guid>
      <dc:creator>former_member189779</dc:creator>
      <dc:date>2012-02-17T16:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: Document Attachment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-attachment/m-p/8529202#M1656545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;the issue is &lt;/P&gt;&lt;P&gt;i_files-directory = 'C:\sappcadm'. "#EC NOTEXT&lt;/P&gt;&lt;P&gt;because my files are in a sap's directory for example /tmp   &lt;/P&gt;&lt;P&gt;if I use the frontend directory it works fine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 17:13:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/document-attachment/m-p/8529202#M1656545</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-17T17:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Document Attachment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-attachment/m-p/8529203#M1656546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this FM works only for uploading files from presentation server, at least i could not get it to work for files on AL11. The workaround that i implemented is to download the file from AL11 to the PC using a FM, and then call the FM BDS_BUSINESSDOCUMENT_CREATEF to upload from the folder. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know this is a very crude method, but i didnt find any other solution. If you come across anything better, do share it on the forum, will help all of us &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghav.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 21:22:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/document-attachment/m-p/8529203#M1656546</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-17T21:22:58Z</dc:date>
    </item>
  </channel>
</rss>

