<?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: BAPI works individually but not inside a function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-works-individually-but-not-inside-a-function-module/m-p/5150105#M1193465</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. I tried that now but it is giving me a short dump with message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Non-update function module called for update.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably because this is a non update function module but I cannot turn it to an Update FM because I need to provide the exporting parameters since it is an iDoc posting FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Feb 2009 20:12:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-02T20:12:51Z</dc:date>
    <item>
      <title>BAPI works individually but not inside a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-works-individually-but-not-inside-a-function-module/m-p/5150103#M1193463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I have written a custom inbound iDoc processing function module where I am using the below function modules to create an operative network and activities within that network. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI_PS_INITIALIZATION&lt;/P&gt;&lt;P&gt;BAPI_BUS2002_CREATE&lt;/P&gt;&lt;P&gt;BAPI_TRANSACTION_COMMIT&lt;/P&gt;&lt;P&gt;BAPI_NETWORK_MAINTAIN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the last function module call I am doing COMMIT WORK AND WAIT and then BAPI_TRANSACTION_COMMIT and then executing another function module BAPI_NETWORK_COMP_ADD to create article components within the operative network activities. But this function module is not executing successfully and the e_message_table gives error that the activities does not exit. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The strange thing is that when I execute only BAPI_NETWORK_COMP_ADD in a separate test program with the same parameters hardcoded, it executes successfully.&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried the variations like STARTING NEW TASK and IN BACKGROUND TASK but still it is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone let me know if you have experienced this before and any other solutions which I can try?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2009 19:46:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-works-individually-but-not-inside-a-function-module/m-p/5150103#M1193463</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-02T19:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI works individually but not inside a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-works-individually-but-not-inside-a-function-module/m-p/5150104#M1193464</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;Try using "IN UPDATE TASK". This makes the function (or BAPI in this case) to run when the program is saving the actual data, and judging by the BAPI names, the last BAPI is changing the object created in the second BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Guy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2009 19:58:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-works-individually-but-not-inside-a-function-module/m-p/5150104#M1193464</guid>
      <dc:creator>GuyF</dc:creator>
      <dc:date>2009-02-02T19:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI works individually but not inside a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-works-individually-but-not-inside-a-function-module/m-p/5150105#M1193465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. I tried that now but it is giving me a short dump with message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Non-update function module called for update.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably because this is a non update function module but I cannot turn it to an Update FM because I need to provide the exporting parameters since it is an iDoc posting FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2009 20:12:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-works-individually-but-not-inside-a-function-module/m-p/5150105#M1193465</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-02T20:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI works individually but not inside a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-works-individually-but-not-inside-a-function-module/m-p/5150106#M1193466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I solved the problem by myself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For those who are still looking for the solution of this problem - refer to note 672750. As per this note you need to do some initialization. So just put a statement before BAPI_NETWORK_COMP_ADD call:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;CALL FUNCTION 'CO_ZF_DATA_RESET_COMPLETE'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the problem will be solved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2009 22:00:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-works-individually-but-not-inside-a-function-module/m-p/5150106#M1193466</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-02T22:00:02Z</dc:date>
    </item>
  </channel>
</rss>

