<?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 Issue while using FM L_TO_CREATE_POSTING_CHANGE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-while-using-fm-l-to-create-posting-change/m-p/7760911#M1583636</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are facing an issue when creating a transfer order using the FM&lt;/P&gt;&lt;P&gt;L_TO_CREATE_POSTING_CHANGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have developed a custom program to change the status (Zfield) of a&lt;/P&gt;&lt;P&gt;specific SU in LQUA and update its stock category. The program creates&lt;/P&gt;&lt;P&gt;the material document and posting change document in the background.&lt;/P&gt;&lt;P&gt;During this process, the badi MB_DOCUMENT_BADI~MB_DOCUMENT_UPDATE gets&lt;/P&gt;&lt;P&gt;triggered where we call the above FM in the background task. During TO&lt;/P&gt;&lt;P&gt;creation, we have also implemented the badi LE_WM_LE_QUANT to update&lt;/P&gt;&lt;P&gt;the quant with the specific SU which was changed by the user in the&lt;/P&gt;&lt;P&gt;custom program. (We get this from the custom data base table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The TO is created for mvt types 321, 322, 343, 344, 349 and 350.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We do not pass the t_LUBQU table in the above FM so that the program&lt;/P&gt;&lt;P&gt;gets the updated quant from the badi. The issue is that the FM&lt;/P&gt;&lt;P&gt;sometimes does not process properly and ends up without creating the&lt;/P&gt;&lt;P&gt;TO. We are not able to get the exact scenario for which it is&lt;/P&gt;&lt;P&gt;failing. When we debug it, we get message S178 - Foreground processing&lt;/P&gt;&lt;P&gt;is required. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone let me know what is the problem here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Chetan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Mar 2011 14:26:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-03-30T14:26:16Z</dc:date>
    <item>
      <title>Issue while using FM L_TO_CREATE_POSTING_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-while-using-fm-l-to-create-posting-change/m-p/7760911#M1583636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are facing an issue when creating a transfer order using the FM&lt;/P&gt;&lt;P&gt;L_TO_CREATE_POSTING_CHANGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have developed a custom program to change the status (Zfield) of a&lt;/P&gt;&lt;P&gt;specific SU in LQUA and update its stock category. The program creates&lt;/P&gt;&lt;P&gt;the material document and posting change document in the background.&lt;/P&gt;&lt;P&gt;During this process, the badi MB_DOCUMENT_BADI~MB_DOCUMENT_UPDATE gets&lt;/P&gt;&lt;P&gt;triggered where we call the above FM in the background task. During TO&lt;/P&gt;&lt;P&gt;creation, we have also implemented the badi LE_WM_LE_QUANT to update&lt;/P&gt;&lt;P&gt;the quant with the specific SU which was changed by the user in the&lt;/P&gt;&lt;P&gt;custom program. (We get this from the custom data base table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The TO is created for mvt types 321, 322, 343, 344, 349 and 350.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We do not pass the t_LUBQU table in the above FM so that the program&lt;/P&gt;&lt;P&gt;gets the updated quant from the badi. The issue is that the FM&lt;/P&gt;&lt;P&gt;sometimes does not process properly and ends up without creating the&lt;/P&gt;&lt;P&gt;TO. We are not able to get the exact scenario for which it is&lt;/P&gt;&lt;P&gt;failing. When we debug it, we get message S178 - Foreground processing&lt;/P&gt;&lt;P&gt;is required. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone let me know what is the problem here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Chetan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2011 14:26:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-while-using-fm-l-to-create-posting-change/m-p/7760911#M1583636</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-30T14:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: Issue while using FM L_TO_CREATE_POSTING_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-while-using-fm-l-to-create-posting-change/m-p/7760912#M1583637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Chetan&lt;/P&gt;&lt;P&gt;I think you are calling the Function module at wrong place.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Check this OSS note - Note 1284654 - Caution with implementations of the BAdI: MB_DOCUMENT_BADI&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Please take opinion from BASIS / SAP on the same&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Madhan D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2011 08:44:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-while-using-fm-l-to-create-posting-change/m-p/7760912#M1583637</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-31T08:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: Issue while using FM L_TO_CREATE_POSTING_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-while-using-fm-l-to-create-posting-change/m-p/7760913#M1583638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Madhan,  But this is happening even if we run the function module independently from SE37.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2011 14:57:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-while-using-fm-l-to-create-posting-change/m-p/7760913#M1583638</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-31T14:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: Issue while using FM L_TO_CREATE_POSTING_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-while-using-fm-l-to-create-posting-change/m-p/7760914#M1583639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Chetan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you are facing this issue in standard SAP.&lt;/P&gt;&lt;P&gt;I suggest you to raise a OSS message to SAP to take there help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Madhan D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Apr 2011 08:00:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-while-using-fm-l-to-create-posting-change/m-p/7760914#M1583639</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-01T08:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Issue while using FM L_TO_CREATE_POSTING_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-while-using-fm-l-to-create-posting-change/m-p/7760915#M1583640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As mentioned by Madhan&lt;/P&gt;&lt;P&gt;you are trying to do a chicken and egg thing...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to commit the MM posting of the BAPI to create the change posting in WM before you can convert the change posting using the FM...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In other words.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call BAPI_GOODSMVMT_CREATE&lt;/P&gt;&lt;P&gt;commit work and wait&lt;/P&gt;&lt;P&gt;call L_TO_CREATE_POSTING_CHANGE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;be aware that you still might get locking problems. the commit work and wait does not handle that all the time correctly...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bjorn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2011 11:42:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-while-using-fm-l-to-create-posting-change/m-p/7760915#M1583640</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-15T11:42:36Z</dc:date>
    </item>
  </channel>
</rss>

