<?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: Pf  status in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/1198049#M130280</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Use this statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DATA: it_ucomm TYPE STANDARD TABLE OF sy-ucomm.&lt;/P&gt;&lt;P&gt; DATA l_ucomm TYPE sy-ucomm.&lt;/P&gt;&lt;P&gt; IF condition1 EQ true. "where you need all buttons&lt;/P&gt;&lt;P&gt;   SET PF-STATUS &amp;lt;PF Status name&amp;gt;.&lt;/P&gt;&lt;P&gt; ELSEIF condition2 EQ true. "Where you need only 4 &lt;/P&gt;&lt;P&gt;                            " buttons out of 6 &lt;/P&gt;&lt;P&gt; Say the two which you dont need to have func codes 'ABC' and 'DEF'.&lt;/P&gt;&lt;P&gt; l_ucomm = 'ABC'.&lt;/P&gt;&lt;P&gt; APPEND l_ucomm TO it_ucomm.&lt;/P&gt;&lt;P&gt; l_ucomm = 'DEF'.&lt;/P&gt;&lt;P&gt; APPEND l_ucomm TO it_ucomm.&lt;/P&gt;&lt;P&gt; SET PF-STATUS &amp;lt;pf status name&amp;gt; EXCLUDING it_ucomm[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ENDIF.&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>Thu, 05 Jan 2006 05:34:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-01-05T05:34:02Z</dc:date>
    <item>
      <title>Pf  status</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/1198046#M130277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt; Below is  a scenario &lt;/P&gt;&lt;P&gt;screen 1000&lt;/P&gt;&lt;P&gt;PBO&lt;/P&gt;&lt;P&gt;(where i need to  Set PF-Status (LINK_TELNO) and modify functions.  The functions available i.e. the buttons available will depend type of user and the order line item status VBAP-ZZAD_LINE_STATUS.  The user types are telesales and customer op.  The new authorisation object ZZCUSTTYPE will have either the value &amp;#145;TELESALES&amp;#146; or &amp;#145;CUSTOPS&amp;#146;.  This will be added into the profiles of the roles.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have already created authorisation object and assigned fields and users to them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; But when a user with  a telesales profile 'logsin' all the functions(buttons) should be present on the screen 1000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for another condition when a telesales user 'logsin' only few buttons should present on the screen 1000 like cancel and exec.&lt;/P&gt;&lt;P&gt;could some one provide me with a code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Many Thanks&lt;/P&gt;&lt;P&gt;Kesi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2006 05:26:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/1198046#M130277</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-05T05:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: Pf  status</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/1198047#M130278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi kesi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. One Single PF-STATUS won't do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. We need to create TWO Different PF Status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Then based on conditions, we can set.&lt;/P&gt;&lt;P&gt;   IF Condition1.&lt;/P&gt;&lt;P&gt;   SET PF-STATUS 'TELESALES'&lt;/P&gt;&lt;P&gt;   ELSE.&lt;/P&gt;&lt;P&gt;   SET PF-STATUS 'CUSTOPS'&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;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2006 05:28:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/1198047#M130278</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-05T05:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Pf  status</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/1198048#M130279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi kesi,&lt;/P&gt;&lt;P&gt;i feel no need of two pf-status.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF somecondition.
