<?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: BDC synchronisation problem. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-synchronisation-problem/m-p/1405478#M195744</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Couple of ways to do this.  In the Call transaction CO01,  use update 'L'  for local.  IF that doesn't help,  put a delay in it using WAIT statement.  If you want to ge a different way, you can use the lock object and keep trying to get a look before calling CO02.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

* Keep waiting till the previous locks have been released.
while sy-subrc &amp;lt;&amp;gt; 0.

  call function 'ENQUEUE_ESORDER'
   exporting
*   MODE_AUFK            = 'E'
     mandt                = sy-mandt
     aufnr                = p_aufnr
*   X_AUFNR              = ' '
*   _SCOPE               = '2'
      _wait                = 'X'
*   _COLLECT             = ' '
   exceptions
     foreign_lock         = 1
     system_failure       = 2
     others               = 3
            .
  wait up to 1 seconds.

endwhile.


* Once you get a lock, release it and call transaction CO02
call function 'DEQUEUE_ESORDER'
 EXPORTING
   MANDT           = SY-MANDT
   AUFNR           = p_aufnr.


call transaction 'CO02'.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Jul 2006 13:47:45 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2006-07-10T13:47:45Z</dc:date>
    <item>
      <title>BDC synchronisation problem.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-synchronisation-problem/m-p/1405477#M195743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello !!&lt;/P&gt;&lt;P&gt;I have two "call transaction" calls in abap for the same production order (first - CO01, second CO02).&lt;/P&gt;&lt;P&gt;Unfortunatly very often when second one is triggered i have an error like : object is blocked / reserved for user....&lt;/P&gt;&lt;P&gt;Is there any way to trigger second one when first is really finished ?? (i have tried with different update modes but it  doesn't solve the problem)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br, Jacek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2006 13:42:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-synchronisation-problem/m-p/1405477#M195743</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-10T13:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: BDC synchronisation problem.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-synchronisation-problem/m-p/1405478#M195744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Couple of ways to do this.  In the Call transaction CO01,  use update 'L'  for local.  IF that doesn't help,  put a delay in it using WAIT statement.  If you want to ge a different way, you can use the lock object and keep trying to get a look before calling CO02.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

* Keep waiting till the previous locks have been released.
while sy-subrc &amp;lt;&amp;gt; 0.

  call function 'ENQUEUE_ESORDER'
   exporting
*   MODE_AUFK            = 'E'
     mandt                = sy-mandt
     aufnr                = p_aufnr
*   X_AUFNR              = ' '
*   _SCOPE               = '2'
      _wait                = 'X'
*   _COLLECT             = ' '
   exceptions
     foreign_lock         = 1
     system_failure       = 2
     others               = 3
            .
  wait up to 1 seconds.

endwhile.


* Once you get a lock, release it and call transaction CO02
call function 'DEQUEUE_ESORDER'
 EXPORTING
   MANDT           = SY-MANDT
   AUFNR           = p_aufnr.


call transaction 'CO02'.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2006 13:47:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-synchronisation-problem/m-p/1405478#M195744</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-07-10T13:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: BDC synchronisation problem.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-synchronisation-problem/m-p/1405479#M195745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the synchronous update mode while calling the transaction CO01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Documentation:&lt;/P&gt;&lt;P&gt;UPDATE upd &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;The UPDATE addition determines the processing mode for batch input processing. You can specify a character-type object for upd. Its possible content and its effect are displayed in the following table. Without use of one of the additions UPDATE or OPTIONS FROM, the effect is the same as if upd had the content "A". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;upd Effect &lt;/P&gt;&lt;P&gt;"A" Asynchronous update. Updates of called programs are executed in the same way as if in the COMMIT WORK statement the AND WAIT addition was not specified. &lt;/P&gt;&lt;P&gt;"S" Synchronous processing. Updates of the called programs are executed in the same way as if in the COMMIT WORK statement the AND WAIT addition had been specified. &lt;/P&gt;&lt;P&gt;"L" Local update. Updates of the called program are executed in such a way as if the SET UPDATE TASK LOCAL statement had been executed in it. &lt;/P&gt;&lt;P&gt;Other As for "A". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2006 13:49:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-synchronisation-problem/m-p/1405479#M195745</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-10T13:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: BDC synchronisation problem.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-synchronisation-problem/m-p/1405480#M195746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich !!&lt;/P&gt;&lt;P&gt;Update L doesn;t help i have tried it.&lt;/P&gt;&lt;P&gt;Wait of course works but it isn't good solution for me (becose o large amount of data to be processed i should trigger CO02 as ssoon as possible).&lt;/P&gt;&lt;P&gt;So the third way....Could you provide more detailed information how to achive that ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2006 13:52:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-synchronisation-problem/m-p/1405480#M195746</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-10T13:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: BDC synchronisation problem.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-synchronisation-problem/m-p/1405481#M195747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rich !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works fine for me &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR, Jacek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2006 14:43:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-synchronisation-problem/m-p/1405481#M195747</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-10T14:43:51Z</dc:date>
    </item>
  </channel>
</rss>

