Disable the buttons for creation using PFCG roles

Hi SAP Experts,
   How to disable the buttons for creation using PFCG roles?
Regards,
Jaya

Hi,
u have to write the code in <b>at selection-screen output</b> event
AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    IF  <b>P_PRINT</b> = 'X'.  " this is radiobutton
      IF screen-name = 'P_RANGE'.
        SCREEN-INPUT = 0.
      ENDIF.
      modify screen.
    ELSE.
      IF screen-name = 'S_LFDAT-LOW'.
        SCREEN-INPUT = 0.
      ENDIF.
      IF screen-name = 'S_LFDAT-HIGH'.
        SCREEN-INPUT = 0.
      ENDIF.
      IF screen-name = 'S_WERKS-LOW'.
        SCREEN-INPUT = 0.
      ENDIF.
      IF screen-name = 'S_WERKS-HIGH'.
        SCREEN-INPUT = 0.
      ENDIF.
      IF screen-name = 'P_LIFNR'.
        SCREEN-INPUT = 0.
      ENDIF.
      IF screen-name = 'S_BUKRS'.
        SCREEN-INPUT = 0.
      ENDIF.
      modify screen.
    ENDIF.
  ENDLOOP.
Hope it helps.
Regards,
Sonika

Similar Messages

  • Enabling and disabling the button in the multi record block

    hi all,
    i am using
    Forms [32 Bit] Version 6.0.8.24.1 (Production)
    Oracle Database 10g Release 10.2.0.1.0 - Production
    i have a multi record block each block contains a button(button is to approve the record in terms of changing the status)
    i have the items like date,remarks and button
    the button should be enabled if the remarks is not null otherwise it should be disabled.
    for this in pre-record trigger i have written
    if :record is null then
       set_item_property('button',enabled,property_false);
    else
          set_item_property('button',enabled,property_false);
    end if;what problem is enable and disable is impacting on all the buttons in the block. in other words if first record's remarks is null then all the records button is disabled. if first record's remarks column is not null then all the records of the button column is enabled.
    i have to make enable and disable the button for the corresponding record.that means if first record's remarks column is not null then only first records button should be enabled others should be disabled.
    Thanks..

    You need to set the No. of items displayed to 1 as Ammad had said, additionally you can set the X and Y Position (Just Y will do and having fixed X) of the button depending upon the current record.
    can u explain this part alone bit more (setting the position of x and y)You need to calculate the variable Y_POS depending upon the current position of the cursor that is the current record.
    You can find the current record Y_POS using combination of
    V_CURRENT_RECORD := :SYSTEM.CURSOR_RECORD;
    V_TOP_RECORD := GET_BLOCK_PROPERTY ('BLOCK_NAME', TOP_RECORD);
    V_ITEM_Y_POS := GET_ITEM_PROPERTY ('ITEM_NAME', Y_POS);
    -- Also needs to add the Y_POS of the relative other items in the muti-record block
    V_HEIGHT := GET_ITEM_PROPERTY ('BUTTON_NAME', HEIGHT);
    -- Note :- TOP_RECORD  Returns the record number of the topmost visible record in the given block.
    V_Y_POS := V_ITEM_Y_POS + ((V_CURRENT_RECORD - V_TOP_RECORD) * V_HEIGHT);
    -- You will need to add Distance between Items in records if anyThen you can Set the current Y_POS of the button.
    SET_ITEM_PROPERTY ('BUTTON_NAME', Y_POS, V_Y_POS);
    [/code[
    Hope this helps
    Best Regards
    Arif Khadas
    Edited by: Arif Khadas on Feb 24, 2011 4:58 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Need procedure for creation of BW Roles, Assigning Queries,Publishing Roles

    Hi Experts,
      Could you please let me know the procedure for creation of BW Roles, Assigning Queries,Publishing Roles in Business Explorer (BEx - BW 3.5)
    Thanks in advance,
    Andy

    Hi,
    Creating BW Roles
    http://help.sap.com/saphelp_nw04/helpdata/en/52/6714b6439b11d1896f0000e8322d00/frameset.htm
    Assigning Queries
    After creating the query, save the query to a role from the query designer.
    Publishing Roles in Business Explorer
    https://websmp101.sap-ag.de/~sapdownload/011000358700002894802003E/HowToBIPortal1.pdf
    Hope this helps you..!
    -Pradnya

  • Is there any way programmatically to disable the screen shot capture using Home   power button in the iPad device?

    Hi Team,
    Is there any way programmatically to disable the screen shot capture using Home + power button in the iPad device.We need to avoid the screen capture option due to security reason.
    thanks ,
    Bala

    Hi Peace, Clyde,
      Thanks for information. Using the API  UIApplicationUserDidTakeScreenhotNotification (iOS7)  send the notification after the screenshot taken.  Using this api is it possible to block the screen shot caputure option.
    Thanks and Regards,
    Bala

  • How do I disable "Exceptions" button for "Block pop-up windows" in Content tab?. I am able to Disable other Exception buttons in this tab using about:config preference.

    Need a way to disable "Exception" button for "Block Pop-up windows" in Tools-> Options -> Content tab. I want to be able to do this for Locking Down Firefox preferences.
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)

    That button doesn't have a pref associated with it, so you can't disable that button with a pref on the about:config page or a lockPref call.
    That only leaves the choice to remove that button with code in userChrome.css
    <pre><nowiki>#popupPolicyButton {display:none!important;}</nowiki></pre>
    See http://kb.mozillazine.org/Editing_configuration#How_to_edit_configuration_files

  • Is there a way to disable the Facetime camera and use an external USB webcam for browser based webchat?

    Is it possible to disable the Facetime camera and use an external webcam as a default? So that when you access browser based applications that require a webcam it doesnt default to the Facetime camera but uses the USB webcam instead?
    Cheers.

    (1) You don't need to "disable" anything to select among cameras connected to your Mac.
    For all cameras you access via browser based applications (cameras connect via Flash browser plugins), control-click on an open video window in your browser page and adjust the camera settings to select between a connected USB and Firewire video camera.  Specific instructions are here:
       http://www.macromedia.com/support/documentation/en/flashplayer/help/help04.html
    If you don't see a choices of cameras in the Flash settings, your Mac is only recognizing one camera.  Verify that your external cam is Mac-compatible and properly connected.
    Your choice is stored in preferences so the same camera will activate on the next browser page until you change it.
    (2) BTW, a current (Feb 2013) discussion of how to select among connected Mac cameras for a few more apps is available here:  http://discussions.apple.com/message/21158673#21158673
    Mac OSX 10.8.2

  • Hello How do I delete or disable the scrollbar. I use kiosk for fulscreem wants no scrollbar What should I do?

    hello
    How do I delete or disable the scrollbar.
    I use kiosk for fulscreem wants no scrollbar
    What should I do?

    I also already deleted my phone number from iMessage on my MBP.

  • Hi I was using whatsapp on my iPhone5.I was not able go to the main menu by pressing the center button so I hold on to the button for 2 seconds.Then the whole display turned out to be black

    I was not able go to the main menu from whatsapp by pressing the center button so I hold on to the button for 2 seconds.Then the whole display turned out to be black & white. how can i fix it?

    Hello monicaa003,
    Thanks for participating in the Apple Support Communities.
    If your iPhone display turned black and white after holding down the Home button for 2 seconds, first try pressing the Home button again to go to the main menu (Home screen.)
    For reference, holding down the Home button for 2 seconds will trigger Siri if that feature is enabled:
    About Siri - Apple Support
    If pressing the Home button doesn't return you to the main menu, try restarting or resetting your iPhone:
    Restart or reset your iPhone, iPad, or iPod touch - Apple Support
    Additionally, if Whatsapp is not responding or working as expected, see the troubleshooting steps at this link:
    If an app you installed unexpectedly quits, stops responding, or won’t open - Apple Support
    Best Regards,
    Jeremy

  • Disable Delete Button for infotype 2001 subtype 0025

    I want to Disable Delete Button for infotype 2001 subtype 0025 only in PA30/61.
    Is there any EXIT available

    Hi
    Try it .
    Somebody already given this type of answers.
    Pls first use Search then post.
    Well FYI,
    <b>There is a standard User Exit for PA30 / 40 for PBO and PAI events.
    ZXPADU01 for PBO and
    ZXPADU02 for PAI events.
    By writing proper code in here for the IT2001, you can write your rules.
    PBAS0001 ( PA: Pers.Admin./Recruitment: Default values and checks ),</b>
    Manoj Shakya.

  • Disable Reject Button for Invoice on Work Item Screen

    Hi! I know we can use the Dynamic Column configuration to disable and enable the Approve/Reject button on the Inbox screen where the approval work items are displayed. However, I would like to know whether it is possible to have only the Reject button disabled? Reason for asking this is a rejection reason needs to be maintained for the rejection. The check is in place if we reject the invoice from the detail screen. However, if we reject it from the Inbox screen, it will go through without any warning or error message. I have searched OSS notes but found nothing so am wondering whether this can be considered a bug or not. If not, then I want to know what solution option I have relating to this. I am thinking of either a repair to disable the button on the screen for invoice approval or find a why with the dynamic columns to do that.
    Appreciate any comments on the above.
    Cheers!
    SF

    No response

  • Cannot disable a button 2 times using an EL expression

    Using a EL expression for the disabled attribute on a button does not work the second time... It will not disable again.
    Below is a simple example.... The EL updates the text of the button but does not enable/disable the button.
    Any help would be greatly appreciated!
    JSPX Code:
    <af:showDetailHeader text="Enable/Disable Test" disclosed="true">
    <af:panelGroupLayout>
    <af:panelFormLayout labelWidth="150" fieldWidth="300" rows="1" maxColumns="1">
    <af:commandButton text="Toggle isButtonEnabled - value = #{ToggleTestBk.buttonEnabled}" disabled="#{ToggleTestBk.buttonEnabled}" partialTriggers="toggleBtn">
    </af:commandButton>
    <af:commandButton id="toggleBtn" text="Toggle Button" actionListener="#{ToggleTestBk.toggleButtonAL}" partialSubmit="true">
    </af:commandButton>
    </af:panelFormLayout>
    </af:panelGroupLayout>
    </af:showDetailHeader>
    Backing Bean Code:
    private boolean buttonEnabled = true;
    public void toggleButtonAL(ActionEvent event) {
    setButtonEnabled(!buttonEnabled);
    public void setButtonEnabled(boolean _buttonEnabled) {
    this.buttonEnabled = _buttonEnabled;
    public boolean isButtonEnabled() {
    return buttonEnabled;
    Thanks!
    Matt
    Edited by: Matt Cannon IBI on Apr 3, 2010 4:28 PM

    Hi,
    try two things:
    1- check your backingbean scope if it is request scope try to change it. (try make it session scope).
    if it is not working ....
    2- try your backingbean like this:
    private boolean buttonEnabled = true;
    public void toggleButtonAL(ActionEvent event) {
    isButtonEnabled();
    public void setButtonEnabled(boolean _buttonEnabled) {
    this.buttonEnabled = _buttonEnabled;
    public boolean isButtonEnabled() {
    setButtonEnabled(!buttonEnabled);
    return buttonEnabled;
    }Sameh Nassar

  • Disabling the Button in Ap invoice through custom pll

    Hi
    i have done one customization in ap invoices , such way that
    in supplier screen --> organization tab--> created the DFF for the supplier limit say 4000
    now in ap invoices screen, now i creating the PREPAYMENT, if the amount exceed that 4000, it will create hold, i written code for that
    now my problem is in HOLD TAB Release button is there,
    my requirement is RELEASE BUTTON SHOULD BE DISABLED until the until the amount is not rectified.
    in custom pll
    if form_name = 'APXINWKB' then
    if block_name = 'AP_HOLDS' then
    if event_name = 'WHEN-NEW-RECORD-INSTANCE' then
    l_invoice_id := name_in('INV_SUM_FOLDER.INVOICE_ID');
    l_release_hold :=xxcus.AKRUTI_PAYABLES_PKG.release_single_hold(l_invoice_id);
    if l_release_hold = 1 then
    fnd_message.set_string('Check the Advance amount enter greater than Supplier Limit or Advance amount greater than Purchase Order amount');
    fnd_message.show;
    set_item_property('APXHOLDS.AP_HOLDS_CONTROL.ACTION_BUTTON',ENABLED,PROPERTY_FALSE);
    elsif l_release_hold = 0 then
    set_item_property('APXHOLDS.AP_HOLDS_CONTROL.ACTION_BUTTON',ENABLED,PROPERTY_TRUE);
    end if;
    end if;
    end if;
    end if;
    the release button is not diabling since in the AP INVOICES forms, HOLDS is IN OBJECT GROUPS of that form the HOLD forms is APXHOLDS, how to disabled the button,
    it showing the message"'Check the Advance amount enter greater than Supplier Limit or Advance amount greater than Purchase Order amount"
    but it is not disabling the button

    are you using 11.5.10? If you are why not try the personalization features?

  • How to disable the button???

    Hi, guys.
    I searched the forum, but did not find anything about disabling the button. There are examples of disabling text areas... But when i tried to implement same technics to disable a button, it did not work.
    I have a page with two regions items region and buttons region. When page opens i want to check if P1_TXT_BOX in items region is empty and if yes, disable button P1_CMD_DOTHIS in buttons region. And then onBlur for P1_TXT_BOX, if it is not empty - enable the button.
    Pls, help...
    Thnks.
    Mike

    Hi,
    I have always struggled with buttons and javascript in APEX because of the way it generates the buttons (as a "button" not "submit").
    A way round it would be to create the buttons using html then disabling the accept button:
    <input type="submit" id="P1_DOWNLOAD" value="Download" onclick="swapButtonStatus();" />
    <input type="submit" id="P1_ACCEPT" value="Acc" onclick="swapButtonStatus();" />
    <script>
    document.getElementById('P1_ACCEPT').disabled="true";
    </script>
    You just need to put them in the region footer or somewhere applicable.
    And use the following javascript function in the HTML Header:
    function swapButtonStatus()
    var downloadButton = document.getElementById('P1_DOWNLOAD');
    var acceptButton = document.getElementById('P1_ACCEPT');
    if(acceptButton.disabled=="")
    downloadButton.disabled="";
    acceptButton.disabled="true";
    //you can submit the button using: then create a process that
    //runs when request=Accept
    doSubmit('Accept');
    else if(downloadButton.disabled=="")
    acceptButton.disabled="";
    downloadButton.disabled="true";
    //you can submit the button using: then create a process that
    //runs when request=Download
    doSubmit('Download');
    Hope this helps
    Graham.

  • Disabling the button till the response comes

    hi all
    i want the button to be disabled till the response has finished on clicking the button. Can anyone help how to do it.
    in java script it can be done, but it is painful for doing each and every form. so i want a centralized way for doing it.
    will the submit button help? we had lot of problem due to it when the load increased and several false records came due to clicking the button several times when response took a long time to come.
    in our project we will normal button and the action is executed using the action attribute.

    There is no other way than disabling the button with Javascript after onclick. Just create a simple function which does that and call that function in the onclick attribute.

  • How to disable the button in application toolbar in report pgm

    Can anyone help with How to disable the button in application toolbar in report pgm

    Hi,
    You can use it_excluding to disable button on the tool bar.You have to find the function code for the required button and append that function code to the it_excluding .The optional IMPORTING parameter IT_EXCLUDING is an internal table. It is only needed if the caller uses the list tool standard interface but wants to deactivate interface functions which he or she does not need.You can have your defined pf-status using I_CALLBACK_PF_STATUS_SET.
    SAMPLE PROGRAM
    tables spfli.
    type-pools: slis.
    DATA W_FCODE TYPE SLIS_EXTAB-FCODE.
    data: t_spfli TYPE SPFLI OCCURS 0 WITH HEADER LINE.
    select * from spfli into table t_spfli.
    data : t_excluding TYPE SLIS_T_EXTAB .
    W_fcode = '&OUP'.
    append w_fcode to t_excluding.
    W_fcode = '&ODN'.
    append w_fcode to t_excluding.
    call function 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    I_STRUCTURE_NAME = 'SPFLI'
    IS_LAYOUT =
    IT_FIELDCAT =
    IT_EXCLUDING = T_EXCLUDING
    tables
    t_outtab = T_SPFLI
    EXCEPTIONS
    PROGRAM_ERROR = 1
    OTHERS = 2.
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/99/49b844d61911d2b469006094192fe3/frameset.htm
    Regards,
    Priyanka.

Maybe you are looking for

  • Restoring Links - inDesign CS5.5 - Highlighting found links in finder

    In inDesign CS4 - When I was searching for and re-linking missing links within my inDesign document, I would select the link in the links panel, click the relink icon in the Links panel, and go search for my link. Once I arrived at the folder where t

  • Need to create, build, or obtain the Windows 7 INSTALLATION media, not the recovery stuff

    I want to be able to install Windows 7 on a Thinkpad WITHOUT all the factory installed stuff.  I DO NOT NEED the recovery image "solution" that comes preinstalled on the laptop.  I need to be able to create a clean Windows 7 installtion that we can i

  • Green box with registration marks appears from nowhere

    ...and I'd like to get rid of it, but how and what is it? In any AICS3 document I open, my default is now an art board that is 200"x200" with a green rectangle about 60"x12" in its center. The green rectangle has registration marks on its corners. Ev

  • TIme Capsule stopped working after 10.10.3

    Now, after upgrading to 10.10.3 in a fruitless belief that it would speed up things, I can no longer do a backup with Time Capsule. I have followed all the hints left about deleting old time capsule config files but to no avail. Tried to run disk uti

  • OC4J security with certificates

    Hi, I'm trying to develop OC4J (with JDeveloper 10g) application that has to use certificates X509 for authentication. Can someone help me with links to demos or tutorials? Or some ideas how to build this? Regards, Niko