Fiori wave 2 PR hide reject button

Hi,
We have configured  SAP fiori wave to MM applications. There is no rejection possiblie we want to jide hte reject button from the Purchase Requisition approval.  Tried overriding mm_pr_apv app  S3.controller.js and s3.header.controller.js files by removing negative action from .oHeaderFooterOptions.
But it's not working. It looks like the buttons are coming from shared componenets. The above changes doen't have any effect in the app.
Can you please advice how we have remove the "Reject" button from the PR approvals screen.
Thanks in advance.

Hi,
Sorry, This is Abdul Raheem not Mr.Obaid. By mistake the message was created with Mr.Obaid's SAP passport.
Thanks for the info. But it's not working. It's not even going to the  extended controller.Please find below the COmponent.js and s3.controller.js file.
Component.js:
jQuery.sap.declare("ui.s2p.mm.requisition.approveExt.Component");
jQuery.sap.registerModulePath("ui.s2p.mm.requisition.approve", "/sap/bc/ui5_ui5/sap/mm_pr_apv");
jQuery.sap.require("ui.s2p.mm.requisition.approve.Component");
ui.s2p.mm.requisition.approve.Component.extend("ui.s2p.mm.requisition.approveExt.Component", {
metadata: {
  version : "1.0",
  config : {
   "sap.ca.i18Nconfigs": {
    "bundleName":"ui.s2p.mm.requisition.approveExt.i18n.i18n"
  customizing: {
   "sap.ui.controllerExtensions": {
    "ui.s2p.mm.requisition.approve.view.S3": {
     controllerName: "ui.s2p.mm.requisition.approveExt.view.S3",
S3.controller.js
sap.ui.controller("ui.s2p.mm.requisition.approveExt.view.S3", {
* Called when a controller is instantiated and its View controls (if available) are already created.
* Can be used to modify the View before it is displayed, to bind event handlers and do other one-time initialization.
* @memberOf ui.s2p.mm.requisition.approveExt.view.S3
onInit: function() {
  ui.s2p.mm.requisition.approve.controller.onInit.call(this);
    this.oHeaderFooterOptions = {
       oPositiveAction: {
        sI18nBtnTxt: that.resourceBundle.getText("XBUT_APPROVE"),
        onBtnPressed: jQuery.proxy(that.handleApprove, that)
       buttonList: [{
        sId: "btn_Forward",
        sI18nBtnTxt: "XBUT_FORWARD",
        onBtnPressed: jQuery.proxy(this.handleForward, that)
       onBack: jQuery.proxy(function() {
        //Check if a navigation to master is the previous entry in the history
        var sDir = sap.ui.core.routing.History.getInstance().getDirection(this.oRouter.getURL("master"));
        if (sDir === "Backwards") {
         window.history.go(-1);
        } else {
         //we came from somewhere else - create the master view
         this.oRouter.navTo("master");
       }, this)
    this.setHeaderFooterOptions(this.oHeaderFooterOptions);
Please advice what is missing.
Thanks in advance,
Abdul raheem

Similar Messages

  • Sending a document as an mail attachment with approve and reject button

    Hi all,
         i have an infopath form where a user fills the form and on submit the form is saving as an document in the document library,
    now my question is, how can i get this document as an mail attachment with approve and reject option.

    Hello,
    You need to hide them on form load for user. Add one more hidden control in form and keep control value blank initially. Now add rule on button submit to set the control value to some other so you can hide/show the button.
    Now add rule on approve and reject buttons that, if field1 is blank then hide this control.
    http://office.microsoft.com/en-in/infopath-help/add-formatting-rules-HA101783371.aspx
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Want to remove reject button in CATS_APPR_LITE

    Hello,
    I want to remove the reject button when we run CATS_APPR_LITE  transaction for one or more persons. There is no user exit for this transaction and I have not find any place in the BADI definition CATS_REPORTING to hide this button or atleast give error message when the user click the Reject button. Just wondering if there is any way to do this.
    Any suggestions in this regard are highly appreciated.
    Thanks.

    Hi,
    There are several user-exits in SMOD/CMOD starting with CATS00001...12. One of them has the capability of deactivating functions. I think these also work for CATSXT.
    Regards, Bert

  • How can I hide a button with javascript in Captivate 8?

    I need to run some javascript in my project and at the same time I want to hide a button, so I can't use advanced actions.

    It is very strange, most users who have focus on JS try to do everything with it, whereas lot of simple actions can easily be done with advanced/shared actions. I will only go to JS when it is not possible with advanced/shared actions.
    You are lucky, I was just restarting to work on an advanced training for next week when your question showed up.

  • How to hide 'SAVE' button in adobe form layout

    Hi  Friends,
    I have a requirement to hide 'SAVE' button in adobe form layout .They dont want to save the form .
    Is there any way to achieve this .I have gone through scn ,but couldnt find the proper solution
    Thanks and Regards,
    Subeesh Kannottil

    Hi Subeesh,
    Are you talking about restricting the User from Saving the Adobe Form Output. 
    Regards,
    Sivanand Ala

  • 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

  • Calling BAPI on click of Approve/Reject button

    Hello All,
    I have a GP Application in which the initiator fills out a form which goes for approval to the approver.....now once the Approver clicks on Approve/Reject button i want to call a BAPI to update certain fields in the R/3 ......since those 2 buttons are part of the standard SAP Visual Approval Callable Object ....please let me know if this is possible....
    Any help would be highly appreciated.
    Regards.,
    Anil

    Hello Anil!
    Basically, you have two options:
    1.) You can invoke the BAPI from your VC model when the button is clicked.
    2.) You can invoke the BAPI from the GP.
    First of all, you should consider wrapping the BAPI with a web service.
    For option 1: Import your web service into your VC model and invoke it when the button is clicked.
    For option 2: Create a callable object from you web service. In the VC you must now provide a result state, which indicates whether the approve or the reject button has been clicked. Depending on this result state you can now invoke the callable object in your GP.
    I recomment option 1.
    Best regards
    Alexander

  • Fiori Wave 8 Apps in the HANA Enterprise Cloud (HEC)

    Hi everyone,
    I am currently in a project, where we have to install the Fiori Wave 8 Apps in a HEC landscape. Unfortuneatly I have only experience with installing Fiori on an On-Premise System. Are there any guys out there, who have allready installed Fiori Apps in the HANA Enterprise Cloud and could provide some Best Practises or could help me answer the following question:
    Does an installation works in the same way like on an On-Premise System?
    In my understanding a private system infrastructure in the HEC is nothing else, than an On-Premise-System hosted in the cloud or am I wrong?
    Any knowledge would help me a lot.
    Thx in advance
    Dominik

    I personally haven't installed Fiori, but I would agree with your own conclusion in the question.
    Installation on HEC should be the same process as on-premise (which is the experience you already have), it just happens to be in an SAP data center, and not a customer data center.
    Best Regards,
    Jeremy Good
    SAP Technology RIG

  • How to Hide advance button in input list of values Popup

    I am using input List Of Values component to select value from search Pop up, in that popup i need only basic search only , i am unable to hide advance button... plase tell me how to hide this advance option

    I haven't tried this, but check
    How to remove basic/advanced button in inputListOfValues search dialog
    This does not have complete solution, but might give you some lead.

  • Using jQuery to hide a button (wrapped in td tag) based on attribute value (name in this case)

    I have simulated what I'm trying to do here:
    http://jsfiddle.net/dayjuuk5/
    Let me know if you can't see it for any reason.
    My question- I'm not sure I understand why this method of hiding this td tag doesn't work. I'm looking for a way to hide this button on page load (not click driven).
    Thank you for your time.
    Samir

    Hi Samir,
    Thanks for your sharing.
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • SHOW ALL / HIDE ALL BUTTONS produce error in chm but not in "View Selected Item"

    My SHOW ALL and HIDE ALL buttons work in the View Selected
    Item mode. However, the compiled version generates an error tag:
    Line: 72
    Char: 1
    Error: Object expected
    Code: 0
    URL:
    mk:@MSITSTORE:C\Documents%20and%20Settings\glenn_michaels\RoboHelp%206.0\TCA\!SSL!
    In short, the the compiled chm is located in the SSL. I tried
    adding showhide.js and ehlpDhtm.js to the SSL folder, but that
    didn't make a difference. What is missing? How do I fix this?
    Many thanks in advance...
    glennito

    Mr. Grainge,
    I've tried to follow your instructions to the letter, but I'm
    not having any luck.
    1) I copied the showhide.js to
    a) RoboHelp 6.0 > Project Folder
    b) RoboHelp 6.0 > Project Folder > SSL
    c) RoboHelp 6.0 > Project Folder > SSL >
    MicroSoft_HTML_Help
    2) I pasted btnhideall.gif, btnshowall.gif, printerblue.gif
    into
    a) RoboHelp 6.0 > Project Folder > SSL
    b) they are also listed in RoboHelp 6.0 > Project Folder
    3)The Project Manager > Baggage File originally displayed
    a
    a) Project (Name) folder
    b) ehelp.xml
    c) RoboHHre.Ing
    I opened the Baggage File > Project (Name) folder,
    selected New Baggage File, and added, respectively:
    i. btnhideall.gif
    ii. btnshowall.gif
    iii. ehlpDhtm.js
    iv. printerblue.gif
    v. printerred.gif
    vi. showhide.js
    vii. TCA.fpj
    vii. root.fpj
    4) I also opened rhbag.apj in Notepad. It shows
    a) ehelp.xml and RoboHHRE.Ing accompanied by
    <usercreated>false</usercreated> tags
    b) the remaining baggage files are accomanied by
    <usercreated>true</usercreated> tags
    5) Finally, I used Notepad to display two topic files in
    which the error message identified a Line: XX. In one case the line
    # is 42, in another, 19. In both cases, when I counted lines,
    starting with <body>, I ended up on:
    onClick="JavaScript:hideEm()"
    However, I am none the wiser for my effort and don't know
    what (5) might be telling me.
    6) The only thing I can think of is that the compiled chm
    file is two levels away from the Project Name directory that holds
    all the files. The files live in Robohelp 6.0 > Project Name
    while the compiled help is found in Robohelp 6.0 > Project Name
    > SSL! > MicroSoft_HTML_Help > Project Name.chm.
    Should I be adjusting the Relative Path within the topics?
    Many thanks for your attention and assistance.
    glenn

  • UWL Approve and Reject buttons not available in Portal 7.31?

    Hi I've been doing some research and came across some interesting articles...
    http://scn.sap.com/thread/1871429
    http://wiki.scn.sap.com/wiki/pages/viewpage.action?pageId=221611154
    I am trying to enable the Approve and Reject buttons per customer requirements but having some issues making these options available in the UWL ...
    Based on the articles above...
    Does the UWL not support this ?
    If it does, can anyone direct me on how to enable these ?
    Thanks

    After doing some research, it looks like the XML needs to be modified...
    Can anyone confirm that the code is still relevant in 7.31?
    <Action
    reference="com.sap.pct.srm.core.action.approve"/>
    <Action
    reference="com.sap.pct.srm.core.action.reject"/>

  • Workflow user-decision mail with Approve & Reject button to Outlook.

    Hi All,
    Requirement: To send a mail with Approve & Reject buttons to outlook inbox.
    Approach: I have used the user-decision step in the workflow and the approve, reject buttons are displayed . As far as solution in SAP inbox is concerned, it is solved.
    However the requirement is to show the mail with the buttons in the outlook mail.
    Resolution Required For: to show the mail with the buttons in the outlook mail. I am new to workflows sending mail to outlook inbox. Is there any way to do this using ABAP developments.
    Thanks for your time.
    Best Regards,
    Goutham.

    Hi,
    If you are on ECC 5.0 or above, you can use the Extended Notif. for achieving this.
    How are you getting the Outlook mail ?. If you already have Extn.Notif, then do the following :
    1. In Transaction SWNCONFIG,for your Scenario and Category,
    in the Subscription Basis Data -->Subscription Settings,
    Set the parameter SHOW_ACTION_DECISION_AS as "LINK"
    This will give you the options of your user decision as LInks in Outlook mail.
    There is lot of material in this forum for Extended Notif. if you search.
    Hope this helps.
    venu

  • JavaScript in the PDF can hide toolbar buttons

    Hi Leonard,
    You mentioned in http://forums.adobe.com/message/2161074#2161074 that "JavaScript in the PDF can hide toolbar buttons."
    According to the Javascript docs for Acrobat 7 the App.HideToolbarButton function only runs at AppInit.  Which means that I would have to have the javascript in a file.  How can I do that from within the document?  Is there another way to to do set this from our web application?
    Rob

    Perhaps that's simply a feature that isn't supported by presenting a Captivate intended for the web from inside a PDF?
    Just guessing... Rick

  • Approve and reject button not appearing in the POrtal screen

    Hi All ,
    I have an issue where i create a meeting rwquets and then it goes for approval to the manager , but in this case the manager is not able to see the approve and reject button in the screen , whereas it appears in the back end , please suggest what setting are to be in place to appear those two buttons to click on .

    Hi,
    Then you will have to modify the standard UWL configuration file.
    If your task looks like a standard task (maybe you copied a standard task and modified it slightly), you have to find the ItemType corresponding to the standard task in the UWL configuration file then copy this ItemType and adjust it for you custom task. Please take a look at my last post in another thread : Re: UWL - how to approve purchase requisitions
    If your task is 100% custom then you'll have to find out what is behind the Approve and Reject buttons in the Business Workflow and modify the UWL configuration file accordingly. For instance if a function module is used to approve or reject the request you can define your approve and reject actions using the FunctionModuleActionHandler. You can find more information in the documentation : [Task Launch Customization|http://help.sap.com/saphelp_nw70/helpdata/en/36/dd4ad73c86412e81e9ce66eeb147e7/frameset.htm].
    Regards,
    Pierre

