<?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: Write a text message when using Display method in class CL_SALV_TABLE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-a-text-message-when-using-display-method-in-class-cl-salv-table/m-p/6625915#M1441205</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you both for your responses.  The header solution was acceptable to the user.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Feb 2010 21:10:49 GMT</pubDate>
    <dc:creator>chris_mowl</dc:creator>
    <dc:date>2010-02-08T21:10:49Z</dc:date>
    <item>
      <title>Write a text message when using Display method in class CL_SALV_TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-a-text-message-when-using-display-method-in-class-cl-salv-table/m-p/6625912#M1441202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H4&gt;&lt;SPAN&gt; Hello,&lt;/SPAN&gt;&lt;/H4&gt;&lt;P&gt;I am writing a program using cl_salv_table=&amp;gt;factory and display() to display my data.  From the initial list of records, lines can be selected by checking a checkbox and then the user can press 'Delete' to delete the selected records from a table.  &lt;/P&gt;&lt;P&gt;     I have this code in an Event method.  In the Event method, I use the Refresh(), Factory(), and Display() methods to write the records that were deleted back to the screen.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to add a line of text saying, for example,  "The following records were deleted" and then display the records but the display method seems to overwrite anything written with a Write statement.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently writing my message as Header text but I was wondering if there was another / better way.  Below is the code snippet I use to write the new list to the screen.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Chris Mowl &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;       o_salvtable-&amp;gt;refresh( ).

          TRY.
              CALL METHOD cl_salv_table=&amp;gt;factory
                IMPORTING
                  r_salv_table = o_salvtable
                CHANGING
                  t_table      = o_zvc-&amp;gt;i_vckun.

            CATCH cx_salv_msg.                          "#EC NO_HANDLER
              MESSAGE 'ALV display not possible' TYPE 'I' DISPLAY LIKE 'E'.

          ENDTRY.

          DATA: lr_header TYPE REF TO cl_salv_form_header_info.

          CREATE OBJECT lr_header
            EXPORTING
              text = text-005.

          o_salvtable-&amp;gt;set_top_of_list( lr_header ).

          o_salvtable-&amp;gt;display( ).
     &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Feb 2010 18:00:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-a-text-message-when-using-display-method-in-class-cl-salv-table/m-p/6625912#M1441202</guid>
      <dc:creator>chris_mowl</dc:creator>
      <dc:date>2010-02-05T18:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: Write a text message when using Display method in class CL_SALV_TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-a-text-message-when-using-display-method-in-class-cl-salv-table/m-p/6625913#M1441203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What if you added a column to your output table and in your SALV controls marked that column as a checkbox.  Then, instead of writing a message, turn on the check box to mark the row, perhaps with the heading "To Be Deleted"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a suggestion...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whatever you do with write:/ will show up when the user exits the ALV display (or at least it does for me) since the report output is triggered by expllicit or implicit end of selection event.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Feb 2010 21:16:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-a-text-message-when-using-display-method-in-class-cl-salv-table/m-p/6625913#M1441203</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-05T21:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: Write a text message when using Display method in class CL_SALV_TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-a-text-message-when-using-display-method-in-class-cl-salv-table/m-p/6625914#M1441204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can add create two ALVs. One for your Main table and the second ALV for the deleted records. Whenever, DELETE event happens, append deleted records in the Delete ALV and Refresh the ALV. You can use the Splitter container to Split your container into two. There are some methods in the Splitter Container, which can help you to hide/show the Second ALV (show only when there are delete entries).&lt;/P&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>Fri, 05 Feb 2010 21:54:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-a-text-message-when-using-display-method-in-class-cl-salv-table/m-p/6625914#M1441204</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2010-02-05T21:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: Write a text message when using Display method in class CL_SALV_TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-a-text-message-when-using-display-method-in-class-cl-salv-table/m-p/6625915#M1441205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you both for your responses.  The header solution was acceptable to the user.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2010 21:10:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-a-text-message-when-using-display-method-in-class-cl-salv-table/m-p/6625915#M1441205</guid>
      <dc:creator>chris_mowl</dc:creator>
      <dc:date>2010-02-08T21:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Write a text message when using Display method in class CL_SALV_TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-a-text-message-when-using-display-method-in-class-cl-salv-table/m-p/6625916#M1441206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="green" __jive_macro_name="color"&gt;Moderator message - You can also assign po1nts to helpful answers. This encourages people to help you in the future.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2010 21:26:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-a-text-message-when-using-display-method-in-class-cl-salv-table/m-p/6625916#M1441206</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-08T21:26:21Z</dc:date>
    </item>
  </channel>
</rss>

