<?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 icon in selection screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/icon-in-selection-screen/m-p/1005145#M77552</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai guys,&lt;/P&gt;&lt;P&gt;          I want to place a icon in selection screen , this is my client requirement .&lt;/P&gt;&lt;P&gt;         will you suggest. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;T.balaji.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Aug 2005 10:07:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-08-05T10:07:03Z</dc:date>
    <item>
      <title>icon in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/icon-in-selection-screen/m-p/1005145#M77552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai guys,&lt;/P&gt;&lt;P&gt;          I want to place a icon in selection screen , this is my client requirement .&lt;/P&gt;&lt;P&gt;         will you suggest. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;T.balaji.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2005 10:07:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/icon-in-selection-screen/m-p/1005145#M77552</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-05T10:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: icon in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/icon-in-selection-screen/m-p/1005146#M77553</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;&lt;/P&gt;&lt;P&gt;try that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) TABLES sscrfields.&lt;/P&gt;&lt;P&gt;2) SELECTION-SCREEN FUNCTION KEY 1.&lt;/P&gt;&lt;P&gt;3) initialization.&lt;/P&gt;&lt;P&gt;WRITE icon_tools TO sscrfields-functxt_01 AS ICON.&lt;/P&gt;&lt;P&gt;MOVE text-123 TO sscrfields-functxt_01+5.&lt;/P&gt;&lt;P&gt;4) AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;CASE sy-ucomm.&lt;/P&gt;&lt;P&gt;WHEN 'FC01'.&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 Andreas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2005 10:15:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/icon-in-selection-screen/m-p/1005146#M77553</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2005-08-05T10:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: icon in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/icon-in-selection-screen/m-p/1005147#M77554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi balaji,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below links might help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2004/helpdata/en/9f/db9e7135c111d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2004/helpdata/en/9f/db9e7135c111d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2004/helpdata/en/f5/933938d780f205e10000009b38f8cf/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2004/helpdata/en/f5/933938d780f205e10000009b38f8cf/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;venu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2005 10:15:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/icon-in-selection-screen/m-p/1005147#M77554</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-05T10:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: icon in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/icon-in-selection-screen/m-p/1005148#M77555</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;or try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create text-element exp&lt;/P&gt;&lt;P&gt;(e.g. with @45@ for icon_tools)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(5) text-exp.
parameters t123.
SELECTION-SCREEN END   OF LINE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2005 10:22:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/icon-in-selection-screen/m-p/1005148#M77555</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2005-08-05T10:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: icon in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/icon-in-selection-screen/m-p/1005149#M77556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add buttons with icon to selection screen   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following code demonstrates how to add user defined push buttons which contain icons to a standard &lt;/P&gt;&lt;P&gt;report selection screen.Push buttons are used to trigger user functions with in the program to make them &lt;/P&gt;&lt;P&gt;interactive with the user. The example below shows how buttons can allow you to dynamically alter a &lt;/P&gt;&lt;P&gt;selection screen depending on which button is pressed. But they can be used for many other applications &lt;/P&gt;&lt;P&gt;from displaying a window to &lt;/P&gt;&lt;P&gt;calling other reports.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report  ZSSCRBUTTONS2                                               *
*&amp;amp;                                                                     *
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;  Adds buttons to selection screen.                                  *
*&amp;amp;  Demonstrates alteration of selection screen layout depending on    *
*&amp;amp;  which button is pressed.                                           *
*&amp;amp;                                                                     *
*&amp;amp;  Additional Info:                                                   *
*&amp;amp;    TEXT-FY1 = 'Fiscal Year'                                         *
*&amp;amp;    Selection text for SO_DATES = 'Date Period'                      *
*&amp;amp;---------------------------------------------------------------------*

REPORT  zsscrbuttons2.

TABLES: sscrfields.

DATA: gd_ucomm TYPE sy-ucomm.

SELECTION-SCREEN BEGIN OF BLOCK period WITH FRAME TITLE text-t02.
SELECT-OPTIONS: so_dates FOR sy-datum NO-EXTENSION.

SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 01(20) text-fy1.  "= Fiscal Year
SELECTION-SCREEN POSITION 33.
PARAMETERS: p_period LIKE qppnp-pabrp.
SELECTION-SCREEN POSITION 36.
PARAMETERS: p_year LIKE qppnp-pabrj.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN PUSHBUTTON  /01(29) but1 USER-COMMAND but1.
SELECTION-SCREEN PUSHBUTTON  /01(29) but2 USER-COMMAND but2.
SELECTION-SCREEN END OF BLOCK period.


************************************************************************
*INITIALIZATION.
INITIALIZATION.
* MOVE 'Fiscal Year' TO BUT1.
  MOVE 'Date Period' TO but2.

  DATA: icon_name TYPE iconname,
        button_text(20) TYPE c,
        quickinfo LIKE smp_dyntxt-quickinfo,
        icon_str(255) TYPE c.

