<?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 BAPI_DOCUMENT_CREATE2 - Document is created but is &amp;quot;missing&amp;quot; in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-document-create2-document-is-created-but-is-quot-missing-quot/m-p/4784554#M1120700</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following code to test this BAPI.  When I execute it I get a document number returned and the return structure is initial.  This tells me that a document was sucessfully created.  However, when I try to view the document, it doesn't exist.  Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know this is "bare-bones" but that is by design.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Davis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  DATA: documentdata TYPE bapi_doc_draw2.
   DATA: documenttype TYPE bapi_doc_aux-doctype,
        documentnumber TYPE bapi_doc_aux-docnumber,
        documentpart TYPE bapi_doc_aux-docpart,
        documentversion TYPE bapi_doc_aux-docversion,
        return TYPE bapiret2.
  documentdata-documenttype = 'ABC'.
  documentdata-description = 'Test'.

CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
  EXPORTING
    documentdata               = documentdata
*   HOSTNAME                   =
*   DOCBOMCHANGENUMBER         =
*   DOCBOMVALIDFROM            =
*   DOCBOMREVISIONLEVEL        =
*   CAD_MODE                   = ' '
*   PF_FTP_DEST                = ' '
*   PF_HTTP_DEST               = ' '
 IMPORTING
   DOCUMENTTYPE               = DOCUMENTTYPE
   DOCUMENTNUMBER             = DOCUMENTNUMBER
   DOCUMENTPART               = DOCUMENTPART
   DOCUMENTVERSION            = DOCUMENTVERSION
   RETURN                     = RETURN
* TABLES
*   CHARACTERISTICVALUES       =
*   CLASSALLOCATIONS           =
*   DOCUMENTDESCRIPTIONS       =
*   OBJECTLINKS                =
*   DOCUMENTSTRUCTURE          =
*   DOCUMENTFILES              =
*   LONGTEXTS                  =
*   COMPONENTS                 =
          .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Nov 2008 02:22:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-27T02:22:26Z</dc:date>
    <item>
      <title>BAPI_DOCUMENT_CREATE2 - Document is created but is "missing"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-document-create2-document-is-created-but-is-quot-missing-quot/m-p/4784554#M1120700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following code to test this BAPI.  When I execute it I get a document number returned and the return structure is initial.  This tells me that a document was sucessfully created.  However, when I try to view the document, it doesn't exist.  Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know this is "bare-bones" but that is by design.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Davis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  DATA: documentdata TYPE bapi_doc_draw2.
   DATA: documenttype TYPE bapi_doc_aux-doctype,
        documentnumber TYPE bapi_doc_aux-docnumber,
        documentpart TYPE bapi_doc_aux-docpart,
        documentversion TYPE bapi_doc_aux-docversion,
        return TYPE bapiret2.
  documentdata-documenttype = 'ABC'.
  documentdata-description = 'Test'.

CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
  EXPORTING
    documentdata               = documentdata
*   HOSTNAME                   =
*   DOCBOMCHANGENUMBER         =
*   DOCBOMVALIDFROM            =
*   DOCBOMREVISIONLEVEL        =
*   CAD_MODE                   = ' '
*   PF_FTP_DEST                = ' '
*   PF_HTTP_DEST               = ' '
 IMPORTING
   DOCUMENTTYPE               = DOCUMENTTYPE
   DOCUMENTNUMBER             = DOCUMENTNUMBER
   DOCUMENTPART               = DOCUMENTPART
   DOCUMENTVERSION            = DOCUMENTVERSION
   RETURN                     = RETURN
* TABLES
*   CHARACTERISTICVALUES       =
*   CLASSALLOCATIONS           =
*   DOCUMENTDESCRIPTIONS       =
*   OBJECTLINKS                =
*   DOCUMENTSTRUCTURE          =
*   DOCUMENTFILES              =
*   LONGTEXTS                  =
*   COMPONENTS                 =
          .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2008 02:22:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-document-create2-document-is-created-but-is-quot-missing-quot/m-p/4784554#M1120700</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-27T02:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_DOCUMENT_CREATE2 - Document is created but is "missing"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-document-create2-document-is-created-but-is-quot-missing-quot/m-p/4784555#M1120701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi , &lt;/P&gt;&lt;P&gt;use a  Transaction Commit (Copy the Below Code and paste right after Execute BAPI )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   WAIT          = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br, &lt;/P&gt;&lt;P&gt;Dilum Alawatte&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2008 02:41:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-document-create2-document-is-created-but-is-quot-missing-quot/m-p/4784555#M1120701</guid>
      <dc:creator>former_member451655</dc:creator>
      <dc:date>2008-11-27T02:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_DOCUMENT_CREATE2 - Document is created but is "missing"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-document-create2-document-is-created-but-is-quot-missing-quot/m-p/4784556#M1120702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried that in the test tool but not in the program.  Good idea; it was an oversight by me.  That corrected the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Davis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2008 02:43:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-document-create2-document-is-created-but-is-quot-missing-quot/m-p/4784556#M1120702</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-27T02:43:48Z</dc:date>
    </item>
  </channel>
</rss>

