<?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: BDS create/get using class/fm in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bds-create-get-using-class-fm/m-p/944267#M63827</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;  Check OSS Note 317250.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Sep 2005 13:30:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-09-21T13:30:03Z</dc:date>
    <item>
      <title>BDS create/get using class/fm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bds-create-get-using-class-fm/m-p/944264#M63824</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;I try to upload several photos BDS, assaigning themto sales order,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use BDS classname BUS2032 and classtype BO&lt;/P&gt;&lt;P&gt;but function module 'BDS_BUSINESSDOCUMENT_CREATEF' and cl_bds_document_set class method create_with_files returns same error SBDS205. I supposed, something is missing, but what?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is the code..&lt;/P&gt;&lt;P&gt;DATA: o_document_set TYPE REF TO cl_bds_document_set,&lt;/P&gt;&lt;P&gt;      wa_signature LIKE bapisignat,&lt;/P&gt;&lt;P&gt;      i_signature LIKE bapisignat OCCURS 1,&lt;/P&gt;&lt;P&gt;      wa_files LIKE bapifiles,&lt;/P&gt;&lt;P&gt;      i_files LIKE bapifiles OCCURS 1,&lt;/P&gt;&lt;P&gt;      i_object_key LIKE bapibds01-objkey.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE OBJECT o_document_set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE: '1'       TO wa_signature-doc_count,&lt;/P&gt;&lt;P&gt;      '1'       TO wa_files-doc_count,&lt;/P&gt;&lt;P&gt;      'c:\temp' TO wa_files-directory,&lt;/P&gt;&lt;P&gt;      '1.jpg'   TO wa_files-filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND wa_signature TO i_signature.&lt;/P&gt;&lt;P&gt;APPEND wa_files TO i_files.&lt;/P&gt;&lt;P&gt;i_object_key = '0000261877'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BREAK-POINT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD o_document_set-&amp;gt;create_with_files&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    classname  = 'BUS2032'&lt;/P&gt;&lt;P&gt;    classtype  = 'BO'&lt;/P&gt;&lt;P&gt;  CHANGING&lt;/P&gt;&lt;P&gt;    object_key = i_object_key&lt;/P&gt;&lt;P&gt;    files      = i_files&lt;/P&gt;&lt;P&gt;    signature  = i_signature&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   .&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA : files LIkE BAPIFILES OCCURS 1 WITH header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;files-doc_count = '1'.&lt;/P&gt;&lt;P&gt;files-directory  = 'c:\temp\'.&lt;/P&gt;&lt;P&gt;files-filename = '1.jpg'.&lt;/P&gt;&lt;P&gt;APPEND files.&lt;/P&gt;&lt;P&gt;&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             = 'BUS2032'&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            = '0000261877'&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;/UL&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;    files                 = files&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SIGNATURE             =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   NOTHING_FOUND         = 1&lt;/P&gt;&lt;P&gt;   PARAMETER_ERROR       = 2&lt;/P&gt;&lt;P&gt;   NOT_ALLOWED           = 3&lt;/P&gt;&lt;P&gt;   ERROR_KPRO            = 4&lt;/P&gt;&lt;P&gt;   INTERNAL_ERROR        = 5&lt;/P&gt;&lt;P&gt;   NOT_AUTHORIZED        = 6&lt;/P&gt;&lt;P&gt;   OTHERS                = 7&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Igor Troshkov&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2005 12:39:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bds-create-get-using-class-fm/m-p/944264#M63824</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-21T12:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: BDS create/get using class/fm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bds-create-get-using-class-fm/m-p/944265#M63825</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;  There is nothing wrong with the code. Make sure the file exists and the file path is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2005 12:56:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bds-create-get-using-class-fm/m-p/944265#M63825</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-21T12:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: BDS create/get using class/fm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bds-create-get-using-class-fm/m-p/944266#M63826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am sure with the path/filename. I also tried variants with/without capital letters/end slashes,&lt;/P&gt;&lt;P&gt;but problem is the same&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2005 13:11:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bds-create-get-using-class-fm/m-p/944266#M63826</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-21T13:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: BDS create/get using class/fm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bds-create-get-using-class-fm/m-p/944267#M63827</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;  Check OSS Note 317250.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2005 13:30:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bds-create-get-using-class-fm/m-p/944267#M63827</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-21T13:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: BDS create/get using class/fm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bds-create-get-using-class-fm/m-p/944268#M63828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it seems to me this note is concerning basis,&lt;/P&gt;&lt;P&gt;but i already upload picture using tr OAOR with same parametres, and this transaction have to use the same method&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2005 13:43:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bds-create-get-using-class-fm/m-p/944268#M63828</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-21T13:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: BDS create/get using class/fm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bds-create-get-using-class-fm/m-p/944269#M63829</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;   Then put a breakpoint in the fm and go to OAOR and upload the image file and then check the FILES and SIGNATURE tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Compare them with what you are filling in your test program. That should help..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2005 13:53:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bds-create-get-using-class-fm/m-p/944269#M63829</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-21T13:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: BDS create/get using class/fm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bds-create-get-using-class-fm/m-p/944270#M63830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you need to pass the logical system&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use the following FM to get the logical system&lt;/P&gt;&lt;P&gt;OWN_LOGICAL_SYSTEM_GET&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDS_BUSINESSDOCUMENT_CREATEF&lt;/P&gt;&lt;P&gt;to work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2005 21:19:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bds-create-get-using-class-fm/m-p/944270#M63830</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2005-09-21T21:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: BDS create/get using class/fm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bds-create-get-using-class-fm/m-p/944271#M63831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok. now it is working. thanks to every body&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Igor Troshkov&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2005 06:06:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bds-create-get-using-class-fm/m-p/944271#M63831</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-22T06:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: BDS create/get using class/fm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bds-create-get-using-class-fm/m-p/944272#M63832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;good to hear that its working. all the best.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2005 08:17:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bds-create-get-using-class-fm/m-p/944272#M63832</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2005-09-22T08:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: BDS create/get using class/fm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bds-create-get-using-class-fm/m-p/944273#M63833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I hope you read this message.  I tried your code to attach a PDF document to invoice.  It works, but why I got 2 attachments instead of one.  Also since this is a test, how do I delete the attachment?  I use trans. VF03 then go to&lt;/P&gt;&lt;P&gt;System -&amp;gt; Service for object -&amp;gt; attachmentlist to view the attachment.  But I cannot click on the attachment and click on trash can.  It said cannot delete under this type of document.  Is there a FM to delete the attachment? By the way, where the link is stored after attachment is created?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Oct 2006 21:05:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bds-create-get-using-class-fm/m-p/944273#M63833</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-20T21:05:53Z</dc:date>
    </item>
  </channel>
</rss>

