<?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 calling FM in background task in report program. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-calling-fm-in-background-task-in-report-program/m-p/9059563#M1702557</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marslon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please make sure that the FM is not using any of the frontend services like the class cl_gui_frontend_services. If yes it wont work in the background jobs.&lt;/P&gt;&lt;P&gt;I had a similar issue where this was the rootcause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Akhil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Oct 2012 09:52:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-10-29T09:52:26Z</dc:date>
    <item>
      <title>Problem calling FM in background task in report program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-calling-fm-in-background-task-in-report-program/m-p/9059561#M1702555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have issue to call a z-fm in background task in report program. This piece of code is working when I call the z-fm in background task in a user-exit.&lt;/P&gt;&lt;P&gt;But when I put these piece of codes in a report program, it doesn't even get triggered as I check from SM58 and no entries there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did I miss something here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;LOOP AT gt_mara INTO gwa_mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt; CALL &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;FUNCTION &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'Z_FM_MM_PLANT_VAL_EXT' &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;IN &lt;/SPAN&gt;BACKGROUND &lt;SPAN class="L0S52"&gt;TASK&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;EXPORTING&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tcode = gc_mm01&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wmara = gwa_mara&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wmarc = gwa_source_plant&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wmbew = gwa_source_valuation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate your opinions, thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Marlson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2012 09:40:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-calling-fm-in-background-task-in-report-program/m-p/9059561#M1702555</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-29T09:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problem calling FM in background task in report program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-calling-fm-in-background-task-in-report-program/m-p/9059562#M1702556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to code a COMMIT-WORK statement to trigger the execution of IN BACKGROUND TASK FM calls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2012 09:47:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-calling-fm-in-background-task-in-report-program/m-p/9059562#M1702556</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2012-10-29T09:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: Problem calling FM in background task in report program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-calling-fm-in-background-task-in-report-program/m-p/9059563#M1702557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marslon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please make sure that the FM is not using any of the frontend services like the class cl_gui_frontend_services. If yes it wont work in the background jobs.&lt;/P&gt;&lt;P&gt;I had a similar issue where this was the rootcause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Akhil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2012 09:52:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-calling-fm-in-background-task-in-report-program/m-p/9059563#M1702557</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-29T09:52:26Z</dc:date>
    </item>
  </channel>
</rss>

