<?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: BAPI_SALESORDER_CREATEFROMDAT2 duplicates SO in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-duplicates-so/m-p/9070129#M1703364</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved, problem was the background job execution time, just increase the time and now is ok. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Nov 2012 02:09:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-11-15T02:09:40Z</dc:date>
    <item>
      <title>BAPI_SALESORDER_CREATEFROMDAT2 duplicates SO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-duplicates-so/m-p/9070128#M1703363</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'm facing a problem, i've made a report that runs in background job, it takes a list of files from a UNIX Server and process each one by one inside a loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) with this FM EPS_GET_DIRECTORY_LISTING y get the list of files to process&lt;/P&gt;&lt;P&gt;2) then i do a LOOP to the table with the returned list of files, at the begin of the loop i clean al Bapi tables and variables and place a WAIT UP TO 4 ECONDS.&lt;/P&gt;&lt;P&gt;3) i extract the data from the file with OPEN DATASET&lt;/P&gt;&lt;P&gt;4) i pass the data to BAPI table-fields&lt;/P&gt;&lt;P&gt;5) i validate that the sales order is not repeated by searching in a Z table where all the sales orders are (the unix txt files for sales ordes comes from the web).&lt;/P&gt;&lt;P&gt;6) execute BAPI BAPI_SALESORDER_CREATEFROMDAT2&lt;/P&gt;&lt;P&gt;7) go back to the begin of the loop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in my Z table i control if the Sales orders are recordered with 4 seconds of difference, the repeated sales order i check them in tcode VA02 and i see the sales orders with 1 second of difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've read this post that faces the sames problem but whitout a positive answer &lt;A _jive_internal="true" href="https://answers.sap.com/message/10264963"&gt;http://scn.sap.com/message/10264963&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David Fúnez&lt;/P&gt;&lt;P&gt;Tegucigalpa, Honduras&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2012 16:50:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-duplicates-so/m-p/9070128#M1703363</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-29T16:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CREATEFROMDAT2 duplicates SO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-duplicates-so/m-p/9070129#M1703364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved, problem was the background job execution time, just increase the time and now is ok. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2012 02:09:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-duplicates-so/m-p/9070129#M1703364</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-15T02:09:40Z</dc:date>
    </item>
  </channel>
</rss>

