<?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: Deactivate Buttons runtime in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/deactivate-buttons-runtime/m-p/1794038#M341313</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;YOu have to just use the&lt;/P&gt;&lt;P&gt;set pf-status &amp;lt;your status&amp;gt; excluding extab.&lt;/P&gt;&lt;P&gt;extab should have the list of fcodes that need to be deactivated.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Dec 2006 11:10:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-11T11:10:58Z</dc:date>
    <item>
      <title>Deactivate Buttons runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deactivate-buttons-runtime/m-p/1794037#M341312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created program with module pool for editing adn saving the entries from table contrl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New requirement is that I have use the same program and new T-codes but with the display access and not allow to changes the record from the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to deactive Save button programatically or any other way ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One method I have used is I m checking the t-code and if it is for display then I have commented the code I have written for the Save command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other way to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Umesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 11:08:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deactivate-buttons-runtime/m-p/1794037#M341312</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-11T11:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Deactivate Buttons runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deactivate-buttons-runtime/m-p/1794038#M341313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;YOu have to just use the&lt;/P&gt;&lt;P&gt;set pf-status &amp;lt;your status&amp;gt; excluding extab.&lt;/P&gt;&lt;P&gt;extab should have the list of fcodes that need to be deactivated.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 11:10:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deactivate-buttons-runtime/m-p/1794038#M341313</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-11T11:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: Deactivate Buttons runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deactivate-buttons-runtime/m-p/1794039#M341314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Umesh,&lt;/P&gt;&lt;P&gt;  You can de-activate the Save button by excluding it while setting your GUI Status. You can use the excluding addition with SET PF-STATUS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; set pf-status 'STATUS' excluding itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; itab must contain the list of function codes to be de-activated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  For e.g: &lt;/P&gt;&lt;P&gt;   begin of itab occurs 1,&lt;/P&gt;&lt;P&gt;     field type sy-ucomm,&lt;/P&gt;&lt;P&gt;   end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   itab-field = 'SAVE'.&lt;/P&gt;&lt;P&gt;   append itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   set pf-status 'TEST' excluding itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Manoj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 11:12:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deactivate-buttons-runtime/m-p/1794039#M341314</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-11T11:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: Deactivate Buttons runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deactivate-buttons-runtime/m-p/1794040#M341315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      you may modify the properties of buttoms with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;before call to STATUS_XX.&lt;/P&gt;&lt;P&gt;Also you may modify the properties of input - output of the field:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A snipet of code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;    IF FLG IS INITIAL.&lt;/P&gt;&lt;P&gt;      SCREEN-INPUT = 0.&lt;/P&gt;&lt;P&gt;    ELSEIF ( FLG EQ 'Y' ).&lt;/P&gt;&lt;P&gt;      IF ( ( SCREEN-NAME = 'T_MAKT-MAKTX'&lt;/P&gt;&lt;P&gt;      OR SCREEN-NAME = 'T_MAKT-PICK' )&lt;/P&gt;&lt;P&gt;      AND T_CTRL-CURRENT_LINE LE LN ) .&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Making the screen fields as editable&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        SCREEN-INPUT = 1.&lt;/P&gt;&lt;P&gt;      ELSEIF ( ( SCREEN-NAME = 'T_MAKT-MATNR' )&lt;/P&gt;&lt;P&gt;      AND T_CTRL-CURRENT_LINE LE LN ).&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Making the screen field as uneditable&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        SCREEN-INPUT = 0.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Modifying the screen after making changes&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 11:16:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deactivate-buttons-runtime/m-p/1794040#M341315</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-11T11:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Deactivate Buttons runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deactivate-buttons-runtime/m-p/1794041#M341316</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.. I hope this will help..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**&amp;gt;&amp;gt; Display mode&lt;/P&gt;&lt;P&gt;    WHEN 'DISP'.&lt;/P&gt;&lt;P&gt;      PERFORM it_fcodes_1_fill.&lt;/P&gt;&lt;P&gt;      SET PF-STATUS 'STATUS_9002' EXCLUDING it_fcodes_1.&lt;/P&gt;&lt;P&gt;      SET TITLEBAR 'TITLEBAR_9002_SHO'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  it_fcodes_1_fill&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM it_fcodes_1_fill.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**&amp;gt;&amp;gt; Functions to be deactivated in the display mode&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  REFRESH it_fcodes_1. CLEAR it_fcodes_1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**&amp;gt;&amp;gt; Function show in display mode no meaning&lt;/P&gt;&lt;P&gt;  it_fcodes_1-fcode = gc_fcode_show.&lt;/P&gt;&lt;P&gt;  APPEND it_fcodes_1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**&amp;gt;&amp;gt; Save function is not diserable&lt;/P&gt;&lt;P&gt;  it_fcodes_1-fcode = gc_fcode_save.&lt;/P&gt;&lt;P&gt;  APPEND it_fcodes_1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**&amp;gt;&amp;gt; Function Abbort is not diserable&lt;/P&gt;&lt;P&gt;  it_fcodes_1-fcode = gc_fcode_abbr.&lt;/P&gt;&lt;P&gt;  APPEND it_fcodes_1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " it_fcodes_1_fill&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you have any problem...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 11:37:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deactivate-buttons-runtime/m-p/1794041#M341316</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-11T11:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: Deactivate Buttons runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deactivate-buttons-runtime/m-p/1794042#M341317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;loop at screen&lt;/P&gt;&lt;P&gt;set flag for input&lt;/P&gt;&lt;P&gt; if flag = '' then&lt;/P&gt;&lt;P&gt; screen-input = ''&lt;/P&gt;&lt;P&gt; else.&lt;/P&gt;&lt;P&gt;  screen-input = ''&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;modify screen.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 11:59:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deactivate-buttons-runtime/m-p/1794042#M341317</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-11T11:59:42Z</dc:date>
    </item>
  </channel>
</rss>

