<?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 Problem with Update function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-update-function-module/m-p/8602473#M1662492</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: 11.25pt;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: Arial, sans-serif;"&gt;Hello All,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 11.25pt;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: Arial, sans-serif;"&gt;We implemented BADI 'BADI_SD_BILLING' and an update function module will be called with update task mode in the method 'INVOICE_DOCUMENT_ADD' .&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 11.25pt;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: Arial, sans-serif;"&gt;Initially, a global internal table will be populated in another function module of the same function group and it will be exported.&amp;nbsp;&amp;nbsp; But when we tried to use that table data in update function module, it is not available.&amp;nbsp; We tried with SET PARAMETER ID, EXPORT &amp;amp; IMPORT TO MEMORY ID and other options. But none of them are useful. We cannot use shared memory as it will be accessible for all users. We would need to access this data only to a specific user and that too for that specific session. Could you please suggest us the possible approach to access this global table. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 11.25pt;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: Arial, sans-serif;"&gt;Thank you very much.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 11.25pt;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: Arial, sans-serif;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 11.25pt;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: Arial, sans-serif;"&gt;Sri&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Mar 2012 09:06:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-03-29T09:06:56Z</dc:date>
    <item>
      <title>Problem with Update function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-update-function-module/m-p/8602473#M1662492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: 11.25pt;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: Arial, sans-serif;"&gt;Hello All,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 11.25pt;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: Arial, sans-serif;"&gt;We implemented BADI 'BADI_SD_BILLING' and an update function module will be called with update task mode in the method 'INVOICE_DOCUMENT_ADD' .&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 11.25pt;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: Arial, sans-serif;"&gt;Initially, a global internal table will be populated in another function module of the same function group and it will be exported.&amp;nbsp;&amp;nbsp; But when we tried to use that table data in update function module, it is not available.&amp;nbsp; We tried with SET PARAMETER ID, EXPORT &amp;amp; IMPORT TO MEMORY ID and other options. But none of them are useful. We cannot use shared memory as it will be accessible for all users. We would need to access this data only to a specific user and that too for that specific session. Could you please suggest us the possible approach to access this global table. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 11.25pt;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: Arial, sans-serif;"&gt;Thank you very much.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 11.25pt;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: Arial, sans-serif;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 11.25pt;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: Arial, sans-serif;"&gt;Sri&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2012 09:06:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-update-function-module/m-p/8602473#M1662492</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-29T09:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Update function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-update-function-module/m-p/8602474#M1662493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well Update function module execution is controlled by update work process and not the dialog work procees. So, you are not getting the values.&lt;/P&gt;&lt;P&gt;Can't you modify the function module interface ( I am assuming the update function module is a Z-fm ) to pass the table data while calling the Update FM itself( registering it with IN UPDATE TASK)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2012 09:26:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-update-function-module/m-p/8602474#M1662493</guid>
      <dc:creator>Private_Member_49934</dc:creator>
      <dc:date>2012-03-29T09:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Update function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-update-function-module/m-p/8602475#M1662494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We tried by sending that global table as an importing parameter for Update FM. But it was also failed. Any more possible options?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2012 09:32:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-update-function-module/m-p/8602475#M1662494</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-29T09:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Update function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-update-function-module/m-p/8602476#M1662495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When the function module will be submitted it will not use the values of the function group in the current luw. You could try using a perform at commit, in the form, read the data stored by the firszt function module, use a "read" fonction module for that, and call in update task the actual update tasl function module.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;* somewhere during transaction&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;CALL FUNCION "Z_CALCULATE_DATA'. " store data in FG TOP&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;* somewhere (else) during transaction&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;PERFORM FORM_AT_COMMIT ON COMMIT.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;* Transaction validation&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;COMMIT WORK.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;* Form&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;FORM FORM AT COMMIT. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;CALL FUNCTION 'Z_READ_DATA'. " read data back from FG&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;CALL FUNCTION 'Z_UPDATE_DATA' IN UPDATE TASK. " pass the data in parameters&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;BR /&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2012 09:33:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-update-function-module/m-p/8602476#M1662495</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2012-03-29T09:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Update function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-update-function-module/m-p/8602477#M1662496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After the update task FM&amp;nbsp; call, the COMMIT WORK will be called in the standard code. Do you want me to call it before the update FM call too?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2012 09:39:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-update-function-module/m-p/8602477#M1662496</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-29T09:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Update function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-update-function-module/m-p/8602478#M1662497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, the COMMIT WORK I mentionned is the COMMIT WORK of the transaction.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2012 09:48:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-update-function-module/m-p/8602478#M1662497</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2012-03-29T09:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Update function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-update-function-module/m-p/8602479#M1662498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you need to declare the variable correctly in the function group..&lt;/P&gt;&lt;P&gt;in the function module menu Goto -&amp;gt; Global data .. you will reach the top include for both the FMs..&lt;/P&gt;&lt;P&gt;make sure they both are pointing to the same location and having same variable names...&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.saptechnical.com/Tips/ABAP/ObjectOrientation/UsingFG.htm"&gt;see simple example here&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2012 10:00:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-update-function-module/m-p/8602479#M1662498</guid>
      <dc:creator>gaurab_banerji</dc:creator>
      <dc:date>2012-03-29T10:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Update function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-update-function-module/m-p/8602480#M1662499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I have declared in top include itself. But the table does not contain the data in update FM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2012 10:46:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-update-function-module/m-p/8602480#M1662499</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-29T10:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Update function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-update-function-module/m-p/8602481#M1662500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;The functions in update task can not read data from the transaction LUW. Try to export and import the data into shared memory or shared buffer or in better way you can use shared objects technology&lt;/P&gt;&lt;P&gt;Check this link &lt;A href="http://help.sap.com/erp2005_ehp_02/helpdata//EN/14/dafc3e9d3b6927e10000000a114084/frameset.htm"&gt;http://help.sap.com/erp2005_ehp_02/helpdata//EN/14/dafc3e9d3b6927e10000000a114084/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2012 14:31:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-update-function-module/m-p/8602481#M1662500</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-29T14:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Update function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-update-function-module/m-p/8602482#M1662501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;Solved the issue by creating one normal function module and exporting the relevant table from it. Then enhanced the update FM with one more paramter in Tables so that the same data is available within Update FM.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2012 09:37:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-update-function-module/m-p/8602482#M1662501</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-04-02T09:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Update function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-update-function-module/m-p/8602483#M1662502</link>
      <description>&lt;P&gt;As it was mentioned earlier, the update task does not see memory from LUW. &lt;/P&gt;&lt;P&gt;The best solution is to add parameter to function module called in update.&lt;/P&gt;&lt;P&gt;If that is not an option you may also try to create own function module that exports parameters to memory. If this custom function module is called first, in update mode, then in your destination update function module you will be able to useIMPORT FROM MEMORY ID, data will be there.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 12:32:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-update-function-module/m-p/8602483#M1662502</guid>
      <dc:creator>adam_krawczyk1</dc:creator>
      <dc:date>2021-07-08T12:32:45Z</dc:date>
    </item>
  </channel>
</rss>