**don't assign any thing to pftab
SET PF-STATUS 'TELESALES' excluding pftab.
ELSE.
**assign the fcodes tp pftab which you don't want to show.
SET PF-STATUS 'TELESALES' excluding pftab.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2006 05:33:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/1198048#M130279</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-05T05:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: Pf  status</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/1198049#M130280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Use this statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DATA: it_ucomm TYPE STANDARD TABLE OF sy-ucomm.&lt;/P&gt;&lt;P&gt; DATA l_ucomm TYPE sy-ucomm.&lt;/P&gt;&lt;P&gt; IF condition1 EQ true. "where you need all buttons&lt;/P&gt;&lt;P&gt;   SET PF-STATUS &amp;lt;PF Status name&amp;gt;.&lt;/P&gt;&lt;P&gt; ELSEIF condition2 EQ true. "Where you need only 4 &lt;/P&gt;&lt;P&gt;                            " buttons out of 6 &lt;/P&gt;&lt;P&gt; Say the two which you dont need to have func codes 'ABC' and 'DEF'.&lt;/P&gt;&lt;P&gt; l_ucomm = 'ABC'.&lt;/P&gt;&lt;P&gt; APPEND l_ucomm TO it_ucomm.&lt;/P&gt;&lt;P&gt; l_ucomm = 'DEF'.&lt;/P&gt;&lt;P&gt; APPEND l_ucomm TO it_ucomm.&lt;/P&gt;&lt;P&gt; SET PF-STATUS &amp;lt;pf status name&amp;gt; EXCLUDING it_ucomm[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ENDIF.&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>Thu, 05 Jan 2006 05:34:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/1198049#M130280</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-05T05:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: Pf  status</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/1198050#M130281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt; The pf-status is l_no (PBO of the screen)&lt;/P&gt;&lt;P&gt;Now i have 4 conditions on which the pf-status depending on condiion have to be displayed.&lt;/P&gt;&lt;P&gt;For exemple:&lt;/P&gt;&lt;P&gt;condition 1: all the buttons on the screen are to be enabled.&lt;/P&gt;&lt;P&gt;condition 2: only 3 butons have to be enabled others disabled.&lt;/P&gt;&lt;P&gt;condition 3: only 2 buttons have to be enabled others disabled.&lt;/P&gt;&lt;P&gt;etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now how to code the logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kesi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2006 21:13:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/1198050#M130281</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-05T21:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: Pf  status</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/1198051#M130282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just use what Srikanth has suggested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


data: it_ucomm type standard table of sy-ucomm.
data: l_ucomm  type sy-ucomm.

* Say you have 4 buttons.....
* Function codes are ABC, DEF, GHI, JKL


if condition1 eq true.        "where you need all 4 buttons "
  set pf-status &amp;lt;pf status name&amp;gt;.
elseif condition2 eq true.   " Only want 3 buttons "
  l_ucomm = 'JKL'.
  append l_ucomm to it_ucomm.
  set pf-status &amp;lt;pf status name&amp;gt; excluding it_ucomm[].
elseif condition3 eq true.   " Only want 2 buttons "
  l_ucomm = 'JKL'.
  append l_ucomm to it_ucomm.
  l_ucomm = 'GHI'.
  append l_ucomm to it_ucomm.
  set pf-status &amp;lt;pf status name&amp;gt; excluding it_ucomm[].
&amp;lt;b&amp;gt;elseif condition4 eq true.   " Only want 1 button "
  l_ucomm = 'JKL'.
  append l_ucomm to it_ucomm.
  l_ucomm = 'GHI'.
  append l_ucomm to it_ucomm.
  l_ucomm = 'DEF'.
  append l_ucomm to it_ucomm.
  set pf-status &amp;lt;pf status name&amp;gt; excluding it_ucomm[].&amp;lt;/b&amp;gt;
