<?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: Problem with VA01 - Function 'SD_SALESDOCUMENT_CREATE' in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-va01-function-sd-salesdocument-create/m-p/6291989#M1389985</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;Try to check if you fill the right field for thee quantity&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway there's the standard BAPI BAPI_CONTRACT_CREATEFROMDATA for the contract&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Nov 2009 16:10:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-05T16:10:34Z</dc:date>
    <item>
      <title>Problem with VA01 - Function 'SD_SALESDOCUMENT_CREATE'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-va01-function-sd-salesdocument-create/m-p/6291984#M1389980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys , Im facing some troubles with this function i wanted  to use originally  'BAPI_SALESORDER_CREATEFROMDAT2' but it give me some troubles because of business object 'BUS2032' which is hardcode in the bapi  , I have tried to use Function 'SD_SALESDOCUMENT_CREATE'  indicating the lines that i want to use form contract ( parameter   SALES_ITEMS_IN   )  and i get the error  &lt;STRONG&gt;A document with number  'XXX' already exists&lt;/STRONG&gt;. where 'XXX' is vbeln  . What can i do any advice. Here is some code : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'SD_SALESDOCUMENT_CREATE'
  EXPORTING
    SALESDOCUMENT                 =  pt_postab-vbeln
    sales_header_in               =   order_header_in
   BUSINESS_OBJECT               =  ''

TABLES
  RETURN                        =   return
   SALES_ITEMS_IN                =  order_items_in
   SALES_PARTNERS                =   order_partners
   SALES_SCHEDULES_IN            =  order_schedules_in&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank very much for your advices...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: José  M. Sánchez on Nov 4, 2009 1:14 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: José  M. Sánchez on Nov 4, 2009 1:14 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2009 18:18:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-va01-function-sd-salesdocument-create/m-p/6291984#M1389980</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-03T18:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with VA01 - Function 'SD_SALESDOCUMENT_CREATE'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-va01-function-sd-salesdocument-create/m-p/6291985#M1389981</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 had a problem like yours and I created a Z-BAPI as copy of 'BAPI_SALESORDER_CREATEFROMDAT2 where I replaced the business Object BUS2032 with mine: the business object for contract should be BUS2034&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway u can use fm SD_SALESDOCUMENT_CREATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2009 18:00:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-va01-function-sd-salesdocument-create/m-p/6291985#M1389981</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-04T18:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with VA01 - Function 'SD_SALESDOCUMENT_CREATE'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-va01-function-sd-salesdocument-create/m-p/6291986#M1389982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks  Max ,  yeap it could be a solution  copy de BAPI i meant , I ´ve already awarded some points , now im getting an error &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2	E	V5	046	Please Enter qty.of order in field  qty.with the same name.  000000 VBAPKOM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you ever get an error like that  ? , I ve checked the mandatory fields in bapi tables but i dont know if there is one thing missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2009 14:49:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-va01-function-sd-salesdocument-create/m-p/6291986#M1389982</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-05T14:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with VA01 - Function 'SD_SALESDOCUMENT_CREATE'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-va01-function-sd-salesdocument-create/m-p/6291987#M1389983</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 think u need to transfer the structure-X where it need to set the flags corrisponding to the fields transfered ti the fm so SALES_ITEMS_INX and SALES_SCHEDULES_INX&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2009 14:56:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-va01-function-sd-salesdocument-create/m-p/6291987#M1389983</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-05T14:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with VA01 - Function 'SD_SALESDOCUMENT_CREATE'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-va01-function-sd-salesdocument-create/m-p/6291988#M1389984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually in the same line of the error there is a column called &lt;STRONG&gt;parameter&lt;/STRONG&gt; it has the value SALES_ITEM_IN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2009 15:31:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-va01-function-sd-salesdocument-create/m-p/6291988#M1389984</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-05T15:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with VA01 - Function 'SD_SALESDOCUMENT_CREATE'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-va01-function-sd-salesdocument-create/m-p/6291989#M1389985</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;Try to check if you fill the right field for thee quantity&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway there's the standard BAPI BAPI_CONTRACT_CREATEFROMDATA for the contract&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2009 16:10:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-va01-function-sd-salesdocument-create/m-p/6291989#M1389985</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-05T16:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with VA01 - Function 'SD_SALESDOCUMENT_CREATE'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-va01-function-sd-salesdocument-create/m-p/6291990#M1389986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you Max , your advices are  very helpful , however i have a new problem that is now related with the language , it says Material &lt;STRONG&gt;DIAS_TRABALHO&lt;/STRONG&gt; is not defined for sales org.&lt;STRONG&gt;NOE2&lt;/STRONG&gt;,  distr.chan.,  language PT . which is a very silly error because i have created sales orders with va01 same material same distrib. chane. even with the BDC in a program (im using a bapi cause the supposed to be more efficient )  ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2009 16:49:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-va01-function-sd-salesdocument-create/m-p/6291990#M1389986</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-05T16:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with VA01 - Function 'SD_SALESDOCUMENT_CREATE'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-va01-function-sd-salesdocument-create/m-p/6291991#M1389987</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;It seems some parameters of the sales area is missing, I can see sales org. (NOE2) only: where is distr.chan?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2009 16:53:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-va01-function-sd-salesdocument-create/m-p/6291991#M1389987</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-05T16:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with VA01 - Function 'SD_SALESDOCUMENT_CREATE'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-va01-function-sd-salesdocument-create/m-p/6291992#M1389988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You were  right ( again ) , i had some fields empty , now a ihave a new error  : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E F5 165   Company code is not defined &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my FI consultant executed Va01 and he doesnt has anytrouble , what could be wrng ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2009 17:32:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-va01-function-sd-salesdocument-create/m-p/6291992#M1389988</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-06T17:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with VA01 - Function 'SD_SALESDOCUMENT_CREATE'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-va01-function-sd-salesdocument-create/m-p/6291993#M1389989</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;The system should be get the company code from Sales Org. (table TVKO)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2009 16:56:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-va01-function-sd-salesdocument-create/m-p/6291993#M1389989</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-16T16:56:07Z</dc:date>
    </item>
  </channel>
</rss>

