<?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: create sales order using 'BAPI_SALESORDER_CREATEFROMDAT1' in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-sales-order-using-bapi-salesorder-createfromdat1/m-p/4166668#M996138</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Hi, Aditya&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; I run BAPI_BPCONTACT_SAVEFROMMEMORY after call BAPI_SALESORDER_CREATEFROMDAT1&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; The code is as follow:&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;CODE&gt;
&amp;gt; DATA : it_bapi_vbka_boidref LIKE bapi_vbka_boidref OCCURS 0 WITH HEADER LINE,
&amp;gt;            it_bapiret2 LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
&amp;gt; 
&amp;gt; CALL FUNCTION 'BAPI_BPCONTACT_SAVEFROMMEMORY'
&amp;gt;   TABLES
&amp;gt;     salesactivityidout = li_bapi_vbka_boidref
&amp;gt;     return             = li_bapiret2.
&amp;gt; &lt;/CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Still no sales order has been created.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Is that because the syntax is wrong or any other reason?&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Thanks a lot.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Best Regards,&lt;/P&gt;&lt;P&gt;&amp;gt; Stephanie&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Edited by: Stephanie HE on Jul 21, 2008 12:40 PM&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephanie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI_BPCONTACT_SAVEFROMMEMORY has nothing to do with your problem - you don't need to call it after BAPI_SALESORDER_CREATE...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usually you should call your BAPI to create the sales order then check the return table to see if any errors have occurred - if they haven't then you should call BAPI_TRANSACTION_COMMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm guessing you have an error with your data somewhere that is stopping the document from being created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gareth.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Jul 2008 10:42:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-21T10:42:59Z</dc:date>
    <item>
      <title>create sales order using 'BAPI_SALESORDER_CREATEFROMDAT1'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-sales-order-using-bapi-salesorder-createfromdat1/m-p/4166659#M996129</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;Here is the code below&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*-------------------------Data Declaration-----------------------------*
DATA: st_bapisdhead LIKE bapisdhead, " Sales Order Header Data
      ta_bapiitemin LIKE bapiitemin OCCURS 0 WITH HEADER LINE, " Ln item
      ta_bapipartnr LIKE bapipartnr OCCURS 0 WITH HEADER LINE, " Partner
      d_bapireturn1 LIKE bapireturn1, " Bapi return msg
      d_vbeln LIKE bapivbeln-vbeln. " Sales Order Number

* Move the data to create sales order in the repective parameters------*
MOVE: 'TA' TO st_bapisdhead-doc_type, " Sales document type
      '15493' TO st_bapisdhead-purch_no_c,
      '00010' TO ta_bapiitemin-itm_number,
      'Y-351' TO ta_bapiitemin-material,
      '1100' TO ta_bapiitemin-plant,
      '1' TO ta_bapiitemin-req_qty,
      'AG' TO ta_bapipartnr-partn_role, " Sold to Party
      '0000007777' TO ta_bapipartnr-partn_numb.

* Append the internal tables-------------------------------------------*
APPEND ta_bapipartnr.
CLEAR ta_bapipartnr.
APPEND ta_bapiitemin.
CLEAR ta_bapiitemin.

* Move ship to party---------------------------------------------------*
MOVE: 'RG' TO ta_bapipartnr-partn_role, " Ship to party
      '0000007777' TO ta_bapipartnr-partn_numb.

* Append the internal tables-------------------------------------------*
APPEND ta_bapipartnr.
CLEAR ta_bapipartnr.


* Call the Bapi to create the sales order
CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT1'
EXPORTING
order_header_in = st_bapisdhead
* WITHOUT_COMMIT = ' '
* CONVERT_PARVW_AUART = ' '
IMPORTING
salesdocument = d_vbeln
* SOLD_TO_PARTY =
* SHIP_TO_PARTY =
* BILLING_PARTY =
return = d_bapireturn1
TABLES
order_items_in = ta_bapiitemin
order_partners = ta_bapipartnr
* ORDER_ITEMS_OUT =
* ORDER_CFGS_REF =
* ORDER_CFGS_INST =
* ORDER_CFGS_PART_OF =
* ORDER_CFGS_VALUE =
* ORDER_CCARD =
* ORDER_CFGS_BLOB =
* ORDER_SCHEDULE_EX =
.

IF d_vbeln &amp;lt;&amp;gt; space.
  WRITE: 'Sales order No. ', d_vbeln.
