<?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: Table / Function that defines if a program is being executed(not-so-urgent) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-function-that-defines-if-a-program-is-being-executed-not-so-urgent/m-p/8292150#M1634826</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think i stole the idea from Thomas(may be) ... Only he &amp;amp; JB have these brilliant ideas &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Suhas Saha on Oct 28, 2011 11:27 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Oct 2011 05:56:42 GMT</pubDate>
    <dc:creator>SuhaSaha</dc:creator>
    <dc:date>2011-10-28T05:56:42Z</dc:date>
    <item>
      <title>Table / Function that defines if a program is being executed(not-so-urgent)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-function-that-defines-if-a-program-is-being-executed-not-so-urgent/m-p/8292147#M1634823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Could you please help me.&lt;/P&gt;&lt;P&gt;I required to know if a program is being executed in a specific moment.&lt;/P&gt;&lt;P&gt;If you know any table or a function, than indicates if a program is being executed in that moment please tell me.&lt;/P&gt;&lt;P&gt;I search for a function and found this one, but i dont know how to use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ENQUEUE_ESFUNCTION'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   MODE_TFDIR           = 'E'&lt;/P&gt;&lt;P&gt;   FUNCNAME             =&lt;/P&gt;&lt;P&gt;   X_FUNCNAME           = ' '&lt;/P&gt;&lt;P&gt;   _SCOPE               = '2'&lt;/P&gt;&lt;P&gt;   _WAIT                = ' '&lt;/P&gt;&lt;P&gt;   _COLLECT             = ' '&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   FOREIGN_LOCK         = 1&lt;/P&gt;&lt;P&gt;   SYSTEM_FAILURE       = 2&lt;/P&gt;&lt;P&gt;   OTHERS               = 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me !!!!!.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help and best regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JRZ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;lt;Subject line changed&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Suhas Saha on Oct 28, 2011 10:37 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2011 23:06:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-function-that-defines-if-a-program-is-being-executed-not-so-urgent/m-p/8292147#M1634823</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-27T23:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: Table / Function that defines if a program is being executed(not-so-urgent)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-function-that-defines-if-a-program-is-being-executed-not-so-urgent/m-p/8292148#M1634824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can use transaction code STAT&lt;/P&gt;&lt;P&gt;writer/painter reports -view stats via SE16 in table T803J&lt;/P&gt;&lt;P&gt;reports and transactions execution info is stored in table MONI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also check this sample code from other thread.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;internal tables for use counterdata: &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;begin of list occurs 5. &lt;/P&gt;&lt;P&gt;include structure sapwlserv.&lt;/P&gt;&lt;P&gt;data: end of list.&lt;/P&gt;&lt;P&gt;data: begin of applicat occurs 0. &lt;/P&gt;&lt;P&gt;include structure sapwlustcx.&lt;/P&gt;&lt;P&gt;data: end of applicat.&lt;/P&gt;&lt;P&gt;data: begin of applica_ occurs 0. &lt;/P&gt;&lt;P&gt;include structure sapwlustcx.&lt;/P&gt;&lt;P&gt;data: end of applica_.&lt;/P&gt;&lt;P&gt;data: begin of applicau occurs 0, &lt;/P&gt;&lt;P&gt;entry_id like sapwlustcx-entry_id, &lt;/P&gt;&lt;P&gt;account like sapwlustcx-account, &lt;/P&gt;&lt;P&gt;count like sapwlustcx-count, &lt;/P&gt;&lt;P&gt;: end of applicau.&lt;/P&gt;&lt;P&gt;data: wa_applicau like applicau.&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&amp;amp; Form MONI&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;form moni. &lt;/P&gt;&lt;P&gt;data: l_host like sapwlserv-hostshort. &lt;/P&gt;&lt;P&gt;m_start = p_usedt.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;get server &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;call function 'SAPWL_SERVLIST_GET_LIST' &lt;/P&gt;&lt;P&gt;tables &lt;/P&gt;&lt;P&gt;list = list. &lt;/P&gt;&lt;P&gt;do. &lt;/P&gt;&lt;P&gt;loop at list.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;loop on server &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;check not list-instshort is initial. &lt;/P&gt;&lt;P&gt;l_host = list-instshort.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;get statistics per month and server &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;perform workload using m_start l_host. &lt;/P&gt;&lt;P&gt;endloop. &lt;/P&gt;&lt;P&gt;add 31 to m_start. &lt;/P&gt;&lt;P&gt;if m_start &amp;gt; sy-datum. &lt;/P&gt;&lt;P&gt;exit. &lt;/P&gt;&lt;P&gt;endif. &lt;/P&gt;&lt;P&gt;enddo. &lt;/P&gt;&lt;P&gt;sort applica_ by entry_id. &lt;/P&gt;&lt;P&gt;sort applicau by entry_id count descending.&lt;/P&gt;&lt;P&gt;endform. " MONI&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&amp;amp; Form WORKLOAD&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;form workload using p_start like sy-datum &lt;/P&gt;&lt;P&gt;p_host like sapwlserv-hostshort. &lt;/P&gt;&lt;P&gt;refresh: applica_.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;read application statistic from MONI &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;call function 'SAPWL_WORKLOAD_GET_STATISTIC' &lt;/P&gt;&lt;P&gt;exporting &lt;/P&gt;&lt;P&gt;periodtype = 'M' &lt;/P&gt;&lt;P&gt;hostid = p_host &lt;/P&gt;&lt;P&gt;startdate = p_start &lt;/P&gt;&lt;P&gt;only_application_statistic = 'X' &lt;/P&gt;&lt;P&gt;tables &lt;/P&gt;&lt;P&gt;application_statistic = applica_ &lt;/P&gt;&lt;P&gt;exceptions &lt;/P&gt;&lt;P&gt;unknown_periodtype = 1 &lt;/P&gt;&lt;P&gt;no_data_found = 2 &lt;/P&gt;&lt;P&gt;others = 3. &lt;/P&gt;&lt;P&gt;sort applica_ by entry_id account. &lt;/P&gt;&lt;P&gt;loop at applica_ where entry_id(1) ge 'Y'. "#EC PORTABLE &lt;/P&gt;&lt;P&gt;clear wa_applicau-entry_id. &lt;/P&gt;&lt;P&gt;wa_applicau-entry_id(25) = applica_-entry_id. &lt;/P&gt;&lt;P&gt;wa_applicau-account = applica_-account. &lt;/P&gt;&lt;P&gt;wa_applicau-count = applica_-count. &lt;/P&gt;&lt;P&gt;collect wa_applicau into applicau. &lt;/P&gt;&lt;P&gt;endloop. &lt;/P&gt;&lt;P&gt;sort applicau by entry_id count descending. &lt;/P&gt;&lt;P&gt;applica_-ttype = space. &lt;/P&gt;&lt;P&gt;applica_-account = space. &lt;/P&gt;&lt;P&gt;modify applica_ transporting ttype account where ttype ne space.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;collect only enhancements statistic &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;if p_temp = 'X'. &lt;/P&gt;&lt;P&gt;loop at applica_. &lt;/P&gt;&lt;P&gt;applica_-entry_id+25(48) = space. &lt;/P&gt;&lt;P&gt;collect applica_ into applicat. &lt;/P&gt;&lt;P&gt;endloop. &lt;/P&gt;&lt;P&gt;else. &lt;/P&gt;&lt;P&gt;loop at applica_ where entry_id(1) ge 'Y'. "#EC PORTABLE &lt;/P&gt;&lt;P&gt;applica_-entry_id+25(48) = space. &lt;/P&gt;&lt;P&gt;collect applica_ into applicat. &lt;/P&gt;&lt;P&gt;endloop. &lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endform. " WORKLOAD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2011 04:11:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-function-that-defines-if-a-program-is-being-executed-not-so-urgent/m-p/8292148#M1634824</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-28T04:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: Table / Function that defines if a program is being executed(not-so-urgent)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-function-that-defines-if-a-program-is-being-executed-not-so-urgent/m-p/8292149#M1634825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you check fm &lt;STRONG&gt;th_wpinfo&lt;/STRONG&gt; ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good subject line creativity by Suhas &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2011 05:17:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-function-that-defines-if-a-program-is-being-executed-not-so-urgent/m-p/8292149#M1634825</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2011-10-28T05:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: Table / Function that defines if a program is being executed(not-so-urgent)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-function-that-defines-if-a-program-is-being-executed-not-so-urgent/m-p/8292150#M1634826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think i stole the idea from Thomas(may be) ... Only he &amp;amp; JB have these brilliant ideas &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Suhas Saha on Oct 28, 2011 11:27 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2011 05:56:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-function-that-defines-if-a-program-is-being-executed-not-so-urgent/m-p/8292150#M1634826</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2011-10-28T05:56:42Z</dc:date>
    </item>
  </channel>
</rss>

