<?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 with create two OT with the same storage unit. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-create-two-ot-with-the-same-storage-unit/m-p/7224742#M1524254</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much Jelena.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Sep 2010 06:07:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-09-16T06:07:57Z</dc:date>
    <item>
      <title>Problem with create two OT with the same storage unit.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-create-two-ot-with-the-same-storage-unit/m-p/7224738#M1524250</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 only speak a little englis so I wait that you can understandme. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a storage unit thay I want to move. I need to move from a storage bin A to storage bin B, and, move the same unit from storage bin B to storage bin D.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I have, two L_TO_CREATE_MULTIPLE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need use a SAP LUW because, if one bapi fail, I don't want to execute anything. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try it to use  SET UPDATE TASK LOCAL or in the parameters of L_TO_CREATE_MULTIPLE check I_UPDATE_TASK. However, when I do the second bapi, this return an error because the data of first bapi aren't in the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I make it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Aug 2010 09:26:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-create-two-ot-with-the-same-storage-unit/m-p/7224738#M1524250</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-31T09:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with create two OT with the same storage unit.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-create-two-ot-with-the-same-storage-unit/m-p/7224739#M1524251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it can't be done as just one LUW because you &lt;STRONG&gt;have to&lt;/STRONG&gt; commit the update after the first BAPI run. Otherwise the second BAPI just has nothing to work with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I understand the task correctly, it should go like this:&lt;/P&gt;&lt;P&gt;1) Run first BAPI. If everything is OK, commit work. Otherwise do not commit and exit.&lt;/P&gt;&lt;P&gt;2) Run second BAPI. If there is a problem with the second BAPI, either you'll have to accept this and have it handled manually or run a "reverse" of the first BAPI, i.e. put the stock back where it was.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems to be a rather strange process though (why do A-&amp;gt;B-&amp;gt;C and not just move from A to C?) and I would ask your functional consultant if there could be a better solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Aug 2010 21:52:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-create-two-ot-with-the-same-storage-unit/m-p/7224739#M1524251</guid>
      <dc:creator>Jelena_Perfiljeva</dc:creator>
      <dc:date>2010-08-31T21:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with create two OT with the same storage unit.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-create-two-ot-with-the-same-storage-unit/m-p/7224740#M1524252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jelena,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are ok, is not possible use two times bapi create ot, because, it's necesary update changes in the database.&lt;/P&gt;&lt;P&gt;My problem, is, in the bapi, there is a case in that the bapi fail, and don't pass for the exceptions. Then, I can't try to reverse the first bapi. I want use the luw in this case. I try to see how can I capture this error to manage the exception in the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Sep 2010 05:23:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-create-two-ot-with-the-same-storage-unit/m-p/7224740#M1524252</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-06T05:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with create two OT with the same storage unit.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-create-two-ot-with-the-same-storage-unit/m-p/7224741#M1524253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If this is really a 'hard' error, BAPI should return it IMHO. Otherwise you might want to send a note to SAP (in the worst case you'll get some explanation). But sometimes BAPI returns a type I or W message when it's really an error in the business sense. Unfortunately, these are not easy to catch and it requires a lot of testing and trial and error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure to analyze all the messages returned by BAPI. Once I had to catch a specific error message by class/number and it was actually discovered only after we went live (a very rare exception).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Sep 2010 13:51:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-create-two-ot-with-the-same-storage-unit/m-p/7224741#M1524253</guid>
      <dc:creator>Jelena_Perfiljeva</dc:creator>
      <dc:date>2010-09-07T13:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with create two OT with the same storage unit.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-create-two-ot-with-the-same-storage-unit/m-p/7224742#M1524254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much Jelena.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Sep 2010 06:07:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-create-two-ot-with-the-same-storage-unit/m-p/7224742#M1524254</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-16T06:07:57Z</dc:date>
    </item>
  </channel>
</rss>