ELSE.
  WRITE: 'No data'.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why there is no sales order had been created after running this report?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Stephanie&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Stephanie HE on Jul 21, 2008 12:17 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 10:17:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-sales-order-using-bapi-salesorder-createfromdat1/m-p/4166659#M996129</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T10:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: create sales order using 'BAPI_SALESORDER_CREATEFROMDAT1'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-sales-order-using-bapi-salesorder-createfromdat1/m-p/4166660#M996130</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;use commit work command after calling bapi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 10:20:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-sales-order-using-bapi-salesorder-createfromdat1/m-p/4166660#M996130</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T10:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: create sales order using 'BAPI_SALESORDER_CREATEFROMDAT1'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-sales-order-using-bapi-salesorder-createfromdat1/m-p/4166661#M996131</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;run bapi&lt;/P&gt;&lt;P&gt;BAPI_BPCONTACT_SAVEFROMMEMORY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after 'BAPI_SALESORDER_CREATEFROMDAT1'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will return sales activity number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 10:21:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-sales-order-using-bapi-salesorder-createfromdat1/m-p/4166661#M996131</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T10:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: create sales order using 'BAPI_SALESORDER_CREATEFROMDAT1'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-sales-order-using-bapi-salesorder-createfromdat1/m-p/4166662#M996132</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;Uncommend this line --&amp;gt; Value give Space.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WITHOUT_COMMIT = '  '.&lt;/STRONG&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;STRONG&gt;'10' TO st_bapisdhead-distr_chan,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;'10' TO st_bapisdhead-division,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;'AG1' TO st_bapisdhead-sales_grp,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;'1902' TO st_bapisdhead-sales_off,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add in header details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at pe_return1.&lt;/P&gt;&lt;P&gt;write / return1-MESSAGE.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here u will get the return message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful.&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;Durai.V&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Durai V on Jul 21, 2008 12:40 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 10:26:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-sales-order-using-bapi-salesorder-createfromdat1/m-p/4166662#M996132</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T10:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: create sales order using 'BAPI_SALESORDER_CREATEFROMDAT1'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-sales-order-using-bapi-salesorder-createfromdat1/m-p/4166663#M996133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Khusro Habib &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I add COMMIT WORK after the calling BAPI, but after running it, still "no data".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Stephanie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 10:27:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-sales-order-using-bapi-salesorder-createfromdat1/m-p/4166663#M996133</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T10:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: create sales order using 'BAPI_SALESORDER_CREATEFROMDAT1'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-sales-order-using-bapi-salesorder-createfromdat1/m-p/4166664#M996134</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;You have to run bapi&lt;/P&gt;&lt;P&gt;BAPI_BPCONTACT_SAVEFROMMEMORY&lt;/P&gt;&lt;P&gt;which returns you the document number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 10:29:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-sales-order-using-bapi-salesorder-createfromdat1/m-p/4166664#M996134</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T10:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: create sales order using 'BAPI_SALESORDER_CREATEFROMDAT1'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-sales-order-using-bapi-salesorder-createfromdat1/m-p/4166665#M996135</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;Have you checked the RETURN table to see if you are getting any error messages?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 10:39:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-sales-order-using-bapi-salesorder-createfromdat1/m-p/4166665#M996135</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T10:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: create sales order using 'BAPI_SALESORDER_CREATEFROMDAT1'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-sales-order-using-bapi-salesorder-createfromdat1/m-p/4166666#M996136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Aditya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I run BAPI_BPCONTACT_SAVEFROMMEMORY after call BAPI_SALESORDER_CREATEFROMDAT1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code is as follow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA : it_bapi_vbka_boidref LIKE bapi_vbka_boidref OCCURS 0 WITH HEADER LINE,
           it_bapiret2 LIKE bapiret2 OCCURS 0 WITH HEADER LINE.

CALL FUNCTION 'BAPI_BPCONTACT_SAVEFROMMEMORY'
  TABLES
    salesactivityidout = li_bapi_vbka_boidref
    return             = li_bapiret2.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still no sales order has been created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that because the syntax is wrong or any other reason?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Stephanie&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Stephanie HE on Jul 21, 2008 12:40 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 10:40:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-sales-order-using-bapi-salesorder-createfromdat1/m-p/4166666#M996136</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T10:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: create sales order using 'BAPI_SALESORDER_CREATEFROMDAT1'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-sales-order-using-bapi-salesorder-createfromdat1/m-p/4166667#M996137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Did u checked the return table for any errors?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there are any errors then order will not be created. Put a break point at this FM, After calling the BAPI check the return table. If no errors then do database commit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of COMMIT WORK call FM&lt;/P&gt;&lt;P&gt;BAPI_TRANSACTION_COMMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Vinod Reddy Vemuru on Jul 21, 2008 4:13 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 10:42:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-sales-order-using-bapi-salesorder-createfromdat1/m-p/4166667#M996137</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2008-07-21T10:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: create sales order using 'BAPI_SALESORDER_CREATEFROMDAT1'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-sales-order-using-bapi-salesorder-createfromdat1/m-p/4166668#M996138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Hi, Aditya&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; I run BAPI_BPCONTACT_SAVEFROMMEMORY after call BAPI_SALESORDER_CREATEFROMDAT1&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; The code is as follow:&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;CODE&gt;
