<?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: CL_SALV_HIERSEQ_TABLE how to add function (customized button) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-salv-hierseq-table-how-to-add-function-customized-button/m-p/12201772#M1981888</link>
    <description>&lt;P&gt;I said "method SET_SCREEN_STATUS" (of the HIERSEQ instance) &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jan 2020 15:46:35 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2020-01-24T15:46:35Z</dc:date>
    <item>
      <title>CL_SALV_HIERSEQ_TABLE how to add function (customized button)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-salv-hierseq-table-how-to-add-function-customized-button/m-p/12201767#M1981883</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;
  &lt;P&gt;I'm searching but did not find how to add customized button.&lt;/P&gt;
  &lt;P&gt;I need to add as customer here required it so I can save Header and Slave internal tables as EXCEL. &lt;/P&gt;
  &lt;P&gt;I think we can not do it with standard CL_SALV_HIERSEQ_TABLE solution to save both tables in users PC.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2020 15:01:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-salv-hierseq-table-how-to-add-function-customized-button/m-p/12201767#M1981883</guid>
      <dc:creator>glauco</dc:creator>
      <dc:date>2020-01-24T15:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: CL_SALV_HIERSEQ_TABLE how to add function (customized button)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-salv-hierseq-table-how-to-add-function-customized-button/m-p/12201768#M1981884</link>
      <description>&lt;P&gt;"HIERSEQ" corresponds to the display as a full screen, so you can't add buttons dynamically.&lt;/P&gt;&lt;P&gt;You can only define an initial "GUI status" via the method &lt;STRONG&gt;SET_SCREEN_STATUS&lt;/STRONG&gt;. The prerequisite is to create the custom GUI status by copying the standard one which is probably STANDARD_FULLSCREEN in program SAPLSLVC_FULLSCREEN, and add your own buttons.&lt;/P&gt;&lt;P&gt;I don't know what are the available types of exports for a HIERSEQ ALV.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2020 15:11:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-salv-hierseq-table-how-to-add-function-customized-button/m-p/12201768#M1981884</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-01-24T15:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: CL_SALV_HIERSEQ_TABLE how to add function (customized button)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-salv-hierseq-table-how-to-add-function-customized-button/m-p/12201769#M1981885</link>
      <description>&lt;P&gt;hi  &lt;SPAN class="mention-scrubbed"&gt;sandra.rossi&lt;/SPAN&gt; .&lt;/P&gt;&lt;P&gt;Do you know where to use &lt;STRONG&gt;IF sy-ucomm= 'MYCUSTOM_BUTTON'&lt;/STRONG&gt; statment with no screen ?&lt;/P&gt;&lt;P&gt;I'll try to test some report events to do it.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2020 15:18:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-salv-hierseq-table-how-to-add-function-customized-button/m-p/12201769#M1981885</guid>
      <dc:creator>glauco</dc:creator>
      <dc:date>2020-01-24T15:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: CL_SALV_HIERSEQ_TABLE how to add function (customized button)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-salv-hierseq-table-how-to-add-function-customized-button/m-p/12201770#M1981886</link>
      <description>&lt;P&gt;Use GET_EVENTS to retrieve the event instance, then register a handler for the event ADDED_FUNCTION. The function code is in parameter E_SALV_FUNCTION.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2020 15:26:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-salv-hierseq-table-how-to-add-function-customized-button/m-p/12201770#M1981886</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-01-24T15:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: CL_SALV_HIERSEQ_TABLE how to add function (customized button)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-salv-hierseq-table-how-to-add-function-customized-button/m-p/12201771#M1981887</link>
      <description>&lt;P&gt;Hi Sandra.&lt;/P&gt;&lt;P&gt;I used set pf-status inside form show_alv_tree but it is not showing it.&lt;/P&gt;&lt;P&gt;Probably I'm getting rust on this. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Do you know the correct place to use it ?&lt;/P&gt;&lt;P&gt;SET PF-STATUS 'STANDARD_FULLSCREEN'.&lt;/P&gt;&lt;P&gt;Another question.&lt;BR /&gt;I already have a local class to handle events and already have for example another method on_single_click to handle my hot spots.&lt;/P&gt;&lt;P&gt;I created a method to handle user command like you said but it is not getting called probably because my PF-STATUS is yet the standard of my report.&lt;/P&gt;&lt;P&gt;I need to set this custom pf-status to get this solved probably.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2020 15:42:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-salv-hierseq-table-how-to-add-function-customized-button/m-p/12201771#M1981887</guid>
      <dc:creator>glauco</dc:creator>
      <dc:date>2020-01-24T15:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: CL_SALV_HIERSEQ_TABLE how to add function (customized button)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-salv-hierseq-table-how-to-add-function-customized-button/m-p/12201772#M1981888</link>
      <description>&lt;P&gt;I said "method SET_SCREEN_STATUS" (of the HIERSEQ instance) &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2020 15:46:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-salv-hierseq-table-how-to-add-function-customized-button/m-p/12201772#M1981888</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-01-24T15:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: CL_SALV_HIERSEQ_TABLE how to add function (customized button)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-salv-hierseq-table-how-to-add-function-customized-button/m-p/12201773#M1981889</link>
      <description>&lt;P&gt;Solved. many thanks to  &lt;SPAN class="mention-scrubbed"&gt;sandra.rossi&lt;/SPAN&gt; .&lt;/P&gt;&lt;P&gt;Called this method just before the display method.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;"Set PF-Status
 gr_hierseq-&amp;gt;set_screen_status(
 EXPORTING
 report = sy-repid
 pfstatus = 'STANDARD_FULLSCREEN'
* set_functions =
 ).SET HANDLER gr_events-&amp;gt;on_user_command FOR lr_events.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Added this method on my existing local class&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;      on_user_command FOR EVENT added_function OF cl_salv_events_hierseq
 IMPORTING e_salv_function sender.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;And put a break inside this new method and it is executed always when I click my new Excel button.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; METHOD on_user_command.
 break-point.
 ENDMETHOD.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I've already copied that PF-STATU from that standard program mentioned above and created already my new button on it.&lt;/P&gt;&lt;P&gt;Works like magic.&lt;/P&gt;&lt;P&gt;many thanks to you Sandra. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2020 16:37:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-salv-hierseq-table-how-to-add-function-customized-button/m-p/12201773#M1981889</guid>
      <dc:creator>glauco</dc:creator>
      <dc:date>2020-01-24T16:37:21Z</dc:date>
    </item>
  </channel>
</rss>

