<?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: Command Interface Report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/command-interface-report/m-p/4257256#M1016203</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Piroz,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this code,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: zint_data,&lt;/P&gt;&lt;P&gt;        zint_msgs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: it_zint_data TYPE TABLE OF zint_data ,&lt;/P&gt;&lt;P&gt;       it_zint_msgs TYPE TABLE OF zint_msgs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: v_date TYPE sy-datum,&lt;/P&gt;&lt;P&gt;      v_lines type sy-index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  v_date = sy-datum - 30.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT * FROM zint_data INTO TABLE it_zint_data WHERE CREATED_ON &amp;lt;= v_date and status = 'OK'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if not it_zint_data[] is initial.&lt;/P&gt;&lt;P&gt;  clear v_lines.&lt;/P&gt;&lt;P&gt;  describe table it_zint_data lines v_lines.&lt;/P&gt;&lt;P&gt;  delete zint_data from table it_zint_data.&lt;/P&gt;&lt;P&gt;  write:/ 'No of entries deleted from table ZINT_DATA :' , v_lines.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT * FROM zint_msgs INTO TABLE it_zint_msgs WHERE CREATED_ON  &amp;lt;= v_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if not it_zint_msgs[] is initial.&lt;/P&gt;&lt;P&gt;  clear v_lines.&lt;/P&gt;&lt;P&gt;  describe table it_zint_msgs lines v_lines.&lt;/P&gt;&lt;P&gt;  delete zint_msgs from table it_zint_msgs.&lt;/P&gt;&lt;P&gt;  write:/ 'No of entries deleted from table ZINT_MSGS :' , v_lines.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Lakshman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Sep 2008 06:18:30 GMT</pubDate>
    <dc:creator>Lakshmant1</dc:creator>
    <dc:date>2008-09-19T06:18:30Z</dc:date>
    <item>
      <title>Command Interface Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/command-interface-report/m-p/4257255#M1016202</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 one requirement to proceed for the following below by the managment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;need to create a u201Creportu201D to be executed in batch mode which will delete Command interface records from SAP.&lt;/P&gt;&lt;P&gt;There are two tables from which the data needs to be deleted:&lt;/P&gt;&lt;P&gt;1.	ZINT_DATA&lt;/P&gt;&lt;P&gt;2.	ZINT_MSGS&lt;/P&gt;&lt;P&gt;ZINT_DATA contains the actual data records from Command together with information about this data, e.g. processing status, date to which the data refers etc.&lt;/P&gt;&lt;P&gt;ZINT_MSGS contains messages which have been generated during the SAP processing of the data records.&lt;/P&gt;&lt;P&gt;Criteria for selecting records to be deleted are as follows:&lt;/P&gt;&lt;P&gt;1.	ZINT_DATA&lt;/P&gt;&lt;P&gt;u2022	ZINT_DATA.CREATED_ON &amp;lt;= (Today u2013 30 Days)&lt;/P&gt;&lt;P&gt;u2022	ZINT_DATA.STATUS = u2018OKu2019&lt;/P&gt;&lt;P&gt;2.	ZINT_MSGS&lt;/P&gt;&lt;P&gt;u2022	ZINT_MSGS.CREATED_ON &amp;lt;= (Today u2013 30 Days)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The report should log the number of records deleted from each table at End Of Run.&lt;/P&gt;&lt;P&gt;I would be thankful if anyone comment on how to create this report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Piroz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Piroz Eslam on Sep 19, 2008 8:36 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 07:36:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/command-interface-report/m-p/4257255#M1016202</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T07:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Command Interface Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/command-interface-report/m-p/4257256#M1016203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Piroz,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this code,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: zint_data,&lt;/P&gt;&lt;P&gt;        zint_msgs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: it_zint_data TYPE TABLE OF zint_data ,&lt;/P&gt;&lt;P&gt;       it_zint_msgs TYPE TABLE OF zint_msgs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: v_date TYPE sy-datum,&lt;/P&gt;&lt;P&gt;      v_lines type sy-index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  v_date = sy-datum - 30.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT * FROM zint_data INTO TABLE it_zint_data WHERE CREATED_ON &amp;lt;= v_date and status = 'OK'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if not it_zint_data[] is initial.&lt;/P&gt;&lt;P&gt;  clear v_lines.&lt;/P&gt;&lt;P&gt;  describe table it_zint_data lines v_lines.&lt;/P&gt;&lt;P&gt;  delete zint_data from table it_zint_data.&lt;/P&gt;&lt;P&gt;  write:/ 'No of entries deleted from table ZINT_DATA :' , v_lines.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT * FROM zint_msgs INTO TABLE it_zint_msgs WHERE CREATED_ON  &amp;lt;= v_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if not it_zint_msgs[] is initial.&lt;/P&gt;&lt;P&gt;  clear v_lines.&lt;/P&gt;&lt;P&gt;  describe table it_zint_msgs lines v_lines.&lt;/P&gt;&lt;P&gt;  delete zint_msgs from table it_zint_msgs.&lt;/P&gt;&lt;P&gt;  write:/ 'No of entries deleted from table ZINT_MSGS :' , v_lines.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Lakshman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Sep 2008 06:18:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/command-interface-report/m-p/4257256#M1016203</guid>
      <dc:creator>Lakshmant1</dc:creator>
      <dc:date>2008-09-19T06:18:30Z</dc:date>
    </item>
  </channel>
</rss>

