<?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 on BAPI_SALESORDER_CREATEFROMDAT2 BAPI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-on-bapi-salesorder-createfromdat2-bapi/m-p/10780213#M1878809</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roberto,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please share a small program which explain me better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shyamal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Dec 2014 16:46:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-12-02T16:46:28Z</dc:date>
    <item>
      <title>Problem on BAPI_SALESORDER_CREATEFROMDAT2 BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-on-bapi-salesorder-createfromdat2-bapi/m-p/10780211#M1878807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing a problem while using&amp;nbsp; BAPI_SALESORDER_CREATEFROMDAT2 BAPI in a program.&lt;/P&gt;&lt;P&gt;I am filling up header data&amp;nbsp; order_header_in&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;lwa_header_in. For&amp;nbsp; lwa_header_in&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;&lt;STRONG&gt;purch_no_c&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;lwa_success&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;tracking_num from flat file,&lt;/P&gt;&lt;P&gt;we have to pass different purchase order no. So we are using loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The requirement is, we have to avoid the loop to fill up header data. How to do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shyamal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2014 15:28:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-on-bapi-salesorder-createfromdat2-bapi/m-p/10780211#M1878807</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-12-02T15:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: Problem on BAPI_SALESORDER_CREATEFROMDAT2 BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-on-bapi-salesorder-createfromdat2-bapi/m-p/10780212#M1878808</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 can't use the bapi at once time for several headers orders.&lt;/P&gt;&lt;P&gt;You can figure out this limit by launching BAPI from SE37. The &lt;SPAN style="color: #333333; font-size: 12px;"&gt;ORDER_HEADER_IN structure parameter in input, accept only 1 row.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your situtation you should adopt SERIALIZATION, by calling n times the function module in the same session. That's a little more complicated but makes a difference in performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope to help&lt;/P&gt;&lt;P&gt;Bye&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2014 15:43:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-on-bapi-salesorder-createfromdat2-bapi/m-p/10780212#M1878808</guid>
      <dc:creator>roberto_vacca2</dc:creator>
      <dc:date>2014-12-02T15:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem on BAPI_SALESORDER_CREATEFROMDAT2 BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-on-bapi-salesorder-createfromdat2-bapi/m-p/10780213#M1878809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roberto,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please share a small program which explain me better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shyamal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2014 16:46:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-on-bapi-salesorder-createfromdat2-bapi/m-p/10780213#M1878809</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-12-02T16:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem on BAPI_SALESORDER_CREATEFROMDAT2 BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-on-bapi-salesorder-createfromdat2-bapi/m-p/10780214#M1878810</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;SPAN style="color: #333333; font-size: 12px;"&gt; BAPI_SALESORDER_CREATEFROMDAT2 comes with option remote function module&amp;nbsp; activated so you can do this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION ‘&lt;SPAN style="color: #333333; font-size: 12px;"&gt;BAPI_SALESORDER_CREATEFROMDAT2&lt;/SPAN&gt;’&lt;/P&gt;&lt;P&gt;STARTING NEW TASK ‘SALESORDER’&lt;/P&gt;&lt;P&gt;( DESTINATION NONE. &amp;lt;- is not mandatory).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this way every order is processed in a single separated way and it doesn't need a linear execution of each ones.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In details:&lt;/P&gt;&lt;P&gt;When you call a remote function with the optional suffix STARTING NEW TASK, the system starts&lt;/P&gt;&lt;P&gt;the function in a new session. Rather than waiting for the remote call to be completed, the user&lt;/P&gt;&lt;P&gt;can resume processing as soon as the function module has been started in the target system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope to help with this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2014 17:01:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-on-bapi-salesorder-createfromdat2-bapi/m-p/10780214#M1878810</guid>
      <dc:creator>roberto_vacca2</dc:creator>
      <dc:date>2014-12-02T17:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem on BAPI_SALESORDER_CREATEFROMDAT2 BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-on-bapi-salesorder-createfromdat2-bapi/m-p/10780215#M1878811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Roberto. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can not able to understand your suggestion. Can you please how the &lt;SPAN style="color: #333333; font-size: 12px;"&gt;BAPI_SALESORDER_CREATEFROMDAT2 can be used.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Now the &lt;SPAN style="color: #333333; font-size: 12px;"&gt;BAPI_SALESORDER_CREATEFROMDAT2 is used inside the loop. Can we use it outside for each Purchase order number while creating each sales order?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;2) Please share a small piece of code - how to use the BAPI.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Is it like this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Loop at it... into wa...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;CALL FUNCTION ‘&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;BAPI_SALESORDER_CREATEFROMDAT2&lt;/SPAN&gt;’&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;STARTING NEW TASK ‘SALESORDER’&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;( DESTINATION NONE. &amp;lt;- is not mandatory)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;endloop.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;If we code this way, then how performance will be tuned?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Shyamal.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2014 08:26:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-on-bapi-salesorder-createfromdat2-bapi/m-p/10780215#M1878811</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-12-03T08:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problem on BAPI_SALESORDER_CREATEFROMDAT2 BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-on-bapi-salesorder-createfromdat2-bapi/m-p/10780216#M1878812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI. Sorry for the delay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) You cannot use BAPI_SALESORDER_CREATEFROMDAT2 for a massive update at once. You have to create each order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) If you use SET UPDATE TASK LOCAL, before BAPI call, you'll reduce task (probably you'll have an higher LOAD memory level).&amp;nbsp; Sorry but, before proceed, we have to understand what kind of limit you reach in order creation. I mean: How much time does it take to create 100 orders? Think that sales orders created by IDOCS in 5 second and with a parallel processing, should be ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope to help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 15:46:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-on-bapi-salesorder-createfromdat2-bapi/m-p/10780216#M1878812</guid>
      <dc:creator>roberto_vacca2</dc:creator>
      <dc:date>2014-12-11T15:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problem on BAPI_SALESORDER_CREATEFROMDAT2 BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-on-bapi-salesorder-createfromdat2-bapi/m-p/10780217#M1878813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roberto,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. It will be great if kindly share a small program since I am unable to understand your solution properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shyamal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 16:45:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-on-bapi-salesorder-createfromdat2-bapi/m-p/10780217#M1878813</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-12-11T16:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problem on BAPI_SALESORDER_CREATEFROMDAT2 BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-on-bapi-salesorder-createfromdat2-bapi/m-p/10780218#M1878814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shymal, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample code: &lt;A __default_attr="624742" __jive_macro_name="thread" class="jive_macro_thread jive_macro" data-orig-content="BAPI_SALESORDER_CREATEFROMDAT2 sample" href="https://community.sap.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If time is an issue you can execute it in background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Ernesto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 19:17:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-on-bapi-salesorder-createfromdat2-bapi/m-p/10780218#M1878814</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-12-11T19:17:29Z</dc:date>
    </item>
  </channel>
</rss>

