<?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: Need error message in foregorund,when its executed in background in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-error-message-in-foregorund-when-its-executed-in-background/m-p/7739615#M1581680</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;solved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Jun 2011 07:39:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-06-02T07:39:48Z</dc:date>
    <item>
      <title>Need error message in foregorund,when its executed in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-error-message-in-foregorund-when-its-executed-in-background/m-p/7739612#M1581677</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 have a program which runs in background every hour, so when the background job is active and if the same program is executed in foreground, i should throw an error in the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any table which has this information, one more thing, the status of the job should be active and not released that I should throw an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls respond.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2011 18:24:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-error-message-in-foregorund-when-its-executed-in-background/m-p/7739612#M1581677</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-17T18:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: Need error message in foregorund,when its executed in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-error-message-in-foregorund-when-its-executed-in-background/m-p/7739613#M1581678</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;You can do this be checking the table TBTCO with start date and Job status as 'R'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vikram.M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2011 18:47:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-error-message-in-foregorund-when-its-executed-in-background/m-p/7739613#M1581678</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-17T18:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: Need error message in foregorund,when its executed in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-error-message-in-foregorund-when-its-executed-in-background/m-p/7739614#M1581679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to use ENQUE and DEQUEUE function modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In INITIALIZATION event, add the following code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  CALL FUNCTION 'ENQUEUE_ESVARIANT'
       EXPORTING
            mandt          = sy-mandt
            report         = g_repid         "copy of SY-REPID
       EXCEPTIONS
            foreign_lock   = 1
            system_failure = 2
            OTHERS         = 3.
  IF sy-subrc &amp;lt;&amp;gt; 0.
*  Somehow display your error message here.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In END-OF-SELECTION event, dequeue using the following code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  CALL FUNCTION 'DEQUEUE_ESVARIANT'
       EXPORTING
            mandt  = sy-mandt
            report = g_repid.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2011 19:28:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-error-message-in-foregorund-when-its-executed-in-background/m-p/7739614#M1581679</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-17T19:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: Need error message in foregorund,when its executed in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-error-message-in-foregorund-when-its-executed-in-background/m-p/7739615#M1581680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;solved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2011 07:39:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-error-message-in-foregorund-when-its-executed-in-background/m-p/7739615#M1581680</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-02T07:39:48Z</dc:date>
    </item>
  </channel>
</rss>