endif.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And so on......&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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2006 21:22:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/1198051#M130282</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-01-05T21:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: Pf  status</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/1198052#M130283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this a report program? If so, put your logic in the AT SELETION-SCREEN OUTPUT event.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2006 21:33:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/1198052#M130283</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-05T21:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Pf  status</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/1198053#M130284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;This is not report program. We have placed a new button on SAPMV45A (item over view screen). When this button is pushed, the next screen is a pop up with the buttons i explained. But the pop screen will be displayed on certain conditons. Buttons on the screen( enabled/disabled) will be depend on the conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kesi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2006 21:50:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/1198053#M130284</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-05T21:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Pf  status</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/1198054#M130285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then you need to put the previous code in the PBO of the pop up screen.  Is this not working for you?   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also,  screen 1000 is usually reserved for selection screens,  you should use something other than 1000 for regular dynpro screens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2006 21:53:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/1198054#M130285</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-01-05T21:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Pf  status</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/1198055#M130286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Screen number 1000 is what confused me too Rich.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kesi, if you are calling a pop-up screen, can you tell us how you are calling the pop-up? Is that a standard pop-up function module or your own program and screen? Or is it part of the user exit within SAPMV45A(I don't see how, if the screen number is 1000)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2006 22:13:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/1198055#M130286</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-05T22:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Pf  status</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/1198056#M130287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;A screen is created (se51) which includes those buttons and a table control. The code to call this screen is from a user-exit.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;kesi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2006 22:27:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/1198056#M130287</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-05T22:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: Pf  status</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/1198057#M130288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rich,&lt;/P&gt;&lt;P&gt;The code u have provided is good but works if iam selecting the buttons on the screen. But as this is a sub screen (dispalyed as pop window), it has to be displayed (PBO) with 4 or 3 or 2 buttons depending on the conditons (2). it is like...&lt;/P&gt;&lt;P&gt; module PBO&lt;/P&gt;&lt;P&gt;     AUTHORITY-CHECK OBJECT &amp;#145;zxyz&amp;#146;  &lt;/P&gt;&lt;P&gt;   ID &amp;#145;zabc&amp;#146; FIELD 'kill'.  &lt;/P&gt;&lt;P&gt;  sy-subrc = 0.&lt;/P&gt;&lt;P&gt;if conditon 1.&lt;/P&gt;&lt;P&gt;   pop-window(all functions) displayed has 4 buttons.&lt;/P&gt;&lt;P&gt; elseif&lt;/P&gt;&lt;P&gt; conditon 2.&lt;/P&gt;&lt;P&gt;   pop-up window is display only and has 2 buttons are available&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT &amp;#145;zxyz&amp;#146;  &lt;/P&gt;&lt;P&gt;   ID &amp;#145;zbc&amp;#146; FIELD 'bill'.  &lt;/P&gt;&lt;P&gt; if conditon 1. (same as above)&lt;/P&gt;&lt;P&gt;   pop up window all functions and all buttons&lt;/P&gt;&lt;P&gt; elseif&lt;/P&gt;&lt;P&gt; conditon 2.&lt;/P&gt;&lt;P&gt;   pop-up window is display only &amp;amp; has 3 buttons.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kesi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2006 22:54:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/1198057#M130288</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-05T22:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: Pf  status</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/1198058#M130289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh, so the buttons are embedded in a screen, not in the gui-status or application toolbar?  If this is the case, you will have to handle it a different way.  You will want to do a LOOP at SCREEN in your PBO of the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT SCREEN.
IF SCREEN-NAME = 'BUTTON1'.
screen-invisible = '1'.
modify screen.
endif.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jan 2006 00:13:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/1198058#M130289</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-01-06T00:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Pf  status</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/1198059#M130290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Yes the buttons are embedded in the screen. Rich can you eloberate little bit in the code you have provided.&lt;/P&gt;&lt;P&gt;  'LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;IF SCREEN-NAME = 'BUTTON1'.&lt;/P&gt;&lt;P&gt;screen-invisible = '1'.&lt;/P&gt;&lt;P&gt;modify screen.endif.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;as i could not g'rasp theconcept behind it. IF you can provide the code for the conditon i eplained that will be great.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kesi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jan 2006 06:41:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/1198059#M130290</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-06T06:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: Pf  status</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/1198060#M130291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is what Rich meant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
AUTHORITY-CHECK OBJECT &amp;#145;zxyz&amp;#146; 
                    ID &amp;#145;zabc&amp;#146; 
                 FIELD 'kill'. 
IF sy-subrc = 0.
  IF conditon 1.
    LOOP AT SCREEN.
       screen-active = 0.
       MODIFY screen.
    ENDLOOP.
  ELSEIF conditon 2.
    LOOP AT SCREEN.
     IF SCREEN-NAME = 'BUTTON1' OR &amp;lt;-- hide this button
        SCREEN-NAME = 'BUTTON2'.   &amp;lt;-- hide this button
       SCRREN-ACTIVE = '0'.
       MODIFY screen.
     ELSE.
       SCREEN-INPUT = 0.           &amp;lt;-- make all others display only
       MODIFY SCREEN.
     ENDIF.
    ENDLOOP.
  ENDIF.
ENDIF.

AUTHORITY-CHECK OBJECT &amp;#145;zxyz&amp;#146; 
                    ID &amp;#145;zbc&amp;#146; 
                 FIELD 'bill'. 
IF sy-subrc = 0.
  IF conditon 1.
    LOOP AT SCREEN.
       screen-active = 0.
       MODIFY screen.
    ENDLOOP.
  ELSEIF conditon 2.
    LOOP AT SCREEN.
     IF SCREEN-NAME = 'BUTTON1'.   &amp;lt;-- hide this button
       SCRREN-ACTIVE = '0'.
       MODIFY screen.
     ELSE.
       SCREEN-INPUT = 0.           &amp;lt;-- make all others display only
       MODIFY SCREEN.
     ENDIF.
    ENDLOOP.
  ENDIF.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jan 2006 07:46:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/1198060#M130291</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-06T07:46:46Z</dc:date>
    </item>
  </channel>
</rss>

