<?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: Enabling and disabling an status button. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/enabling-and-disabling-an-status-button/m-p/2921738#M688076</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;Check your modified code..WHen you press display..the update button will show..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
***********Naren changes
DATA: itab TYPE STANDARD TABLE OF syucomm WITH HEADER LINE.
DATA: v_display.
TABLES: sscrfields.
PARAMETERS: p_matnr.
***********Naren changes End

SELECTION-SCREEN FUNCTION KEY 1.
SELECTION-SCREEN FUNCTION KEY 2.
SELECTION-SCREEN FUNCTION KEY 3.

INITIALIZATION.
  MOVE 'DISPLAY' TO sscrfields-functxt_01.
  MOVE 'DELETE' TO sscrfields-functxt_02.
  MOVE 'UPDATE' TO sscrfields-functxt_03.

  CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
       EXPORTING
            p_status  = sy-pfkey
       TABLES
            p_exclude = itab.

AT SELECTION-SCREEN OUTPUT.

***********Naren changes
  REFRESH: itab.
***********Naren changes End.

  APPEND 'ONLI' TO itab.
***********Naren changes
  IF v_display &amp;lt;&amp;gt; 'X'.
    APPEND 'FC03' TO itab.
  ENDIF.
***********Naren changes End.
  CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
       EXPORTING
            p_status  = sy-pfkey
       TABLES
            p_exclude = itab.
  v_display = ' '.

***********Naren changes
AT SELECTION-SCREEN.

  IF sy-ucomm = 'FC01'.
    v_display = 'X'.
  ENDIF.
***********Naren changes End.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Oct 2007 22:09:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-19T22:09:01Z</dc:date>
    <item>
      <title>Enabling and disabling an status button.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enabling-and-disabling-an-status-button/m-p/2921735#M688073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi......................&lt;/P&gt;&lt;P&gt;i send one prog of deactive print and save icon..... but i want this icon or button at runtime when i click on display button...... so which function module i used for  activeted this  print, save or my own button of ths this requirement.................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT demo_sel_screen_status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA itab TYPE TABLE OF sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS test(10) TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;  APPEND: 'PRIN' TO itab,&lt;/P&gt;&lt;P&gt;          'SPOS' TO itab.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            p_status  = sy-pfkey&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            p_exclude = itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this example, the Print and Save as variant functions are deactivated. To find out the function codes of the standard GUI status, choose System ® Status and double-click the GUI status field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jigar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2007 20:50:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enabling-and-disabling-an-status-button/m-p/2921735#M688073</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-19T20:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling and disabling an status button.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enabling-and-disabling-an-status-button/m-p/2921736#M688074</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;Not sure if I understood your requirement..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you want to disable the save and print only when you press some button??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please explain&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2007 21:50:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enabling-and-disabling-an-status-button/m-p/2921736#M688074</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-19T21:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling and disabling an status button.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enabling-and-disabling-an-status-button/m-p/2921737#M688075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naren,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my report i use for dipaly button:&lt;/P&gt;&lt;P&gt;I have 3 button in my report&lt;/P&gt;&lt;P&gt;below my dispaly button code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen function key 1.&lt;/P&gt;&lt;P&gt;selection-screen function key 2.&lt;/P&gt;&lt;P&gt;selection-screen function key 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;MOVE 'DISPLAY' TO SSCRFIELDS-FUNCTXT_01.&lt;/P&gt;&lt;P&gt;MOVE 'DELETE' TO SSCRFIELDS-FUNCTXT_02.&lt;/P&gt;&lt;P&gt;MOVE 'UPDATE' TO SSCRFIELDS-FUNCTXT_03.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when programn run i have to disable the update:&lt;/P&gt;&lt;P&gt;through this coding :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;APPEND 'ONLI' TO itab.&lt;/P&gt;&lt;P&gt;APPEND 'FC03' TO ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;p_status = sy-pfkey&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;p_exclude = itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now what i want when i click on display button then my update button is activated on the screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for deactivated i use this function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;APPEND 'ONLI' TO itab.&lt;/P&gt;&lt;P&gt;APPEND 'FC03' TO ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;p_status = sy-pfkey&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;p_exclude = itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;through APPEND 'FC03' TO ITAB statement i disable the update button. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i want update button when i click on dispaly button.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pl give me suggestion.........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jigar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2007 21:58:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enabling-and-disabling-an-status-button/m-p/2921737#M688075</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-19T21:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling and disabling an status button.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enabling-and-disabling-an-status-button/m-p/2921738#M688076</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;Check your modified code..WHen you press display..the update button will show..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
***********Naren changes
DATA: itab TYPE STANDARD TABLE OF syucomm WITH HEADER LINE.
DATA: v_display.
TABLES: sscrfields.
PARAMETERS: p_matnr.
***********Naren changes End

SELECTION-SCREEN FUNCTION KEY 1.
SELECTION-SCREEN FUNCTION KEY 2.
SELECTION-SCREEN FUNCTION KEY 3.

INITIALIZATION.
  MOVE 'DISPLAY' TO sscrfields-functxt_01.
  MOVE 'DELETE' TO sscrfields-functxt_02.
  MOVE 'UPDATE' TO sscrfields-functxt_03.

  CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
       EXPORTING
            p_status  = sy-pfkey
       TABLES
            p_exclude = itab.

AT SELECTION-SCREEN OUTPUT.

***********Naren changes
  REFRESH: itab.
***********Naren changes End.

  APPEND 'ONLI' TO itab.
***********Naren changes
  IF v_display &amp;lt;&amp;gt; 'X'.
    APPEND 'FC03' TO itab.
  ENDIF.
***********Naren changes End.
  CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
       EXPORTING
            p_status  = sy-pfkey
       TABLES
            p_exclude = itab.
  v_display = ' '.

***********Naren changes
AT SELECTION-SCREEN.

  IF sy-ucomm = 'FC01'.
    v_display = 'X'.
  ENDIF.
***********Naren changes End.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2007 22:09:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enabling-and-disabling-an-status-button/m-p/2921738#M688076</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-19T22:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling and disabling an status button.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enabling-and-disabling-an-status-button/m-p/2921739#M688077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naren.......................................................&lt;/P&gt;&lt;P&gt;wow, My problem is solved............ thanks buddy &lt;/P&gt;&lt;P&gt;and one more problem ......how can i set cursor in field what i want i updated some value and i want to put the cursor on first field....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for this i use SET CURSOR FIELD 'FIELDNAME'..&lt;/P&gt;&lt;P&gt;but its not working........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so give me some suggestion..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jigar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2007 22:56:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enabling-and-disabling-an-status-button/m-p/2921739#M688077</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-19T22:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling and disabling an status button.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enabling-and-disabling-an-status-button/m-p/2921740#M688078</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;Check this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_field1,&lt;/P&gt;&lt;P&gt;            p_field2,&lt;/P&gt;&lt;P&gt;            p_field3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF p_field3 IS INITIAL.&lt;/P&gt;&lt;P&gt;    SET CURSOR FIELD 'P_FIELD3'.&lt;/P&gt;&lt;P&gt;    MESSAGE e208(00) WITH 'P_FIELD3 is mandatory'.&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;Please reward points for helpful answers and close the thread if the problem is solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2007 23:05:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enabling-and-disabling-an-status-button/m-p/2921740#M688078</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-19T23:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling and disabling an status button.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enabling-and-disabling-an-status-button/m-p/2921741#M688079</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;Jigar....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2007 23:57:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enabling-and-disabling-an-status-button/m-p/2921741#M688079</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-19T23:57:47Z</dc:date>
    </item>
  </channel>
</rss>

