<?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: Sales Order Creation ( Bapi Problem ) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-creation-bapi-problem/m-p/1320080#M165076</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you calling BAPI_TRANSACTION_COMMIT after the BAPI create?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data: ret_text type BAPIRET2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      ORDER_HEADER_IN           = hdr&lt;/P&gt;&lt;P&gt;      convert                   = 'X'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      SALESDOCUMENT             = salesdoc&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      return                    = ret_tbl&lt;/P&gt;&lt;P&gt;      ORDER_ITEMS_IN            = itm&lt;/P&gt;&lt;P&gt;      ORDER_PARTNERS            = prtnr&lt;/P&gt;&lt;P&gt;      ORDER_ITEMS_inx           = itmx&lt;/P&gt;&lt;P&gt;      ORDER_CONDITIONS_IN       = conds&lt;/P&gt;&lt;P&gt;      ORDER_CONDITIONS_INX      = condsx&lt;/P&gt;&lt;P&gt;      order_schedules_in        = schd_lin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc = 0&lt;/P&gt;&lt;P&gt;  and not salesdoc is initial.&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;     IMPORTING&lt;/P&gt;&lt;P&gt;       RETURN        = ret_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This second BAPI MUST be called to save the order.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 May 2006 16:19:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-05-17T16:19:12Z</dc:date>
    <item>
      <title>Sales Order Creation ( Bapi Problem )</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-creation-bapi-problem/m-p/1320079#M165075</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 am using BAPI_SALESORDER_CREATEFROMDAT2 to create sales order &amp;amp; noted a strange thing over there, system gives the following msg after call the bapi : &lt;/P&gt;&lt;P&gt;T ID  NUM MESSAGE &lt;/P&gt;&lt;P&gt;S V4  233 SALES_HEADER_IN has been processed successfully&lt;/P&gt;&lt;P&gt;S V4  233 SALES_ITEM_IN has been processed successfully&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;W V1  555&amp;lt;/b&amp;gt; The sales document is not yet complete: Edit data&lt;/P&gt;&lt;P&gt;S V1  311 BFS Sales Order 105 has been saved&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even when I check tcode VA03 system says sales order 105 is not available, even though I am getting a msg (311 BFS Sales Order 105 has been saved). I could not understand the problem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While using BAPI_SALESORDER_CREATEFROMDATA system is creating the record properly and we are able to see it via va03.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since BAPI_SALESORDER_CREATEFROMDATA does not provide the facility to add the Text that's why we have to use BAPI_SALESORDER_CREATEFROMDAT2.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will be highly appreciated if some body could suggest how to handle this issue or can we use some other bapi instead of BAPI_SALESORDER_CREATEFROMDAT2. &lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2006 16:13:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-creation-bapi-problem/m-p/1320079#M165075</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-17T16:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Sales Order Creation ( Bapi Problem )</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-creation-bapi-problem/m-p/1320080#M165076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you calling BAPI_TRANSACTION_COMMIT after the BAPI create?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data: ret_text type BAPIRET2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      ORDER_HEADER_IN           = hdr&lt;/P&gt;&lt;P&gt;      convert                   = 'X'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      SALESDOCUMENT             = salesdoc&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      return                    = ret_tbl&lt;/P&gt;&lt;P&gt;      ORDER_ITEMS_IN            = itm&lt;/P&gt;&lt;P&gt;      ORDER_PARTNERS            = prtnr&lt;/P&gt;&lt;P&gt;      ORDER_ITEMS_inx           = itmx&lt;/P&gt;&lt;P&gt;      ORDER_CONDITIONS_IN       = conds&lt;/P&gt;&lt;P&gt;      ORDER_CONDITIONS_INX      = condsx&lt;/P&gt;&lt;P&gt;      order_schedules_in        = schd_lin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc = 0&lt;/P&gt;&lt;P&gt;  and not salesdoc is initial.&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;     IMPORTING&lt;/P&gt;&lt;P&gt;       RETURN        = ret_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This second BAPI MUST be called to save the order.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2006 16:19:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-creation-bapi-problem/m-p/1320080#M165076</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-17T16:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: Sales Order Creation ( Bapi Problem )</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-creation-bapi-problem/m-p/1320081#M165077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pradeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; The problem is in SAP.&lt;/P&gt;&lt;P&gt; Take a look at the OSS note and implement this and it should resolve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 603131 - BAPI SD: Incorrect incompleteness messages &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Symptom&lt;/P&gt;&lt;P&gt;In the return table of a BAPI, you find warning message V1555 "The sales document is not yet complete: Edit data" although the document is complete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other terms&lt;/P&gt;&lt;P&gt;VBAK-NETWR, vbuv, xvbuv&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI_CUSTOMERINQUIRY_CHANGE, BAPI_INQUIRY_CREATEFROMDATA2, BAPI_QUOTATION_CREATEFROMDATA2, BAPI_CUSTOMERQUOTATION_CHANGE, BAPI_SALESORDER_CHANGE, BAPI_SALESORDER_CREATEFROMDAT2, BAPI_CONTRACT_CREATEFROMDATA, BAPI_CUSTOMERCONTRACT_CHANGE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reason and Prerequisites&lt;/P&gt;&lt;P&gt;The problem is caused by a program error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Solution&lt;/P&gt;&lt;P&gt;Implement the attached corrections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;VJ&lt;/P&gt;&lt;P&gt;Mark Helpful Answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2006 16:22:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-creation-bapi-problem/m-p/1320081#M165077</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-17T16:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sales Order Creation ( Bapi Problem )</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-creation-bapi-problem/m-p/1320082#M165078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Call &amp;lt;b&amp;gt;'BAPI_TRANSACTION_COMMIT'&amp;lt;/b&amp;gt;after &amp;lt;b&amp;gt;'BAPI_SALESORDER_CREATEFROMDAT2'&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2006 16:23:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-creation-bapi-problem/m-p/1320082#M165078</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-17T16:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: Sales Order Creation ( Bapi Problem )</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-creation-bapi-problem/m-p/1320083#M165079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pradeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has the issue been resolved?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so, please reward points accordingly.&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, 17 May 2006 16:57:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-creation-bapi-problem/m-p/1320083#M165079</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-17T16:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: Sales Order Creation ( Bapi Problem )</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-creation-bapi-problem/m-p/1320084#M165080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to do in the same way however u hv suggested. Off course you will get your marks.&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, 17 May 2006 17:50:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-creation-bapi-problem/m-p/1320084#M165080</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-17T17:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Sales Order Creation ( Bapi Problem )</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-creation-bapi-problem/m-p/1320085#M165081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pradeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also note that you MUST fill in the schedule line table as well. This schedule line data MUST contain the ordered qty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Build schedule line as well.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;move l_number to schd_lin-itm_number. "line number&lt;/P&gt;&lt;P&gt;schd_lin-req_qty = i_vbap-kwmeng. "ordered qty&lt;/P&gt;&lt;P&gt;append schd_lin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;ORDER_HEADER_IN = hdr&lt;/P&gt;&lt;P&gt;convert = 'X'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;SALESDOCUMENT = salesdoc&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;return = ret_tbl&lt;/P&gt;&lt;P&gt;ORDER_ITEMS_IN = itm&lt;/P&gt;&lt;P&gt;ORDER_PARTNERS = prtnr&lt;/P&gt;&lt;P&gt;ORDER_ITEMS_inx = itmx&lt;/P&gt;&lt;P&gt;ORDER_CONDITIONS_IN = conds&lt;/P&gt;&lt;P&gt;ORDER_CONDITIONS_INX = condsx&lt;/P&gt;&lt;P&gt;order_schedules_in = schd_lin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2006 17:58:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-creation-bapi-problem/m-p/1320085#M165081</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-17T17:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: Sales Order Creation ( Bapi Problem )</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-creation-bapi-problem/m-p/1320086#M165082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls could you let me know why do we need to fill table (schd_lin-req_qty ) even though without this table also it is storing data correctly. is there any specific reason behind it??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way thanks alot for your suggestion. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pradeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2006 18:32:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-creation-bapi-problem/m-p/1320086#M165082</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-17T18:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: Sales Order Creation ( Bapi Problem )</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-creation-bapi-problem/m-p/1320087#M165083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is simply a requirement of the BAPI and the SD module, in general.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The schedule line info is the "true" data that is passed to the delivery doc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2006 18:40:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-creation-bapi-problem/m-p/1320087#M165083</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-17T18:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: Sales Order Creation ( Bapi Problem )</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-creation-bapi-problem/m-p/1320088#M165084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i had got the problem in sales order creatrion&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 07:52:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-creation-bapi-problem/m-p/1320088#M165084</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-05T07:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: Sales Order Creation ( Bapi Problem )</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-creation-bapi-problem/m-p/1320089#M165085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when iam calling BAPI_SALESORDER_CREATEFROMDAT2 in programe&lt;/P&gt;&lt;P&gt;iam getting error message as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SALES_HEADER_IN has been processed successfully              &lt;/P&gt;&lt;P&gt;SALES_ITEM_IN has been processed successfully                &lt;/P&gt;&lt;P&gt;Order receipt/delivery not possible, credit customer blocked &lt;/P&gt;&lt;P&gt;                                                             &lt;/P&gt;&lt;P&gt;what should i do to correct the error and to create sales order.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 07:55:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-creation-bapi-problem/m-p/1320089#M165085</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-05T07:55:30Z</dc:date>
    </item>
  </channel>
</rss>

