<?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 Problem with BAPI_DOCUMENT_CREATE2 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-document-create2/m-p/3628383#M874057</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts !! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem with this Bapi "BAPI_DOCUMENT_CREATE2". I can create the document using a local file but can't use a file stored in other server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are my fm parameters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      documentdata   = it_documentdata&lt;/P&gt;&lt;P&gt;      hostname       = w_hostname " SAMBA&lt;/P&gt;&lt;P&gt;      pf_ftp_dest    = 'SAPFTPA'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      return         = it_return&lt;/P&gt;&lt;P&gt;      documentnumber = w_docnumber&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      documentfiles  = it_documentfiles.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And return this error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error while checking in and storing: \portaldesa\archivos\PM\imagenes\TIE2301-08-A\prueba.JPG  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message ID 26&lt;/P&gt;&lt;P&gt;Message Number  253&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please I need help. !! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Apr 2008 22:50:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-08T22:50:42Z</dc:date>
    <item>
      <title>Problem with BAPI_DOCUMENT_CREATE2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-document-create2/m-p/3628383#M874057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts !! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem with this Bapi "BAPI_DOCUMENT_CREATE2". I can create the document using a local file but can't use a file stored in other server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are my fm parameters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      documentdata   = it_documentdata&lt;/P&gt;&lt;P&gt;      hostname       = w_hostname " SAMBA&lt;/P&gt;&lt;P&gt;      pf_ftp_dest    = 'SAPFTPA'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      return         = it_return&lt;/P&gt;&lt;P&gt;      documentnumber = w_docnumber&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      documentfiles  = it_documentfiles.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And return this error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error while checking in and storing: \portaldesa\archivos\PM\imagenes\TIE2301-08-A\prueba.JPG  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message ID 26&lt;/P&gt;&lt;P&gt;Message Number  253&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please I need help. !! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2008 22:50:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-document-create2/m-p/3628383#M874057</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-08T22:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with BAPI_DOCUMENT_CREATE2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-document-create2/m-p/3628384#M874058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;any idea ??? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 13:04:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-document-create2/m-p/3628384#M874058</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T13:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with BAPI_DOCUMENT_CREATE2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-document-create2/m-p/3628385#M874059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved.. !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 15:08:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-document-create2/m-p/3628385#M874059</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T15:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with BAPI_DOCUMENT_CREATE2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-document-create2/m-p/3628386#M874060</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;How did you solve this problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Apr 2008 03:36:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-document-create2/m-p/3628386#M874060</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-19T03:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with BAPI_DOCUMENT_CREATE2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-document-create2/m-p/3628387#M874061</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 solved my problem with this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this code we get the hostname &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL 'SAPCORE' ID 'ID' FIELD 'VERSION'&lt;/P&gt;&lt;P&gt;  ID 'TABLE' FIELD kernel_version-&lt;STRONG&gt;sys&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;  READ TABLE kernel_version INDEX 11.&lt;/P&gt;&lt;P&gt;  w_hostname = kernel_version-data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT it_img.&lt;/P&gt;&lt;P&gt;    it_documentfiles-wsapplication = it_img-extension.&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;it_documentfiles-docfile = '/R3/file/test.JPG'. "In this field Put the comple path from your server&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    it_documentfiles-storagecategory = 'ZDMS'.&lt;/P&gt;&lt;P&gt;    it_documentfiles-checkedin = 'X'.&lt;/P&gt;&lt;P&gt;    it_documentfiles-description = w_text.&lt;/P&gt;&lt;P&gt;    it_documentfiles-documenttype = w_clase.&lt;/P&gt;&lt;P&gt;    it_documentfiles-documentversion = w_version.&lt;/P&gt;&lt;P&gt;    it_documentfiles-documentpart = w_part.&lt;/P&gt;&lt;P&gt;    APPEND it_documentfiles.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      documentdata   = it_documentdata&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;hostname       = w_hostname "R/3 SERVER&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;pf_ftp_dest    = 'SAPFTPA'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;pf_http_dest   = 'SAPHTTPA'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      return         = it_return&lt;/P&gt;&lt;P&gt;      documentnumber = w_docnumber&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      documentfiles  = it_documentfiles.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 13:15:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-document-create2/m-p/3628387#M874061</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-21T13:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with BAPI_DOCUMENT_CREATE2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-document-create2/m-p/3628388#M874062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;thanks in advance for your information. I have used your suggestions but I have the problem  again.&lt;/P&gt;&lt;P&gt;I try to explain you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a PDM system ( Windchill-PDMlink) that through a u201Cstartrfcu201D sends &lt;/P&gt;&lt;P&gt;an input file to Sap  system  putting  the file into a directory (AL11 example /usr/abssvil..)  .&lt;/P&gt;&lt;P&gt;Sap reads this file input  and &lt;/P&gt;&lt;P&gt;Create a material (ok)&lt;/P&gt;&lt;P&gt;Create a file_batch_XX.bat (ok)&lt;/P&gt;&lt;P&gt;then&lt;/P&gt;&lt;P&gt;Create a document with this attach (file_batch_XX.bat) (error!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have use the bapi create2 but SAP doesnu2019t create info record because it isnu2019t able to check in the file.&lt;/P&gt;&lt;P&gt;The error is about SDOK_PHIOS_CHECKIN error 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I write you a part of our code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL 'SAPCORE' ID 'ID' FIELD 'VERSION'&lt;/P&gt;&lt;P&gt;ID 'TABLE' FIELD kernel_version-&lt;STRONG&gt;sys&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;READ TABLE kernel_version INDEX 11.&lt;/P&gt;&lt;P&gt;w_hostname = kernel_version-data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR lt_docfiles.&lt;/P&gt;&lt;P&gt;  REFRESH lt_docfiles.&lt;/P&gt;&lt;P&gt;  lt_docfiles-documenttype = 'DOC'.&lt;/P&gt;&lt;P&gt;  lt_docfiles-documentnumber = l_doc_bapi.&lt;/P&gt;&lt;P&gt;  lt_docfiles-documentpart = '000'.&lt;/P&gt;&lt;P&gt;  lt_docfiles-documentversion = mara-zeivr. "'00'. R.V 30.06.08&lt;/P&gt;&lt;P&gt;  lt_docfiles-storagecategory = 'DMS_C1_ST'.&lt;/P&gt;&lt;P&gt;  lt_docfiles-docfile         = l_perc_bat.&lt;/P&gt;&lt;P&gt;  lt_docfiles-wsapplication   = 'BAT'.&lt;/P&gt;&lt;P&gt;  APPEND lt_docfiles.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR dms_doc_files.&lt;/P&gt;&lt;P&gt;  SELECT SINGLE doknr FROM dms_doc_files INTO dms_doc_files-doknr&lt;/P&gt;&lt;P&gt;  WHERE dokar EQ 'DOC'&lt;/P&gt;&lt;P&gt;    AND doknr EQ l_doc_bapi&lt;/P&gt;&lt;P&gt;    AND dokvr EQ mara-zeivr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: i_ok(1) VALUE space.&lt;/P&gt;&lt;P&gt;  PERFORM check_dok USING i_ok&lt;/P&gt;&lt;P&gt;  ls_datidoc-documenttype&lt;/P&gt;&lt;P&gt;   ls_datidoc-documentnumber&lt;/P&gt;&lt;P&gt;   ls_datidoc-documentpart&lt;/P&gt;&lt;P&gt;   ls_datidoc-documentversion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              documentdata    = ls_datidoc&lt;/P&gt;&lt;P&gt;              hostname        = w_hostname&lt;/P&gt;&lt;P&gt;              pf_ftp_dest     = 'SAPFTPA'&lt;/P&gt;&lt;P&gt;              pf_http_dest    = 'SAPHTTPA'&lt;/P&gt;&lt;P&gt;         IMPORTING&lt;/P&gt;&lt;P&gt;              documenttype    = ls_datidoc-documenttype&lt;/P&gt;&lt;P&gt;              documentnumber  = ls_datidoc-documentnumber&lt;/P&gt;&lt;P&gt;              documentpart    = ls_datidoc-documentpart&lt;/P&gt;&lt;P&gt;              documentversion = ls_datidoc-documentversion&lt;/P&gt;&lt;P&gt;              return          = gs_esito_bapi&lt;/P&gt;&lt;P&gt;         TABLES&lt;/P&gt;&lt;P&gt;              documentfiles   = lt_docfiles&lt;/P&gt;&lt;P&gt;              objectlinks     = lt_objectlinks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vanessa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2008 16:38:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-document-create2/m-p/3628388#M874062</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-01T16:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with BAPI_DOCUMENT_CREATE2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-document-create2/m-p/3628389#M874063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vanessa, could you show me  the value of this var " l_perc_bat " &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe the path is not good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jose&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2008 17:12:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-document-create2/m-p/3628389#M874063</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-01T17:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with BAPI_DOCUMENT_CREATE2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-document-create2/m-p/3628390#M874064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jose&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the value is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/usr/sap/users/abssvil/File_batch_LV03N000001B.bat  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ciao &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vanessa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2008 21:53:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-document-create2/m-p/3628390#M874064</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-01T21:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with BAPI_DOCUMENT_CREATE2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-document-create2/m-p/3628391#M874065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vanessa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some questions :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a) Can you create a document with the transaction CV01N ??? &lt;/P&gt;&lt;P&gt;b) The file "File_batch_LV03N000001B.bat  "  exits in the server ?? &lt;/P&gt;&lt;P&gt;c) The file extension it does not have to go '.BAT' ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this questions i can help you more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jose&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 14:11:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-document-create2/m-p/3628391#M874065</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-02T14:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with BAPI_DOCUMENT_CREATE2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-document-create2/m-p/3628392#M874066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jose&lt;/P&gt;&lt;P&gt;With Cv01n I create a document correctly attach file .bat&lt;/P&gt;&lt;P&gt;the file.bat is on the server correctly &lt;/P&gt;&lt;P&gt;and I use BAT like workstation application in which I define extension .bat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now with many test &lt;/P&gt;&lt;P&gt;We able to create a document and the file but We have to force a return of the bapi to 0.&lt;/P&gt;&lt;P&gt;The function give us the error is :Y_FTP_Client_to_r3, this function give us return code =1 we have to force = 0 . We don't understand because give us 1 as error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheer &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vanessa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2008 15:43:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-document-create2/m-p/3628392#M874066</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-04T15:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with BAPI_DOCUMENT_CREATE2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-document-create2/m-p/3628393#M874067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vanessa.. your DMS Server is independent from R3 Server ??? &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Maybe the RFC is not working fine.. try with this RFC "SAPFTP" and "SAPHTTP"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2008 17:20:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-document-create2/m-p/3628393#M874067</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-04T17:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with BAPI_DOCUMENT_CREATE2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-document-create2/m-p/3628394#M874068</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 try to explain the process. We have widchill pdm system that put the input file (T901)&lt;/P&gt;&lt;P&gt;with a call 'startrfc' in sap system in a directory (AL11--&amp;gt; usr\sap\users\...) &lt;/P&gt;&lt;P&gt;then our program in sap read the input file create a material master ok &lt;/P&gt;&lt;P&gt;create a file.bat and put on the directory, then the programm create a info record and &lt;/P&gt;&lt;P&gt;attach the file bat. So the program gets the file.bat and create a document with bapicreate2 or change2 with sapftpa, saphhtpa  and w_hostname (the code written in previous message..). The file.bat is archived in sap dms in repository DMS_C1_ST that is r3 database. We have not a content server...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for you we have to use sapftp ? But sapftpa not is correct for get file from another server or a directory that is not a client ( front end)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vanessa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2008 19:37:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-document-create2/m-p/3628394#M874068</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-04T19:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with BAPI_DOCUMENT_CREATE2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-document-create2/m-p/3628395#M874069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jose,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having similar issue. I am trying to create an attachment into DMS from our application server. The file is in DIR_TEMP directory. The file path is /tmp/test.pdf. But it doesn't work, Could you please tell me if i have to specify the full file path like &lt;BR /&gt;&amp;lt;servername&amp;gt;\&amp;lt;directory&amp;gt;\filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the moment i am passing the file path as \tmp\test.pdf. I am getting an error message "Error uploading  /TMP/TEST.PDF"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest me if i havet o use the full file path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Rajesh Tummala.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2009 19:17:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-document-create2/m-p/3628395#M874069</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-21T19:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with BAPI_DOCUMENT_CREATE2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-document-create2/m-p/3628396#M874070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please see note 504692:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[https://service.sap.com/sap/support/notes/504692|https://service.sap.com/sap/support/notes/504692]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  - Steffen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2009 15:45:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-document-create2/m-p/3628396#M874070</guid>
      <dc:creator>former_member183924</dc:creator>
      <dc:date>2009-11-04T15:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with BAPI_DOCUMENT_CREATE2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-document-create2/m-p/3628397#M874071</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 have a requirement to attach a PDF document to the Purchase Requisition number in DMS.&lt;/P&gt;&lt;P&gt;I am using the Same BAPI "BAPI_DOCUMENT_CREATE2". The document with attachment is gettig created, but we have an issue with document Check-in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The PDF document is placed in the Local Desktop, and we are trying to attache the document thru Adobe form.&lt;/P&gt;&lt;P&gt;We have configured two RFC connection "SAPHTTPA" and "SAPFTPA". &lt;/P&gt;&lt;P&gt;Hence it is run thru Adobe, the document is try to load thru SAPFTPA and when it try to Open using "Open Dataset" query, it throws the error. "No such file or Directory".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please let me know  what could be the cause, how to resolve this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Mar 2010 10:27:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-document-create2/m-p/3628397#M874071</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-18T10:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with BAPI_DOCUMENT_CREATE2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-document-create2/m-p/3628398#M874072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friend,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i saw your Message and i want know how can i archive a document in Sap-system , sure you know that, would you please help me, i want archive my document as archivlink, i want know how to do that, and which FM module shall i use, after uploading my document from PC shall i start with converting to string or to xstring and what about content repository ID?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you very much&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sharl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Sep 2010 22:37:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-document-create2/m-p/3628398#M874072</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-03T22:37:44Z</dc:date>
    </item>
  </channel>
</rss>