&amp;gt; DATA : it_bapi_vbka_boidref LIKE bapi_vbka_boidref OCCURS 0 WITH HEADER LINE,
&amp;gt;            it_bapiret2 LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
&amp;gt; 
&amp;gt; CALL FUNCTION 'BAPI_BPCONTACT_SAVEFROMMEMORY'
&amp;gt;   TABLES
&amp;gt;     salesactivityidout = li_bapi_vbka_boidref
&amp;gt;     return             = li_bapiret2.
&amp;gt; &lt;/CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Still no sales order has been created.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Is that because the syntax is wrong or any other reason?&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Thanks a lot.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Best Regards,&lt;/P&gt;&lt;P&gt;&amp;gt; Stephanie&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Edited by: Stephanie HE on Jul 21, 2008 12:40 PM&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephanie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI_BPCONTACT_SAVEFROMMEMORY has nothing to do with your problem - you don't need to call it after BAPI_SALESORDER_CREATE...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usually you should call your BAPI to create the sales order then check the return table to see if any errors have occurred - if they haven't then you should call BAPI_TRANSACTION_COMMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm guessing you have an error with your data somewhere that is stopping the document from being created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gareth.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 10:42:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-sales-order-using-bapi-salesorder-createfromdat1/m-p/4166668#M996138</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T10:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: create sales order using 'BAPI_SALESORDER_CREATEFROMDAT1'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-sales-order-using-bapi-salesorder-createfromdat1/m-p/4166669#M996139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephanie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI_BPCONTACT_SAVEFROMMEMORY has nothing to do with your problem - you don't need to call it after BAPI_SALESORDER_CREATE...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usually you should call your BAPI to create the sales order then check the return table to see if any errors have occurred - if they haven't then you should call BAPI_TRANSACTION_COMMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm guessing you have an error with your data somewhere that is stopping the document from being created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gareth.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi, Gareth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you tell me how to check the return table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Stephanie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 12:35:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-sales-order-using-bapi-salesorder-createfromdat1/m-p/4166669#M996139</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T12:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: create sales order using 'BAPI_SALESORDER_CREATEFROMDAT1'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-sales-order-using-bapi-salesorder-createfromdat1/m-p/4166670#M996140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Hi, Gareth&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Could you tell me how to check the return table?&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Thanks a lot!&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Best Regards,&lt;/P&gt;&lt;P&gt;&amp;gt; Stephanie&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The easiest way is to simply debug through the code and check the entry in the RETURN parameter after you have called the BAPI_SALESORDER_CREATE.  I'm hoping there will be an entry in that parameter that might explain why your document is not saving.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One question, why are you using BAPI_SALESORDER_CREATEFROMDAT1 and not BAPI_SALESORDER_CREATEFROMDAT2 ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gareth.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 12:40:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-sales-order-using-bapi-salesorder-createfromdat1/m-p/4166670#M996140</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T12:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: create sales order using 'BAPI_SALESORDER_CREATEFROMDAT1'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-sales-order-using-bapi-salesorder-createfromdat1/m-p/4166671#M996141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The easiest way is to simply debug through the code and check the entry in the RETURN parameter after you have called the BAPI_SALESORDER_CREATE. I'm hoping there will be an entry in that parameter that might explain why your document is not saving.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One question, why are you using BAPI_SALESORDER_CREATEFROMDAT1 and not BAPI_SALESORDER_CREATEFROMDAT2 ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gareth.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi, Gareth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help, I got the error message from the RETURN parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code is not mine, I got it from internet, it using BAPI_SALESORDER_CREATEFROMDAT1, so what is the difference between these two?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Stephanie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2008 02:17:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-sales-order-using-bapi-salesorder-createfromdat1/m-p/4166671#M996141</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-22T02:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: create sales order using 'BAPI_SALESORDER_CREATEFROMDAT1'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-sales-order-using-bapi-salesorder-createfromdat1/m-p/4166672#M996142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stephanie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, it is just a newer, more up to date version of the same functionality.  I'd recommend always using the latest version of a given BAPI if SAP have released newer versions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Specifically to your problem, the newer version has a table for RETURN so you can get multiple errors (if they exist) in one call and not have to test the BAPI, fix one error, test again, fix again, etc...  It also has a flag which enables you to save the document even if there are some errors which have also helped in your scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd suggest replacing your call to version 1 with code to call the latest version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gareth.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2008 07:30:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-sales-order-using-bapi-salesorder-createfromdat1/m-p/4166672#M996142</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-22T07:30:07Z</dc:date>
    </item>
  </channel>
</rss>

