<?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: ADD push button in selection-screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-push-button-in-selection-screen/m-p/7811424#M1588051</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;you need to create a screen using se51 and add your button there.&lt;/P&gt;&lt;P&gt;then do your codding in PAI module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i hope it will work for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;LG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Apr 2011 10:39:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-04-01T10:39:18Z</dc:date>
    <item>
      <title>ADD push button in selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-push-button-in-selection-screen/m-p/7811421#M1588048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement.&lt;/P&gt;&lt;P&gt;In the selection screen on the report, I need a push button "Click".&lt;/P&gt;&lt;P&gt;When i "Click"  First Time this it should display all the selection screen Blocks B1,B2,B3 from my selection screen.&lt;/P&gt;&lt;P&gt;For second "Click" it should Hide the Blocks B1,B2,B3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am doing the following code in my report:&lt;/P&gt;&lt;P&gt;But for first Click it is displaying the Blocks.And for the Second click it is not Hiding.&lt;/P&gt;&lt;P&gt;Please suggest on this.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;initialization.&lt;/P&gt;&lt;P&gt;  if screen-group1 = 'A1' .&lt;/P&gt;&lt;P&gt;            screen-active = 0.&lt;/P&gt;&lt;P&gt;            modify screen.&lt;/P&gt;&lt;P&gt;          endif.&lt;/P&gt;&lt;P&gt;        endloop.&lt;/P&gt;&lt;P&gt;        loop at screen.&lt;/P&gt;&lt;P&gt;          if screen-group1 = 'A2' .&lt;/P&gt;&lt;P&gt;            screen-active = 0.&lt;/P&gt;&lt;P&gt;            modify screen.&lt;/P&gt;&lt;P&gt;          endif.&lt;/P&gt;&lt;P&gt;        endloop.&lt;/P&gt;&lt;P&gt;        loop at screen.&lt;/P&gt;&lt;P&gt;          if screen-group1 = 'A3' .&lt;/P&gt;&lt;P&gt;            screen-active = 0.&lt;/P&gt;&lt;P&gt;            modify screen.&lt;/P&gt;&lt;P&gt;          endif.&lt;/P&gt;&lt;P&gt;        endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using " At selection screen:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen.&lt;/P&gt;&lt;P&gt;if gv_flag = space.&lt;/P&gt;&lt;P&gt;        loop at screen.&lt;/P&gt;&lt;P&gt;          if screen-group1 = 'A1' .&lt;/P&gt;&lt;P&gt;            screen-active = 1.&lt;/P&gt;&lt;P&gt;            modify screen.&lt;/P&gt;&lt;P&gt;          endif.&lt;/P&gt;&lt;P&gt;        endloop.&lt;/P&gt;&lt;P&gt;        loop at screen.&lt;/P&gt;&lt;P&gt;          if screen-group1 = 'A2' .&lt;/P&gt;&lt;P&gt;            screen-active = 1.&lt;/P&gt;&lt;P&gt;            modify screen.&lt;/P&gt;&lt;P&gt;          endif.&lt;/P&gt;&lt;P&gt;        endloop.&lt;/P&gt;&lt;P&gt;        loop at screen.&lt;/P&gt;&lt;P&gt;          if screen-group1 = 'A3' .&lt;/P&gt;&lt;P&gt;            screen-active = 1.&lt;/P&gt;&lt;P&gt;            modify screen.&lt;/P&gt;&lt;P&gt;          endif.&lt;/P&gt;&lt;P&gt;        endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        gv_flag = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      elseif gv_flag = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;              loop at screen.&lt;/P&gt;&lt;P&gt;          if screen-group1 = 'A1' .&lt;/P&gt;&lt;P&gt;            screen-active = 0.&lt;/P&gt;&lt;P&gt;            modify screen.&lt;/P&gt;&lt;P&gt;          endif.&lt;/P&gt;&lt;P&gt;        endloop.&lt;/P&gt;&lt;P&gt;        loop at screen.&lt;/P&gt;&lt;P&gt;          if screen-group1 = 'A2' .&lt;/P&gt;&lt;P&gt;            screen-active = 0.&lt;/P&gt;&lt;P&gt;            modify screen.&lt;/P&gt;&lt;P&gt;          endif.&lt;/P&gt;&lt;P&gt;        endloop.&lt;/P&gt;&lt;P&gt;        loop at screen.&lt;/P&gt;&lt;P&gt;          if screen-group1 = 'A3' .&lt;/P&gt;&lt;P&gt;            screen-active = 0.&lt;/P&gt;&lt;P&gt;            modify screen.&lt;/P&gt;&lt;P&gt;          endif.&lt;/P&gt;&lt;P&gt;        endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        gv_flag = space.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Apr 2011 10:29:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-push-button-in-selection-screen/m-p/7811421#M1588048</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-01T10:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: ADD push button in selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-push-button-in-selection-screen/m-p/7811422#M1588049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are hiding it in INITIALIZATION block which means it hides only once before PBO. If you want to show/hide it in turn simply place all your code in PAI, not just part of it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry didn't notice part of the code in the bottom&lt;/P&gt;&lt;P&gt;The logic should go like&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
at selection-screen.
if gv_flag = space.
loop at screen.
  case screen-group1.
     when 'A1' or 'A2' or 'A3'     
        screen-active = 1.
        modify screen.
     when others.
   endcase.
endloop.
 gv_flag = 'X'.
elseif gv_flag = 'X'.
   loop at screen.
      case screen-group1.
           when 'A1' or 'A2' or 'A3'.
            screen-active = 0.
            modify screen. 
         when others.
    endcase.
endloop.
  gv_flag = space.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Marcin Pciak on Apr 1, 2011 12:33 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Apr 2011 10:32:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-push-button-in-selection-screen/m-p/7811422#M1588049</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2011-04-01T10:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: ADD push button in selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-push-button-in-selection-screen/m-p/7811423#M1588050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This should be done in PAI .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Apr 2011 10:36:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-push-button-in-selection-screen/m-p/7811423#M1588050</guid>
      <dc:creator>Sandeep_Panghal</dc:creator>
      <dc:date>2011-04-01T10:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: ADD push button in selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-push-button-in-selection-screen/m-p/7811424#M1588051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;you need to create a screen using se51 and add your button there.&lt;/P&gt;&lt;P&gt;then do your codding in PAI module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i hope it will work for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;LG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Apr 2011 10:39:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-push-button-in-selection-screen/m-p/7811424#M1588051</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-01T10:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: ADD push button in selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-push-button-in-selection-screen/m-p/7811425#M1588052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If this is SAP standard selection screen, check AT SELECTION-SCREEN OUTPUT event.  Search the forums, been asked so many times.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Apr 2011 12:32:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-push-button-in-selection-screen/m-p/7811425#M1588052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-01T12:32:02Z</dc:date>
    </item>
  </channel>
</rss>

