<?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: Refresh Classical report/basic list in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-classical-report-basic-list/m-p/4980723#M1160607</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Manoj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already checked that but it creates secondary list and using Back button you can come to basic list which will reflect as it was. I wish the basic list to overlay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nitin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Jan 2009 10:10:08 GMT</pubDate>
    <dc:creator>former_member434229</dc:creator>
    <dc:date>2009-01-08T10:10:08Z</dc:date>
    <item>
      <title>Refresh Classical report/basic list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-classical-report-basic-list/m-p/4980721#M1160605</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 created a classical report/basic list where user can select check boxes and adjacent rows should be deleted. But after the action, I wish to refresh the report and remove the selected lines from displaying.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know how to achieve this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Nitin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2009 09:41:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-classical-report-basic-list/m-p/4980721#M1160605</guid>
      <dc:creator>former_member434229</dc:creator>
      <dc:date>2009-01-08T09:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh Classical report/basic list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-classical-report-basic-list/m-p/4980722#M1160606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nitin,&lt;/P&gt;&lt;P&gt;This can be achieved like as given below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;say your displaying a table itab in the output, and on the user action you are deleting a line from that table, then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PERFORM print_output. "Form that prints your output.

"when the user command is delete the line then
"Logic to delete the line
PERFORM print_output. "Again print the new list&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manoj Kumar P&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Manoj Kumar on Jan 8, 2009 11:04 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2009 10:04:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-classical-report-basic-list/m-p/4980722#M1160606</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-08T10:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh Classical report/basic list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-classical-report-basic-list/m-p/4980723#M1160607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Manoj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already checked that but it creates secondary list and using Back button you can come to basic list which will reflect as it was. I wish the basic list to overlay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nitin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2009 10:10:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-classical-report-basic-list/m-p/4980723#M1160607</guid>
      <dc:creator>former_member434229</dc:creator>
      <dc:date>2009-01-08T10:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh Classical report/basic list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-classical-report-basic-list/m-p/4980724#M1160608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there is some command to kill subscreen. Please check for the same&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2009 10:16:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-classical-report-basic-list/m-p/4980724#M1160608</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-08T10:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh Classical report/basic list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-classical-report-basic-list/m-p/4980725#M1160609</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;Put a flag like check box. and use read line statement in the do loop like  this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at itab.
Do.
  read line into itab1 index sy-index.
  if sy-subrc &amp;lt;&amp;gt; 0.
    exit.
  endif.
if itab-flag = 'X'.
 *delete line fromitab.
endif.
enddo.
endloop.

loop at itab.
*display the table itab.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Lakshmi Kamala.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code Formatted by: Alvaro Tejada Galindo on Jan 8, 2009 3:36 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2009 10:23:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-classical-report-basic-list/m-p/4980725#M1160609</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-08T10:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh Classical report/basic list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-classical-report-basic-list/m-p/4980726#M1160610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lakshmi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have already done everything and it is working fine. But when I loop on itab for second time, it creates secondary list and basic list remains as it is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nitin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2009 10:34:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-classical-report-basic-list/m-p/4980726#M1160610</guid>
      <dc:creator>former_member434229</dc:creator>
      <dc:date>2009-01-08T10:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh Classical report/basic list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-classical-report-basic-list/m-p/4980727#M1160611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Before writing the Internal table second time reset the List Indicator by:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
AT USER-COMMAND.
...
SY-LSIND = 0.
PERFORM WRITE_ITAB.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2009 20:43:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-classical-report-basic-list/m-p/4980727#M1160611</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2009-01-08T20:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh Classical report/basic list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-classical-report-basic-list/m-p/4980728#M1160612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nitin,&lt;/P&gt;&lt;P&gt;Check the following program.&lt;/P&gt;&lt;P&gt;Here on pressing the delete push button(FCODE: DELETE) it will delete all&lt;/P&gt;&lt;P&gt;rows which has adjacent checkboxes checked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT ztest_list_processing NO STANDARD PAGE HEADING .
TYPES: BEGIN OF ty_tab,
       delete,
       f1(3) TYPE c,
       f2(3) TYPE c,
       f3(3) TYPE c,
       END OF ty_tab.

DATA: it_tab TYPE TABLE OF ty_tab,
      wa_tab TYPE ty_tab.

DATA: w_delete TYPE c,
      w_lines TYPE i,
      w_ind TYPE i.
wa_tab-f1 = '111'.
wa_tab-f2 = 'ABC'.
wa_tab-f3 = '123'.
APPEND wa_tab TO it_tab.
wa_tab-f1 = '222'.
wa_tab-f2 = 'DEF'.
wa_tab-f3 = '456'.
APPEND wa_tab TO it_tab.
wa_tab-f1 = '333'.
wa_tab-f2 = 'GHI'.
wa_tab-f3 = '789'.
APPEND wa_tab TO it_tab.
wa_tab-f1 = '444'.
wa_tab-f2 = 'JKL'.
wa_tab-f3 = '987'.
APPEND wa_tab TO it_tab.
wa_tab-f1 = '555'.
wa_tab-f2 = 'MNO'.
wa_tab-f3 = '654'.
APPEND wa_tab TO it_tab.
*

SET PF-STATUS '100'. "Contains Delete button

PERFORM print_output.
"Logic which you can implement

AT USER-COMMAND.
  CASE sy-ucomm.
    WHEN 'DELETE'.
      DESCRIBE TABLE it_tab LINES w_lines.
      DO w_lines TIMES. "To read all rows
        CLEAR: wa_tab.
        READ LINE w_ind FIELD VALUE wa_tab-delete
                                       wa_tab-f1. "Getting the values
        IF wa_tab-delete EQ 'X'. "Delete when check box is 'X'
          DELETE it_tab WHERE f1 = wa_tab-f1.
        ENDIF.
        ADD 1 TO w_ind."Index for next line
      ENDDO.
      IF it_tab IS INITIAL.
        WRITE: / 'There are no data in the table'.
      ELSE.
        PERFORM print_output. "Reprint the updated data(like refreshing)
      ENDIF.
      "Modified the existing Back button in standard Toolbar so that on
      "pressin the back button it will come to program and not to
      "previous displayed list
    WHEN '&amp;amp;BACK'.
      LEAVE SCREEN.
  ENDCASE.
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  print_output
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*  --&amp;gt;  p1        text
*  &amp;lt;--  p2        text
*----------------------------------------------------------------------*
FORM print_output.

  LOOP AT it_tab INTO wa_tab.

    WRITE:/ wa_tab-delete AS CHECKBOX INPUT ON, "Display as checkbox
          wa_tab-f1,
          wa_tab-f2,
          wa_tab-f3.
    IF sy-tabix EQ 1.
      w_ind = sy-linno. "Get the line position of first row
    ENDIF.
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manoj Kumar P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2009 06:47:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-classical-report-basic-list/m-p/4980728#M1160612</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-09T06:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh Classical report/basic list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-classical-report-basic-list/m-p/4980729#M1160613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manoj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thankx for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanted the next thing from the result we get after executing the code U mentioned and I got it simply initializing SY-LSIND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nitin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2009 07:23:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-classical-report-basic-list/m-p/4980729#M1160613</guid>
      <dc:creator>former_member434229</dc:creator>
      <dc:date>2009-01-09T07:23:44Z</dc:date>
    </item>
  </channel>
</rss>

