<?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 Multiple ALV and layout change in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-alv-and-layout-change/m-p/6322933#M1394867</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In a report, I call &lt;STRONG&gt;FM REUSE_ALV_LIST_DISPLAY&lt;/STRONG&gt; multiple times to output the data. This logic is include in a form FRM_OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After I run the program, result1 will be displayd. Now I want to change layout, I have added a button to select the fields that we want to display. After selected, I call the form FRM_OUTPUT again with changed field catalog. Then result2 will be displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have a problem when we click the BACK botton, the result1 will be showed up. What's we expected is the selection screen of the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one help me?  Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Oct 2009 07:38:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-10-29T07:38:13Z</dc:date>
    <item>
      <title>Multiple ALV and layout change</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-alv-and-layout-change/m-p/6322933#M1394867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In a report, I call &lt;STRONG&gt;FM REUSE_ALV_LIST_DISPLAY&lt;/STRONG&gt; multiple times to output the data. This logic is include in a form FRM_OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After I run the program, result1 will be displayd. Now I want to change layout, I have added a button to select the fields that we want to display. After selected, I call the form FRM_OUTPUT again with changed field catalog. Then result2 will be displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have a problem when we click the BACK botton, the result1 will be showed up. What's we expected is the selection screen of the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one help me?  Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2009 07:38:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-alv-and-layout-change/m-p/6322933#M1394867</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-29T07:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple ALV and layout change</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-alv-and-layout-change/m-p/6322934#M1394868</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;Define the screen number of your selection screen as 100 (or any number between 0 and 999).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF SCREEN 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;code&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF SCREEN 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when BACK is clicked, code the following.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL SCREEN 100.&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;Harini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2009 08:07:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-alv-and-layout-change/m-p/6322934#M1394868</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-29T08:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple ALV and layout change</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-alv-and-layout-change/m-p/6322935#M1394869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suppose you call the FORM in the USER_COMMAND form of the ALV, so after some clicks you get a stack like&lt;/P&gt;&lt;P&gt;- main&lt;/P&gt;&lt;P&gt;- form FRM_OUTPUT&lt;/P&gt;&lt;P&gt;- ALV&lt;/P&gt;&lt;P&gt;- form FRM_OUTPUT&lt;/P&gt;&lt;P&gt;- ALV&lt;/P&gt;&lt;P&gt;- etc.&lt;/P&gt;&lt;P&gt;so when you press back you get back to previous ALV&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't call the form in the USER_COMMAND, but exit from ALV filling rs_selfield-exit and passing the r_ucomm ok code (and otgher informations required) to variable(s) of the main program, there execute again a FRM_OUTPUT when ALV memory is freed. (if you only set exit but call FRM_OUTPUT from inside ALV, that will work, but you will get every ALV stacked in memory, so less performances)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2009 08:24:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-alv-and-layout-change/m-p/6322935#M1394869</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2009-10-29T08:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple ALV and layout change</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-alv-and-layout-change/m-p/6322936#M1394870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should I fill rs_selfield-exit every time I call FM REUSE_ALV_LIST_DISPLAY?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where should I execute again a FRM_OUTPUT ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2009 08:39:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-alv-and-layout-change/m-p/6322936#M1394870</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-29T08:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple ALV and layout change</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-alv-and-layout-change/m-p/6322937#M1394871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suggested something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;main&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DO
  perform FRM_OUTPUT
  if g_ucomm NE yourcode. EXIT. ENDIF.
ENDDO&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;form FRM_OUTPUT&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;execute selection
CALL ALV&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;form USER_COMMAND&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if r_ucomm EQ yourcode
  move r_ucomm  to g_ucomm.
  rs_selfield-exit = 'X'.
else.
  clear g_ucomm.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2009 08:47:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-alv-and-layout-change/m-p/6322937#M1394871</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2009-10-29T08:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple ALV and layout change</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-alv-and-layout-change/m-p/6322938#M1394872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very very much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you please explain me the following code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;form USER_COMMAND
if r_ucomm EQ yourcode
  move r_ucomm  to g_ucomm.
  rs_selfield-exit = 'X'.
else.
  clear g_ucomm.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2009 09:39:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-alv-and-layout-change/m-p/6322938#M1394872</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-29T09:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple ALV and layout change</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-alv-and-layout-change/m-p/6322939#M1394873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;if r_ucomm EQ yourcode. " when user click a "refresh" or "change selection" icon
  move r_ucomm  to g_ucomm. " store the volatile code to a global variable of main program
  rs_selfield-exit = 'X'. " inform ALV to end, program will continue after CALL FUNCTION or equivalent
else. " else
  clear g_ucomm. " clear the global code, so main program wont react when standard exit (F3, F12)
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2009 09:46:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-alv-and-layout-change/m-p/6322939#M1394873</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2009-10-29T09:46:50Z</dc:date>
    </item>
  </channel>
</rss>