* Setup button 1 (Fiscal year)
  icon_name = 'ICON_ARROW_RIGHT'.    " 'ICON_DISPLAY_MORE'.
  button_text = 'Fiscal Year'.
  CONCATENATE button_text text-akt
              INTO quickinfo
              SEPARATED BY space.

  CALL FUNCTION 'ICON_CREATE'
    EXPORTING
      name                        = icon_name
      text                        = button_text
      info                        = quickinfo
*       ADD_STDINF                  = 'X'
    IMPORTING
      RESULT                      = icon_str
    EXCEPTIONS
      OTHERS                      = 0. "not interested in errors

* place text and icon on button
  but1 = icon_str.

* Setup button 2 (Date period)
  icon_name = 'ICON_ARROW_LEFT'.    " 'ICON_DISPLAY_MORE'.
  button_text = 'Date Period'.
  CONCATENATE button_text text-akt
              INTO quickinfo
              SEPARATED BY space.

  CALL FUNCTION 'ICON_CREATE'
    EXPORTING
      name                        = icon_name
      text                        = button_text
      info                        = quickinfo
*       ADD_STDINF                  = 'X'
    IMPORTING
      RESULT                      = icon_str
    EXCEPTIONS
      OTHERS                      = 0. "not interested in errors

* place text and icon on button
  but2 = icon_str.


************************************************************************
*AT SELECTION-SCREEN.
AT SELECTION-SCREEN.
* Check if buttons have been
  IF sscrfields-ucomm EQ 'BUT1'.
    gd_ucomm = 'BUT1'.
  ELSEIF sscrfields-ucomm EQ 'BUT2'.
    gd_ucomm = 'BUT2'.
  ENDIF.


************************************************************************
*AT SELECTION-SCREEN.
AT SELECTION-SCREEN OUTPUT.

  IF gd_ucomm IS INITIAL.
    LOOP AT SCREEN.
      IF screen-name CS 'P_PERIOD' OR
         screen-name CS 'P_YEAR' OR
         screen-name CS 'FY1' OR
         screen-name EQ 'BUT2'.
        screen-active = 0.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ELSEIF gd_ucomm EQ 'BUT1'.
    LOOP AT SCREEN.
      IF screen-name CS 'P_PERIOD' OR
         screen-name CS 'P_YEAR' OR
         screen-name CS 'FY1' OR
         screen-name EQ 'BUT2'.
        screen-active = 1.
        MODIFY SCREEN.
      ENDIF.
      IF screen-name CS 'SO_DATES' OR
         screen-name EQ 'BUT1'.
        screen-active = 0.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ELSEIF gd_ucomm EQ 'BUT2' .
    LOOP AT SCREEN.
      IF screen-name CS 'P_PERIOD' OR
         screen-name CS 'P_YEAR' OR
         screen-name CS 'FY1' OR
         screen-name EQ 'BUT2'.
        screen-active = 0.
        MODIFY SCREEN.
      ENDIF.
      IF screen-name CS 'SO_DATES' OR
         screen-name EQ 'BUT1'.
        screen-active = 1.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hope this link.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2005 10:27:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/icon-in-selection-screen/m-p/1005149#M77556</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-05T10:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: icon in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/icon-in-selection-screen/m-p/1005150#M77557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai guys, &lt;/P&gt;&lt;P&gt;         i need simply  a icon and then a text field.&lt;/P&gt;&lt;P&gt;in selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;T.Balaji.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2005 10:43:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/icon-in-selection-screen/m-p/1005150#M77557</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-05T10:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: icon in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/icon-in-selection-screen/m-p/1005151#M77558</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;Andreas solution is working perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN COMMENT 1(5) text-exp.&lt;/P&gt;&lt;P&gt;parameters t123.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END   OF LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just double click text-exp and type @45@ and then activate it with the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can see the selection screen with ICON and text.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2005 11:05:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/icon-in-selection-screen/m-p/1005151#M77558</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2005-08-05T11:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: icon in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/icon-in-selection-screen/m-p/1005152#M77559</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;Just combine in one line:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN COMMENT 1(10)  TEXT-ICO.   "Icon&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN COMMENT 12(50) TEXT-C01.   "Text&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;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2005 11:19:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/icon-in-selection-screen/m-p/1005152#M77559</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-05T11:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: icon in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/icon-in-selection-screen/m-p/1005153#M77560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi balaji,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think, your problem is solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so pls reward points and close this thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks and regards &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2005 12:36:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/icon-in-selection-screen/m-p/1005153#M77560</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2005-08-05T12:36:12Z</dc:date>
    </item>
  </channel>
</rss>

