<?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: parallel processing of prg - avoid duplication. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-of-prg-avoid-duplication/m-p/4736206#M1111313</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;rather than providing a lock to file, how about locking the program not to execute in parallel sessions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[this link should help u|http://help.sap.com/saphelp_nw04/helpdata/EN/7b/f9813712f7434be10000009b38f8cf/content.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Jay Sadaram on Oct 29, 2008 11:50 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Oct 2008 15:49:42 GMT</pubDate>
    <dc:creator>former_member156446</dc:creator>
    <dc:date>2008-10-29T15:49:42Z</dc:date>
    <item>
      <title>parallel processing of prg - avoid duplication.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-of-prg-avoid-duplication/m-p/4736205#M1111312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Basically my program submits the file path into another program and file get executed there.  The program basically creates the Sales order for the corresponding&lt;/STRONG&gt; PO in the file.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Parallel processing :&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I opened my program in two parallel sessions .&lt;/P&gt;&lt;P&gt;I used the same file path/test file which creates sales order for the corresponding PO number in the file. &lt;/P&gt;&lt;P&gt;And ran two parallel sessions for the same program with this same file path/test file yet a time.  And two sales orders were created for the same PO number.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  But we donu2019t need this. We should make sure that duplicate sales orders for one corresponding should not get created.  For that reason, we are checking  in the middle of the program vbak entry and if there is no entry in vbak table then we are collecting SO data using bapi to create SO and at the end we are writing commit which creates SO. But this is not fulfilling the purpose of duplicate SO creation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because incase of parallel processing the program in each sessions checking the vbak entry where there is no entry u2026then creating sales order info and finally both sessions are u201Ccommitu201D executed and so that two Sales orders are getting creatred. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In this case, can I put file lock&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is there any way by which we can set up a lock at the file so that it cannot be used by another session if it is already in use by one session?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in ADVANCE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2008 15:45:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-of-prg-avoid-duplication/m-p/4736205#M1111312</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-29T15:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: parallel processing of prg - avoid duplication.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-of-prg-avoid-duplication/m-p/4736206#M1111313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;rather than providing a lock to file, how about locking the program not to execute in parallel sessions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[this link should help u|http://help.sap.com/saphelp_nw04/helpdata/EN/7b/f9813712f7434be10000009b38f8cf/content.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Jay Sadaram on Oct 29, 2008 11:50 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2008 15:49:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-of-prg-avoid-duplication/m-p/4736206#M1111313</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-10-29T15:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: parallel processing of prg - avoid duplication.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-of-prg-avoid-duplication/m-p/4736207#M1111314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just perform an exclusive lock on whatever unique object on your system (freedom) so only one instance will get the lock, and others will be waiting or abort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case put on an exclusive lock on the purchase order, (lock object EMEKKOE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2008 15:51:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-of-prg-avoid-duplication/m-p/4736207#M1111314</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2008-10-29T15:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: parallel processing of prg - avoid duplication.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-of-prg-avoid-duplication/m-p/4736208#M1111315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please explain/guide me with the code like how can I lock the whole program or part of the program.&lt;/P&gt;&lt;P&gt;Thanks for your replies.&lt;/P&gt;&lt;P&gt;THANKS AGAIN,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2008 16:23:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-of-prg-avoid-duplication/m-p/4736208#M1111315</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-29T16:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: parallel processing of prg - avoid duplication.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-of-prg-avoid-duplication/m-p/4736209#M1111316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sam refer to this[ link its neatly explained|http://help.sap.com/saphelp_nw04/helpdata/EN/cf/21eebf446011d189700000e8322d00/frameset.htm]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2008 16:48:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-of-prg-avoid-duplication/m-p/4736209#M1111316</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-10-29T16:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: parallel processing of prg - avoid duplication.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-of-prg-avoid-duplication/m-p/4736210#M1111317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jai,&lt;/P&gt;&lt;P&gt; the links you have given are table locks.&lt;/P&gt;&lt;P&gt;By looking that I did not get idea of how to lock the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Can I get the code to lock and unlock the program so that the when ever the program runs in parallel session will abort or wait. ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKS IN ADVANCE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2008 03:04:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-of-prg-avoid-duplication/m-p/4736210#M1111317</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-30T03:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: parallel processing of prg - avoid duplication.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-of-prg-avoid-duplication/m-p/4736211#M1111318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To lock &lt;/P&gt;&lt;P&gt;- the program (one job processed at a time) - use FM [ENQUEUE_ESRDIRE|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&amp;amp;query=enqueue_esrdire&amp;amp;adv=false&amp;amp;sortby=cm_rnd_rankvalue], &lt;/P&gt;&lt;P&gt;- the purchase order (one job per purchase order at a time) - use FM [ENQUEUE_EMEKKOE|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&amp;amp;query=enqueue_emekkoe&amp;amp;adv=false&amp;amp;sortby=cm_rnd_rankvalue]&lt;/P&gt;&lt;P&gt;For lock concept look at [The SAP Lock Concept (BC-CST-EQ)|http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCSTEQ/BCCSTEQ_PT.pdf] or [Function Modules for Lock Requests|http://help.sap.com/saphelp_nwpi71/helpdata/en/cf/21eebf446011d189700000e8322d00/frameset.htm], both locks will be released by COMMIT/ROLLBACK WORK or explicit call of DEQUEUE FM, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2008 07:01:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-of-prg-avoid-duplication/m-p/4736211#M1111318</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2008-10-30T07:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: parallel processing of prg - avoid duplication.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-of-prg-avoid-duplication/m-p/4736212#M1111319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;understand. &lt;/P&gt;&lt;P&gt;means if we lock ....on some thing , it unlock automatically after commit or rollback statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One question is &lt;/P&gt;&lt;P&gt;in my scenario the where/on what can I put the lock. I totally don't understand this.&lt;/P&gt;&lt;P&gt;Could you please help me with the required code also  because i am not good in lock and unlock ..FMs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANK YOU Sir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2008 14:13:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-of-prg-avoid-duplication/m-p/4736212#M1111319</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-30T14:13:34Z</dc:date>
    </item>
  </channel>
</rss>

