<?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: ALV tree output in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-output/m-p/3671603#M884289</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In RS_TREE_LIST_DISPLAY fill the CALLBACK_PROGRAM, CALLBACK_USER_COMMAND and CALLBACK_GUI_STATUS parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameters for USER_COMMAND are &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM user_command tables   node STRUCTURE seucomm    
                  using    command                   
                  changing exit                      
                           list_refresh.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;There are no parameter for CALLBACK_GUI_STATUS. (Just do a SET PF-STATUS)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You already receive a parameter F15 back from RS_TREE_LIST_DISPLAY if user press the EXIT key (Yellow arrow)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Apr 2008 12:45:20 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2008-04-09T12:45:20Z</dc:date>
    <item>
      <title>ALV tree output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-output/m-p/3671602#M884288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use these functions to create an output tree: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 'RS_TREE_CONSTRUCT', 'RS_TREE_LIST_DISPLAY'&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to add a button to the output so when they click it, the program closes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greets&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 12:38:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-output/m-p/3671602#M884288</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T12:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: ALV tree output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-output/m-p/3671603#M884289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In RS_TREE_LIST_DISPLAY fill the CALLBACK_PROGRAM, CALLBACK_USER_COMMAND and CALLBACK_GUI_STATUS parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameters for USER_COMMAND are &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM user_command tables   node STRUCTURE seucomm    
                  using    command                   
                  changing exit                      
                           list_refresh.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;There are no parameter for CALLBACK_GUI_STATUS. (Just do a SET PF-STATUS)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You already receive a parameter F15 back from RS_TREE_LIST_DISPLAY if user press the EXIT key (Yellow arrow)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 12:45:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-output/m-p/3671603#M884289</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2008-04-09T12:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: ALV tree output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-output/m-p/3671604#M884290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dear,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All ready there is button in standard SAP.&lt;/P&gt;&lt;P&gt;Click on Cancel button (F12) or&lt;/P&gt;&lt;P&gt;Exit button (Shift+f3).&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;&lt;STRONG&gt;REWARD IF USEFUL&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 12:46:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-output/m-p/3671604#M884290</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T12:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: ALV tree output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-output/m-p/3671605#M884291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can u please explain this a bit more..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THX&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 12:52:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-output/m-p/3671605#M884291</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T12:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: ALV tree output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-output/m-p/3671606#M884292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;- Option 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the F15 parameter, and if checked after call tree display, exit program (in your caller program)&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'RS_TREE_LIST_DISPLAY'
...
IF F15 = 'X'.
  LEAVE PRORAM.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; If F15 is checked, user pressed EXIT, else user pressed BACK.&lt;/P&gt;&lt;P&gt;- Option 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Creat two forms in your caller program, USER_COMMAND and SET_PF_STATUS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the form PF-STATUS, execute a SET PF-STATUS you have to create on your caller program. (double-clic on the status name or use SE41)&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM set_pf_status.
  SET PF-STATUS 'XXX'.
ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In the form USER_COMMAND check the function used and exit program if the desired key is pressed.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM user_command TABLES   node STRUCTURE seucomm
                  USING    command
                  CHANGING exit
                           list_refresh.
  CASE command.
    WHEN 'BACK'.
      exit = 'X'.
    WHEN 'EXIT'.
      LEAVE PROGRAM.
  ENDCASE.
ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;When calling RS_TREE_LIST_DISPLAY pass the caller program name (do not use sy-repid, move it to a variable) and the name of the forms&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;w_pgmid = sy-repid.
CALL FUNCTION 'RS_TREE_LIST_DISPLAY'
     EXPORTING
          callback_program      = w_pgmid
          callback_user_command = 'USER_COMMAND'
          callback_gui_status   = 'SET_PF_STATUS'.
(...)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 13:19:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-output/m-p/3671606#M884292</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2008-04-09T13:19:46Z</dc:date>
    </item>
  </channel>
</rss>

