<?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: Change push button icon in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-push-button-icon/m-p/1285762#M153867</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i'm not using a selection-screen, i'm using a screen with several objects.&lt;/P&gt;&lt;P&gt;I know that i can do a loop, endloop, and change several fields of the screen, like screen-input, etc. &lt;/P&gt;&lt;P&gt;I'de like to change the icon of the button!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Maria João Rocha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Mar 2006 10:34:23 GMT</pubDate>
    <dc:creator>MariaJooRocha</dc:creator>
    <dc:date>2006-03-17T10:34:23Z</dc:date>
    <item>
      <title>Change push button icon</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-push-button-icon/m-p/1285759#M153864</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;I've a push button on a screen with ICON_DATA_AREA_COLLAPSE icon name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I pretend to change the name of the icon in run time (to ICON_DATA_AREA_EXPAND/COLLAPSE ), is it possibile? How?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm on 4.6c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Maria João Rocha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2006 10:14:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-push-button-icon/m-p/1285759#M153864</guid>
      <dc:creator>MariaJooRocha</dc:creator>
      <dc:date>2006-03-17T10:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: Change push button icon</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-push-button-icon/m-p/1285760#M153865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi maria,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Not only the icon will change,&lt;/P&gt;&lt;P&gt;   but also the whole screen&lt;/P&gt;&lt;P&gt;   can collapse / expand&lt;/P&gt;&lt;P&gt;  It works fantastic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. just copy paste this in new program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT abc.&lt;/P&gt;&lt;P&gt;INCLUDE icons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : iv TYPE i,&lt;/P&gt;&lt;P&gt;       in TYPE i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.&lt;/P&gt;&lt;P&gt;PARAMETER : a(10) TYPE c MODIF ID m2.&lt;/P&gt;&lt;P&gt;PARAMETER : b(10) TYPE c MODIF ID m2.&lt;/P&gt;&lt;P&gt;PARAMETER : c(10) TYPE c MODIF ID m2.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b2 WITH  FRAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN PUSHBUTTON /1(4) p1 USER-COMMAND btn1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN:&lt;/P&gt;&lt;P&gt;  BEGIN OF LINE,&lt;/P&gt;&lt;P&gt;  COMMENT 1(3) text-001 MODIF ID m1,&lt;/P&gt;&lt;P&gt;  POSITION 8.&lt;/P&gt;&lt;P&gt;PARAMETERS:date10 LIKE rpctaxin-taxdt MODIF ID m1,&lt;/P&gt;&lt;P&gt;bank10(60) TYPE c MODIF ID m1.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF LINE.&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;SELECTION-SCREEN:&lt;/P&gt;&lt;P&gt;  BEGIN OF LINE,&lt;/P&gt;&lt;P&gt;  COMMENT 1(3) text-001 MODIF ID m1,&lt;/P&gt;&lt;P&gt;  POSITION 8.&lt;/P&gt;&lt;P&gt;PARAMETERS:date11 LIKE rpctaxin-taxdt MODIF ID m1,&lt;/P&gt;&lt;P&gt;bank11(60) TYPE c MODIF ID m1.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b2.&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;HR originaltext="-----------------------------------" /&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;  iv = 1.&lt;/P&gt;&lt;P&gt;  in = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT  SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF iv = 0.&lt;/P&gt;&lt;P&gt;    WRITE icon_collapse AS ICON TO p1(4).&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF iv = 1.&lt;/P&gt;&lt;P&gt;    WRITE icon_expand AS ICON TO p1(4).&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;    WRITE : screen-name , screen-group1.&lt;/P&gt;&lt;P&gt;    IF screen-group1 = 'M1'.&lt;/P&gt;&lt;P&gt;      screen-invisible = iv.&lt;/P&gt;&lt;P&gt;      screen-input = in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*SCREEN-INPUT = V.&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;  IF iv = 1.&lt;/P&gt;&lt;P&gt;    iv = 0.&lt;/P&gt;&lt;P&gt;    in = 1.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    iv = 1.&lt;/P&gt;&lt;P&gt;    in = 0.&lt;/P&gt;&lt;P&gt;  ENDIF.&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;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2006 10:26:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-push-button-icon/m-p/1285760#M153865</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-17T10:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: Change push button icon</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-push-button-icon/m-p/1285761#M153866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai Rocha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This link gives you the details and a model code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba9a635c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba9a635c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srikanth.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2006 10:31:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-push-button-icon/m-p/1285761#M153866</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-17T10:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: Change push button icon</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-push-button-icon/m-p/1285762#M153867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i'm not using a selection-screen, i'm using a screen with several objects.&lt;/P&gt;&lt;P&gt;I know that i can do a loop, endloop, and change several fields of the screen, like screen-input, etc. &lt;/P&gt;&lt;P&gt;I'de like to change the icon of the button!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Maria João Rocha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2006 10:34:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-push-button-icon/m-p/1285762#M153867</guid>
      <dc:creator>MariaJooRocha</dc:creator>
      <dc:date>2006-03-17T10:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: Change push button icon</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-push-button-icon/m-p/1285763#M153868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello Maria,&lt;/P&gt;&lt;P&gt;   if you are using the class cl_gui_toolbar for creating the buttons.&lt;/P&gt;&lt;P&gt;then you can change icon of the button using the method.&lt;/P&gt;&lt;P&gt;SET_BUTTON_INFO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; regards,&lt;/P&gt;&lt;P&gt;kinshuk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2006 10:43:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-push-button-icon/m-p/1285763#M153868</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-17T10:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: Change push button icon</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-push-button-icon/m-p/1285764#M153869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : active_s01(50) TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ICON_CREATE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      name   = 'ICON_CHECKED'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      RESULT = active_s01&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      OTHERS = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Move active_s01 to Myicon.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;(where myicon is on screen)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2006 11:08:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-push-button-icon/m-p/1285764#M153869</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-17T11:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Change push button icon</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-push-button-icon/m-p/1285765#M153870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srikanth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've read the help, but i can't malke it work!&lt;/P&gt;&lt;P&gt;I've declared a variable with the same name of the button.&lt;/P&gt;&lt;P&gt;Can you please detail the steps to follow?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;screen 100 - Button1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP &lt;/P&gt;&lt;P&gt;Data: Button1(4) value '@xx@'. "Is it OK?&lt;/P&gt;&lt;P&gt;...?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Maria João Rocha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2006 11:33:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-push-button-icon/m-p/1285765#M153870</guid>
      <dc:creator>MariaJooRocha</dc:creator>
      <dc:date>2006-03-17T11:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Change push button icon</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-push-button-icon/m-p/1285766#M153871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai Rocha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the initialization itself declare the variable,and then st selection screen, dynamically change the name accoding to the condition required............&lt;/P&gt;&lt;P&gt;yap what you tried is correct...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srikanth.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2006 11:41:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-push-button-icon/m-p/1285766#M153871</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-17T11:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: Change push button icon</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-push-button-icon/m-p/1285767#M153872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srikanth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't a selection-screen, but a normal screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it works&lt;/P&gt;&lt;P&gt;According with the help, it worked!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;screen 100&lt;/P&gt;&lt;P&gt;1 - Declare - Button1 (push button)&lt;/P&gt;&lt;P&gt;2 - Set the output field, at the element list &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP &lt;/P&gt;&lt;P&gt;Data: Button1(4) value '@xx@'. "xx corresponds to the pretended icon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PBO:&lt;/P&gt;&lt;P&gt;if ...&lt;/P&gt;&lt;P&gt;  button1 = '@xx@'.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;  button1 = '@yy@'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Maria João Rocha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2006 11:50:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-push-button-icon/m-p/1285767#M153872</guid>
      <dc:creator>MariaJooRocha</dc:creator>
      <dc:date>2006-03-17T11:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: Change push button icon</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-push-button-icon/m-p/1285768#M153873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks &lt;STRONG style="font-size: 10.8000001907349px; color: #333333; background: #ffffff;"&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" data-avatarid="-1" data-externalid="" data-presence="null" data-userid="27429" data-username="amit.mittal2" href="https://answers.sap.com/people/amit.mittal2" style="padding: 0 3px 0 0; font-weight: inherit; font-style: inherit; font-size: 1.1em; font-family: inherit; color: #3778c7; background: transparent;"&gt;Amit Mittal&lt;/A&gt;&lt;/STRONG&gt; for your ans.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is more helpful to me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2015 07:17:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-push-button-icon/m-p/1285768#M153873</guid>
      <dc:creator>Balu483</dc:creator>
      <dc:date>2015-11-16T07:17:48Z</dc:date>
    </item>
  </channel>
</rss>

