<?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 updating LGORT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-updating-lgort/m-p/9258482#M1721572</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you are using&amp;nbsp; "&lt;STRONG&gt;BAPI_SALESORDER_CHANGE&lt;/STRONG&gt;" BAPI not this BAPI "&lt;STRONG style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;BAPI_SALESORDERCHANGE&lt;/STRONG&gt;" ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you change multiple sales documents within a loop using the &lt;STRONG&gt;BAPI_SALESORDER_CHANGE&lt;/STRONG&gt; ?&lt;/P&gt;&lt;P&gt;if 'Yes' then Check this "&lt;STRONG&gt;Note 1024902 - BAPI call of BAPI_SALESORDER_CHANGE in a loop&lt;/STRONG&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also Pass "&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;s_order_item_inx&lt;/SPAN&gt;-&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;UPDATEFLAG" = 'U' &lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Controls processing functions with the value in the UPDATEFLAG field (change indicator).&lt;/P&gt;&lt;P&gt;The following entries are available:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;' ':&amp;nbsp;&amp;nbsp; Create a new sales document item&lt;/LI&gt;&lt;LI&gt;I:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Create a new sales document item&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;U:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Change an existing sales document item&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;span class="lia-unicode-emoji" title=":anguished_face:"&gt;😧&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Delete an existing sales document item&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regard's&lt;/P&gt;&lt;P&gt;Smruti&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Mar 2013 03:57:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-03-07T03:57:31Z</dc:date>
    <item>
      <title>Problem updating LGORT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-updating-lgort/m-p/9258481#M1721571</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 am using BAPI_SALESORDERCHANGE to update the material of a sales order. &lt;/P&gt;&lt;P&gt;When I change the material, the storage location has to change also.&lt;/P&gt;&lt;P&gt;So I call my bapi with these lines : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&amp;nbsp; s_order_item_in-itm_number&amp;nbsp;&amp;nbsp; = [posnr].&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; s_order_item_inx-itm_number = [posnr].&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; s_order_item_in-material&amp;nbsp;&amp;nbsp;&amp;nbsp; = [matnr]&lt;BR /&gt;&amp;nbsp; s_order_item_inx-material&amp;nbsp;&amp;nbsp; = 'X'.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; s_order_item_in-plant&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = [werks].&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; s_order_item_inx-plant&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 'X'.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; s_order_item_in-ship_point&amp;nbsp; = [vstel].&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; s_order_item_inx-ship_point = 'X'.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; s_order_item_in-store_loc&amp;nbsp;&amp;nbsp; = [lgort].&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; s_order_item_inx-store_loc&amp;nbsp; = 'X'.&amp;nbsp; &lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The material and the ship point are changed successfully. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But sometimes, according to the material, the storage location is set to blank.&lt;/P&gt;&lt;P&gt;If I call the BAPI another time it works. LGORT is changed to the value I want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp; s_order_item_in-store_loc was NEVER blank&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp; MARC-LGPRO is not blank for this matnr / werks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I noticed that on VA33, when I put this particular material, the storage location is not copied from MARC-LGPRO but is also set to blank.&lt;/P&gt;&lt;P&gt;(Then I can change it before saving va33 - and it works) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the BAPI : when I change the material to this particular material, &lt;/P&gt;&lt;P&gt;the blank value seems to be more important to SAP that the value I put in s_order_item-store_loc. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody know / guess what is happening ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And could anybody give me a better solution that calling the BAPI_SALESORDERCHANGE twice ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: JC MARTIN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2013 14:28:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-updating-lgort/m-p/9258481#M1721571</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-03-06T14:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem updating LGORT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-updating-lgort/m-p/9258482#M1721572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you are using&amp;nbsp; "&lt;STRONG&gt;BAPI_SALESORDER_CHANGE&lt;/STRONG&gt;" BAPI not this BAPI "&lt;STRONG style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;BAPI_SALESORDERCHANGE&lt;/STRONG&gt;" ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you change multiple sales documents within a loop using the &lt;STRONG&gt;BAPI_SALESORDER_CHANGE&lt;/STRONG&gt; ?&lt;/P&gt;&lt;P&gt;if 'Yes' then Check this "&lt;STRONG&gt;Note 1024902 - BAPI call of BAPI_SALESORDER_CHANGE in a loop&lt;/STRONG&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also Pass "&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;s_order_item_inx&lt;/SPAN&gt;-&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;UPDATEFLAG" = 'U' &lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Controls processing functions with the value in the UPDATEFLAG field (change indicator).&lt;/P&gt;&lt;P&gt;The following entries are available:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;' ':&amp;nbsp;&amp;nbsp; Create a new sales document item&lt;/LI&gt;&lt;LI&gt;I:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Create a new sales document item&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;U:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Change an existing sales document item&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;span class="lia-unicode-emoji" title=":anguished_face:"&gt;😧&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Delete an existing sales document item&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regard's&lt;/P&gt;&lt;P&gt;Smruti&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 03:57:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-updating-lgort/m-p/9258482#M1721572</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-03-07T03:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: Problem updating LGORT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-updating-lgort/m-p/9258483#M1721573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you passing a 'U' in the ORDER_ITEM_INX-Update Flag?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure you are passing Space to 'Simulation Mode' as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 04:43:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-updating-lgort/m-p/9258483#M1721573</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-03-07T04:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: Problem updating LGORT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-updating-lgort/m-p/9258484#M1721574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you have to pass the Schedule lines information to BAPI .........try to pass and check whether its updating or not...........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Jack&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 07:06:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-updating-lgort/m-p/9258484#M1721574</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-03-07T07:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem updating LGORT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-updating-lgort/m-p/9258485#M1721575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;I didnt forget to pass the schedule lines.&lt;/P&gt;&lt;P&gt;I said my BAPI usually works...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it's only when I change the material to this particular material and when I change the storage location at the same time that I find a problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 09:59:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-updating-lgort/m-p/9258485#M1721575</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-03-07T09:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problem updating LGORT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-updating-lgort/m-p/9258486#M1721576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;BR /&gt;Thanks for your replies. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&amp;gt; BAPI_SALESORDERCHANGE doesnt exists... so yes, I am using BAPI_SALESORDER_CHANGE.&lt;BR /&gt;=&amp;gt; I'm not using it in a loop.&lt;BR /&gt;=&amp;gt; I didnt forget to set the updateflag to 'U' &lt;/P&gt;&lt;P&gt;=&amp;gt; I am not in simulation mode &lt;/P&gt;&lt;P&gt;=&amp;gt; I correctly passed the schedule lines to the BAPI&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN __jive_emoticon_name="alert" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1245/images/emoticons/alert.gif"&gt;&lt;/SPAN&gt;&amp;nbsp; I only get a problem when I change the material AND the storage location. &lt;/P&gt;&lt;P&gt;When I do this, SAP doesnt consider the value I've put for the storage location &lt;SPAN __jive_emoticon_name="cry" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1245/images/emoticons/cry.gif"&gt;&lt;/SPAN&gt;&lt;BR /&gt;I noticed that I face the same problem with every material that doesnt have a WM view. I dont know if it helps...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks for your help !&lt;BR /&gt;JC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 11:25:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-updating-lgort/m-p/9258486#M1721576</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-03-07T11:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem updating LGORT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-updating-lgort/m-p/9258487#M1721577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;You're right, &lt;STRONG style="background-color: #ffffff; color: #333333; font-size: 12px;"&gt;BAPI_SALESORDERCHANGE&lt;/STRONG&gt; doesnt exist &lt;SPAN __jive_emoticon_name="wink" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1245/images/emoticons/wink.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didnt forget to put s_order_item_inx-updateflag = 'U', &lt;/P&gt;&lt;P&gt;and that's why my BAPI usually works &lt;SPAN __jive_emoticon_name="wink" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1245/images/emoticons/wink.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's only this particular material that leads to something strange when I save (SAP not considering the value I put in LGORT)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 11:32:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-updating-lgort/m-p/9258487#M1721577</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-03-07T11:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem updating LGORT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-updating-lgort/m-p/9258488#M1721578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no idea ? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Mar 2013 13:21:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-updating-lgort/m-p/9258488#M1721578</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-03-20T13:21:48Z</dc:date>
    </item>
  </channel>
</rss>

