<?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_CONTRACT_CREATE error (&amp;quot;SD document  is not in database ...&amp;quot;) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-contract-create-error-quot-sd-document-is-not-in-database-quot/m-p/6582408#M1434566</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 need to create a contract of &lt;STRONG&gt;MM&lt;/STRONG&gt; and I use the &lt;STRONG&gt;BAPI_CONTRACT_CREATE&lt;/STRONG&gt;. &lt;/P&gt;&lt;P&gt;In the end, the table of return have this three lines:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1	E	BAPI	001	No instance of object type PurchasingContract has been created. External reference: # 1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2	E	V1	302	SD document  is not in the database or has been archived&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;3	E	V1	302	SD document  is not in the database or has been archived&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, help me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Feb 2010 19:34:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-02-02T19:34:01Z</dc:date>
    <item>
      <title>BAPI_CONTRACT_CREATE error ("SD document  is not in database ...")</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-contract-create-error-quot-sd-document-is-not-in-database-quot/m-p/6582408#M1434566</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 need to create a contract of &lt;STRONG&gt;MM&lt;/STRONG&gt; and I use the &lt;STRONG&gt;BAPI_CONTRACT_CREATE&lt;/STRONG&gt;. &lt;/P&gt;&lt;P&gt;In the end, the table of return have this three lines:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1	E	BAPI	001	No instance of object type PurchasingContract has been created. External reference: # 1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2	E	V1	302	SD document  is not in the database or has been archived&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;3	E	V1	302	SD document  is not in the database or has been archived&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, help me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2010 19:34:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-contract-create-error-quot-sd-document-is-not-in-database-quot/m-p/6582408#M1434566</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-02T19:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_CONTRACT_CREATE error ("SD document  is not in database ...")</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-contract-create-error-quot-sd-document-is-not-in-database-quot/m-p/6582409#M1434567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd start by looking at the "SD Document number" in the input.  First check to see if it's in the correct format (may need to be left zero filled or something), and verify that the document does in fact exist....  The error you're getting strongly suggests that an SD document is referenced but simply is not there in the SAP instance you're attempting to run the BAPI in...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2010 21:06:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-contract-create-error-quot-sd-document-is-not-in-database-quot/m-p/6582409#M1434567</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-02T21:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_CONTRACT_CREATE error ("SD document  is not in database ...")</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-contract-create-error-quot-sd-document-is-not-in-database-quot/m-p/6582410#M1434568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your answer, but I want to create a MM contract with no reference to an SD document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore, I was leaving this field "SD_DOC" in the BAPI empty. If I fill this field with the zero you told me, the message that is returned is: "E V1 302 SD document &lt;STRONG&gt;0&lt;/STRONG&gt; is not in the database or has been archived"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is, I do I create an MM contract with this BAPI without filling this field? Is this possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2010 10:13:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-contract-create-error-quot-sd-document-is-not-in-database-quot/m-p/6582410#M1434568</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-03T10:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_CONTRACT_CREATE error ("SD document  is not in database ...")</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-contract-create-error-quot-sd-document-is-not-in-database-quot/m-p/6582411#M1434569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had put (is wrong because it did not associate the contract to a document SD) the item number of the contract in the variable item of SD document (account-item_number).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2010 11:55:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-contract-create-error-quot-sd-document-is-not-in-database-quot/m-p/6582411#M1434569</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-03T11:55:30Z</dc:date>
    </item>
  </channel>
</rss>

