<?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: ABAP Program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-program/m-p/1246388#M143680</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Beserithan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;long time ago since you post this message, and now I have the same need as you had... could you please tell me how did you solve your problem?? how did you get the information about when was the last time a program/transaction was executed ? I would appreciated very much your help, even if is it a ABAP code, ok?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Caroline&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Jan 2009 09:54:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-15T09:54:37Z</dc:date>
    <item>
      <title>ABAP Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-program/m-p/1246383#M143675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to find out, when SAP Z-program was run last.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to find it out except the Transactions &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STAT, ST03.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Beserithan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2006 08:32:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-program/m-p/1246383#M143675</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-12T08:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-program/m-p/1246384#M143676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check..&lt;/P&gt;&lt;P&gt;st22 and sm04..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2006 08:33:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-program/m-p/1246384#M143676</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-12T08:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-program/m-p/1246385#M143677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use transaction code STAT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For writer/painter reports you can view stats via SE16 in table T803J. For all reports and transactions execution info is stored in table MONI. This is the same info available via ST03 and to some extent STAT. Info for MONI is collected from the UNIX servers and totalled on MONI by day, week, month, year. Retention periods are set by the Basis group. We have a custom table where this information is stored by period for historical and licensing purposes. Be sure to use the SAP function modules to retrieve data from 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;P&gt;&lt;/P&gt;&lt;P&gt;&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; &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; &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; &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; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  MONI&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&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; &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; &lt;/P&gt;&lt;P&gt;  add 31 to m_start.    &lt;/P&gt;&lt;P&gt; &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; &lt;/P&gt;&lt;P&gt;enddo.  &lt;/P&gt;&lt;P&gt; &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; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  WORKLOAD&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form workload using    p_start like sy-datum                         &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;p_host  like  sapwlserv-hostshort.  &lt;/P&gt;&lt;P&gt;refresh: applica_.&lt;/P&gt;&lt;P&gt; &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; &lt;/P&gt;&lt;P&gt;sort applica_ by entry_id account.  &lt;/P&gt;&lt;P&gt; &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; &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;P&gt; &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; &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;&lt;/P&gt;&lt;P&gt;SPAU tcode also may help u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STAT too check&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That data is stored in a statistics file. To get to it, try using function module SAPWL_STATREC_READ_FILE. Before calling the function, you will need to get the path of the statistics file, and to do that try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL 'C_SAPGPARAM' ID 'NAME' FIELD 'stat/file'&lt;/P&gt;&lt;P&gt;ID 'VALUE' FIELD WS_PATH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will need to use WS_PATH on the STATISTIC_FILE exporting parameter on the call to SAPWL_STATREC_READ_FILE. You should get the data back in the V2 records (releases over 4.0) and in V1 (releases &amp;lt; 4.0).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: kishan negi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2006 08:36:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-program/m-p/1246385#M143677</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-12T08:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-program/m-p/1246386#M143678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The trasaction stat is limited because i want all the execution date even if it is 3 years ago. &lt;/P&gt;&lt;P&gt;I have tryied the transaction st03 but it is limited to 3 months ago. &lt;/P&gt;&lt;P&gt;check transaction STAT and it's report RSSTAT00.&lt;/P&gt;&lt;P&gt;U can copy RSSTAT00 into ZRSSTAT00 and modify corresponding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2006 08:37:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-program/m-p/1246386#M143678</guid>
      <dc:creator>vinod_gunaware2</dc:creator>
      <dc:date>2006-04-12T08:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-program/m-p/1246387#M143679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;use &amp;lt;b&amp;gt;STAT&amp;lt;/b&amp;gt; or &amp;lt;b&amp;gt;SM04&amp;lt;/b&amp;gt; transaction&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2006 08:39:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-program/m-p/1246387#M143679</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-12T08:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-program/m-p/1246388#M143680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Beserithan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;long time ago since you post this message, and now I have the same need as you had... could you please tell me how did you solve your problem?? how did you get the information about when was the last time a program/transaction was executed ? I would appreciated very much your help, even if is it a ABAP code, ok?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Caroline&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2009 09:54:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-program/m-p/1246388#M143680</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-15T09:54:37Z</dc:date>
    </item>
  </channel>
</rss>