Maybe you are looking for

  • Setting up access points for public access

    Okay, here's the situation. I have a PowerMac G4/1.25GHz dual processor running Server X 10.3.9 with four Mac clients (a small law office). Up until recently, everyone had also been running (client) 10.3.9, but I started upgrading some of them to 10.

  • Is versioned repository part of Oracle ATG Web Com 10 Impl cert topic?

    All, Does anyone know if the 'versioned repository' is part of the "Oracle ATG Web Commerce 10 Implementation Developer Essentials" topics ? Oracle University website says that its is part of the certification (http://education.oracle.com/pls/web_pro

  • How many while loops in an applicatio​n is appropriat​e?

    Hi, I am writing an application that is growing and now I'm about to add the 5th while loop on the root level. So far, I have loops for: 1. Receiving data 2. Transmitting data 3. Processing commands 4. Handling front panel events 5. (about to be adde

  • Update table TTDTG

    Good afternoon, I wonder if you can help me? I want to change a description of an object in report S_ALR_87012287. In order to do that, I have replaced "Partita IVA" by "IC/PIVA" in table TTDTG. When I run the report afterwards, no changes have been

  • Dynamic Message Box

    I am trying to create a dynamic message box that will update as things are being deleted from a list. I am going to presume that JOptionPane won't allow for such a thing as fancy as this and I have really no other idea as to how to do this.. All I ne