<?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: calling a program when a table is updated in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-program-when-a-table-is-updated/m-p/1858545#M362690</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thks prasanth, i havent tried this with customized tables. is that possibel of this too?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Feb 2007 05:09:39 GMT</pubDate>
    <dc:creator>prabhu_s2</dc:creator>
    <dc:date>2007-02-05T05:09:39Z</dc:date>
    <item>
      <title>calling a program when a table is updated</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-program-when-a-table-is-updated/m-p/1858543#M362688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to run a program whenever &amp;lt;b&amp;gt;a table&amp;lt;/b&amp;gt; is updated. Say it might be a customized table or a std table. anymean we can achieve this? if yes, let me know more in detail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i though of having the report program specific to the table which will run for every 5 mins and check if the table is updated. but internaly this might be bit complicated i believe. anyother suggestion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regds&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2007 05:04:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-program-when-a-table-is-updated/m-p/1858543#M362688</guid>
      <dc:creator>prabhu_s2</dc:creator>
      <dc:date>2007-02-05T05:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: calling a program when a table is updated</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-program-when-a-table-is-updated/m-p/1858544#M362689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prabhu,&lt;/P&gt;&lt;P&gt;      If you are updating the table through any transaction then you can create a workflow with triggered events or check if Table CDHDR or CDPOS is updated to find the tables that were changed and trigger your program accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Prashanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2007 05:07:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-program-when-a-table-is-updated/m-p/1858544#M362689</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-05T05:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: calling a program when a table is updated</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-program-when-a-table-is-updated/m-p/1858545#M362690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thks prasanth, i havent tried this with customized tables. is that possibel of this too?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2007 05:09:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-program-when-a-table-is-updated/m-p/1858545#M362690</guid>
      <dc:creator>prabhu_s2</dc:creator>
      <dc:date>2007-02-05T05:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: calling a program when a table is updated</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-program-when-a-table-is-updated/m-p/1858546#M362691</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 below code demonstrates how to create a simple report which automatically updates itself every 10 &lt;/P&gt;&lt;P&gt;seconds and displays the new results on screen. This is without any intervention from the user. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Automatic refresh report&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*.......................................................................&lt;/P&gt;&lt;P&gt;*: Report:  ZAUTO_REFRESH                                              :&lt;/P&gt;&lt;P&gt;*:                                                                     :&lt;/P&gt;&lt;P&gt;*: Author:  SAPDev.co.uk                                               :&lt;/P&gt;&lt;P&gt;*:                                                                     :&lt;/P&gt;&lt;P&gt;*: Description: Display a report which automatically updates itself    :&lt;/P&gt;&lt;P&gt;*:              every 10 seconds                                       :&lt;/P&gt;&lt;P&gt;*:                                                                     :&lt;/P&gt;&lt;P&gt;*:.....................................................................:&lt;/P&gt;&lt;P&gt;REPORT zauto_refresh .&lt;/P&gt;&lt;P&gt;DATA: g_init_once,&lt;/P&gt;&lt;P&gt;      ok_code(20),&lt;/P&gt;&lt;P&gt;      g_ref_from_timer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF t_ekko,&lt;/P&gt;&lt;P&gt;  ebeln TYPE ekpo-ebeln,&lt;/P&gt;&lt;P&gt;  ebelp TYPE ekpo-ebelp,&lt;/P&gt;&lt;P&gt;  statu TYPE ekpo-statu,&lt;/P&gt;&lt;P&gt;  aedat TYPE ekpo-aedat,&lt;/P&gt;&lt;P&gt;  matnr TYPE ekpo-matnr,&lt;/P&gt;&lt;P&gt;  menge TYPE ekpo-menge,&lt;/P&gt;&lt;P&gt;  meins TYPE ekpo-meins,&lt;/P&gt;&lt;P&gt;  netpr TYPE ekpo-netpr,&lt;/P&gt;&lt;P&gt;  peinh TYPE ekpo-peinh,&lt;/P&gt;&lt;P&gt; END OF t_ekko.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: it_ekko TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,&lt;/P&gt;&lt;P&gt;      wa_ekko TYPE t_ekko.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF g_init_once &amp;lt;&amp;gt; 'X'.&lt;/P&gt;&lt;P&gt;  g_init_once = 'X'.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'Z_ENQUE_SLEEP'&lt;/P&gt;&lt;P&gt;     STARTING NEW TASK 'WAIT'&lt;/P&gt;&lt;P&gt;     PERFORMING when_finished ON END OF TASK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE:/ 'wait for 10 sec....'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT USER-COMMAND.&lt;/P&gt;&lt;P&gt;  CASE ok_code.&lt;/P&gt;&lt;P&gt;    WHEN 'FCT_R'.&lt;/P&gt;&lt;P&gt;      SELECT ebeln ebelp statu aedat matnr menge meins netpr peinh&lt;/P&gt;&lt;P&gt;       UP TO 10 ROWS&lt;/P&gt;&lt;P&gt;        FROM ekpo&lt;/P&gt;&lt;P&gt;        INTO TABLE it_ekko.&lt;/P&gt;&lt;P&gt;      WRITE:/ sy-uzeit. "Time&lt;/P&gt;&lt;P&gt;      LOOP AT it_ekko INTO wa_ekko.&lt;/P&gt;&lt;P&gt;        WRITE:/ wa_ekko-ebeln, wa_ekko-ebelp.&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;      sy-lsind = 0.&lt;/P&gt;&lt;P&gt;      IF g_ref_from_timer = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'Z_ENQUE_SLEEP'&lt;/P&gt;&lt;P&gt;          STARTING NEW TASK 'INFO'&lt;/P&gt;&lt;P&gt;          PERFORMING when_finished ON END OF TASK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        g_ref_from_timer = ''.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      FORM WHEN_FINISHED                                            *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      ........                                                      *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; --&amp;gt;  TASKNAME                                                      *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM when_finished USING taskname.&lt;/P&gt;&lt;P&gt;  RECEIVE RESULTS FROM FUNCTION 'Z_ENQUE_SLEEP'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  g_ref_from_timer = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Trigger an event to run the at user-command&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  SET USER-COMMAND 'FCT_R'.&lt;/P&gt;&lt;P&gt;  ok_code = 'FCT_R'.&lt;/P&gt;&lt;P&gt;  sy-ucomm = 'FCT_R'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " WHEN_FINISHED&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;*Signiture for creating Function module used above&lt;/P&gt;&lt;P&gt;FUNCTION Z_ENQUE_SLEEP.&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Local interface:&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt; wait up to 10 seconds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Hope this helps.&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sipra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2007 05:28:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-program-when-a-table-is-updated/m-p/1858546#M362691</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-05T05:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: calling a program when a table is updated</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-program-when-a-table-is-updated/m-p/1858547#M362692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thkx sipra...this was indeed very helpful...but my q is how to track execute a report which is specific to table:mara when there is a table updated for the same?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2007 05:32:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-program-when-a-table-is-updated/m-p/1858547#M362692</guid>
      <dc:creator>prabhu_s2</dc:creator>
      <dc:date>2007-02-05T05:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: calling a program when a table is updated</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-program-when-a-table-is-updated/m-p/1858548#M362693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prabhu,&lt;/P&gt;&lt;P&gt;          I hope it will work since customized tabele will also be update through any transaction so you can check it out by manually entering values in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Prashanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2007 05:35:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-program-when-a-table-is-updated/m-p/1858548#M362693</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-05T05:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: calling a program when a table is updated</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-program-when-a-table-is-updated/m-p/1858549#M362694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thkx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me check&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2007 05:36:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-program-when-a-table-is-updated/m-p/1858549#M362694</guid>
      <dc:creator>prabhu_s2</dc:creator>
      <dc:date>2007-02-05T05:36:58Z</dc:date>
    </item>
  </channel>
</rss>

