Approval Process to Apply to Updated Documents

Hi,
My customer has a problem with certain Sales Orders not going through the Approval Process.  Users are circumnavigating the Approval Process in a sneaky way. 
Let us say that we have a Sales Order with a value of £1000.  On hitting Add, SAP asks the user to submit the Sales Order for approval.
If the user then clicks Cancel they return to the Sales Order entry form.  If he then changes the Order value to a figure which does not fire the Approval Process (for example £0) the system allows the Order to be Added.
If the user then amends the Order back to the original £1000, he can Update the Order without firing the Approval Process.  I found out how this was happening by looking at the History of a Sales Order and have recreated the issue locally.
I have found SAP Note Number 904373 - Approval Procedure not working on marketing documents.  This note states that the above scenario is system behaviour.
Can this be changed so Updated documents will fire the approval process?
Thanks
Greig

Hi All,
Can we use the Request API to create the request (and then Approval) for other than ADD (object type like Disable, Enable etc) of a user like below
long lRequestKey;
long UserKey=1;
long ObjectKey=201; //testro1
HashMap reqMap = new HashMap();
reqMap.put("Requests.Target Type", "U");
reqMap.put("Requests.Object Request Type", "Disable");
reqMap.put("Requests.Type", "U");
lRequestKey = reqObj.createRequest(reqMap);
System.out.println("Created request and got key :" + lRequestKey);
reqObj.addRequestUser(lRequestKey, UserKey);
System.out.println("Added the request user");
reqObj.addRequestObject(lRequestKey, ObjectKey); // I am not sure if this part is right but without this it is giving me the error.
System.out.println("Added the request object");
reqObj.completeRequestCreation(lRequestKey);
System.out.println(Completed and submitted the request");
I gave it a try but the Resource detail is not getting populated in the request due to which request hang up in "Request Initialized" state. I tried by passing the Process Instance Key also but no luck.
Any chance if anyone crack it before. Please tell me. Thanks

Similar Messages

  • 925685 - Approval process is not triggered after documents are added

    Hi there,
    I was wondering if anyone found already a solution for the following problem.
    According to SAP Note: 925685 - Approval process is not triggered after documents are added.
    Within our SAP application, we want to approve purchase orders for departments based upon the document total.
    I was very astonished that employees are able to add a PO which will not trigger an approval stage and after the document is added, they have the possibility to change the document and at the update moment no approval will be started even if the document meets the approval requirements.
    Therefore I really want the flexibility to give users the possibility to change their PO.
    Meanwhile, documents which are added under approval, are also locked for changes, although this is another question it is also pretty annoying!
    I hope anyone has already found a method or work around for the stated problems above.
    (We are using SAP 8.8 PL 20)
    Thanks in advance.
    Kind regards,
    Marcel

    Hi Kambadasan,
    Thank you for your reply
    I'm sorry but I know how the approval templates work and they are configured correctly, however as SAP also mentioned in their own Note, this is due to the lack of SBO that SAP has such behaviour.
    Hi Gordon,
    Thanks for your reply.
    Unfortunately I have not found the post you mentioned...
    I will post my issue alson on the topic you mentioned.
    Hopefully they found a solution or maybe version 8.81 will solve the problem.
    Thanks a lot!!
    Kind regards,
    Marcel

  • Approval Procedure Not Triggered on Updating Document

    Hi,
    When Adding a new Sales Order, if the document meets the criteria laid down by an Approval Template, the Approval Process is started.
    However, if an old Sales Order is Updated, the Sales Order the Approval Process is ignored.
    This is a problem for certain customers who have Approval Procedures which prevent users Adding Sales Orders which would take a Business Partner over the Commitment and/or Credit Limit.
    The user can get around the Approval Procedure by adding a Sales Order for a value which keeps the BP under the set limit.  If they then Update the Order, they can enter any value.
    For example, a user may be prevented from adding an Order totalling £1000.00.  If they Add the Order for £0.00 instead, they could later amend the Order to any amount as the Approval Process is not fired !

    Could you clarify what you mean by "The credit limit exceeded is in negative numbers"
    Negative number: the system message I get when I create a delivery note for a customer, exceeding the credit limit is the following:
    Customer has exceeded credit limit - 95.479 EUR
    Customer has exceeded commitment limit - 95.479 EUR
    Continue (Y/N)
    Make sure the Credit Limits are set in the BP Master. --> OK, credit limit is set to 100 EUR, Commitment limit to 100 EUR
    Also use Great than in Ratio and try to use a small number like 10 in the value  --> I am using 1 EUR
    Also, check in System Initialization > General Settings..BP Tab Activate approval procedure is checked. --> it is checked.
    Using the range option does not solve the problem, in fact even if I use 'Deviation from Credit Limit does not equal 1 EUR' the approval is not triggered. When I use the same Approval template, but I alter the terms to Total document greater than 1 or Discount% greater than 1 the approval is triggered.
    Edited by: Rui Pereira on Apr 29, 2009 1:19 PM

  • Approval process is skipping with update user

    Hi,
    I have approval process before updating a user (the oganization in which the user exists has approvers assigned to it). I am using the default Lighthouse Approval subprocess.
    But when i try to update a user, the workflow is going inside the "Lighthouse Approval" subprocess but the "getApprovals" activity (in the approval subprocess) is returning null. So the approval workitem is not being created.
    Can anyone help me out in this? Am i missing anything here.
    Thanks

    I belive the approvals only works for when someone is assigned the role, not when they are updated.
    Dana Reed
    Senior Identity Management Architect
    AegisUSA
    Denver, Co

  • DRQ#  Approval Process Does Not Fire on Update of Document

    Hi,
    If a purchase order is added for a value which does not require approval, then later the actual price of the order is known and is a value which requires approval, the user is able to update the purchase order without an approval procedure being triggered.
    Note #925685 states that approvals will not trigger on update, however this means a user can modify documents to a value which should require an approval process.
    Lianne

    Hi Lianne and Davis,
    I was wondering if you already found a solution for this problem.
    Unfortunately I did not found your post about the approval process.
    ( Re: 925685 - Approval process is not triggered after documents are added )
    Do you know if this is solved within 8.81 or did you find another solution?
    Kind regards,
    Marcel Kieboom

  • PO Approval Process - Statuses Query

    Hi All,
    I am not able to figure out when will the following combination of statuses will occur in a PO Collaboration with Approval Process.
    Distribution Status : Updated by Customer
    Change Distribution Status : Published by Supplier
    It will be great if anyone can illustrate this with example.
    Regards,
    Bharath

    Hi Nikhil,
    Thanks for the answer. But in my tests, when one  / more of a PO line item is set to "Manual Approval Required" after the Approval Process, the statuses are as follows:
    Status 1:
    Distribution Status : Published by Supplier
    Change Distribution Status : Updated by Customer
    If the Buyer logs into SNC Web UI and approves the deviation, the statuses change to :
    Status 2:
    Distribution Status : Published by Supplier
    Change Distribution Status : Published by Supplier
    This triggers a PORDCH Idoc which goes and changes the ECC PO and sends a new PORDCR1 / RON to SNC. After this the status becomes:
    Status 3:
    Distribution Status : Updated by Customer
    Change Distribution Status : Updated by Customer
    So my query is when do we get the remaining combination of the statuses i.e.,
    Status 4:
    Distribution Status : Updated by Customer
    Change Distribution Status : Published by Supplier
    This is primarily to define the PO Chnage Profile.  As per std. SAP Change Profile, for Status 1 & 3, the PO is editable by supplier but for status 2& 4 its display only.
    Regards,
    Bharath

  • E-Mail Notification in Approval Process (EP 6.0 SP2)

    Hi all,
    we established an approval process for specific documents in our KM repository.
    Additonally to the notifications in the notification i-View we want to send out notification e-Mails at each approval step.
    We have also a subscription service on the related folders, but they only send out an e-Mail when the approval process is finished and the document is already published.
    Can anybody tell what we have to do to send out e-Mails at every approval step?
    Best Regards,
    Albert

    Hi there,
    for this, please implement your own repository service; see /thread/14909 [original link is broken]
    Hope it helps
    Detlev

  • APPROVAL PROCESS WORK FLOW

    Hi,
    I have already set the approval process, in which I have a user that authorizes and the one that publishes.
    The ContentCreator is supponsed to create documents that need to be authorized and published in order to be seen. But what happens when the Content Creator happens to create a new folder and a new document in that folder? That new folder does not inheritate the approval process, and so the new document in that folder is automatically published, invalidating the approval process.
    How can I avoid that mistake? Ho can I limit the creation of new folders just for the administrator?
    Thanx

    Hi
    Thanks for your response.
    I am able to approve the Manual PO created.
    I have created the requisition using custom program (which calls requisition import) and took that requisition and using AutoCreate created the PO, it comes to Approved status.
    Its going to Pre-Approved if I call PO_INTERFACE_S.CREATE_DOCUMENTS.
    Then I am calling the following procs to approve it. Please chk it and let me know.
    PO_REQAPPROVAL_INIT1.Start_WF_Process ( ItemType => ItemType,
                        ItemKey => ItemKey,                     WorkflowProcess => WorkflowProcess,
              ActionOriginatedFrom => L_ActionOriginatedFrom,
                        DocumentID => DocumentID,
                   DocumentNumber => DocumentNumber,
                        PreparerID => PreparerID,
                   DocumentTypeCode => DocumentTypeCode,
                   DocumentSubtype => DocumentSubtype,
                   SubmitterAction => L_RequestorAction,
                   forwardToID => nvl(forwardToID,PreparerID),
                   forwardFromID => forwardFromID,
                   DefaultApprovalPathID => DefaultApprovalPathID,
                        Note => DocumentNote,
                        printFlag => print_check );
    apps.PO_REQAPPROVAL_ACTION.Approve_doc(itemtype => ItemType
    ,itemkey =>Itemkey
    ,actid => null
    ,funcmode => wf_engine.eng_run
    ,resultout => l_approve_message);
    Thanks in advance,
    Shabbeer

  • Approval Process Not triggering?

    Hello,
    I have created a simple Approval process in which request should go to the Beneficiary manager through JDEVELOPER. I have also registered this Approval process with OIM.
    After that i have created two Approval policies..
    REQUEST LEVEL--
    This is Auto Approved.
    Approval Rule :: Template Name equals Provision Resource.
    Set Priority : 1 (Request Type=Provision Resource)
    OPERATIONAL LEVEL --
    Approval Process attcahed at this level.
    Approval Rule :: Template Name equals Provision Resource.
    When i am creating a request for a particular resource the request is getting assigned to XELSYSADM by default (as per the Developers Guide for OIM 11g, if no approval policy is attached with the template the default Approval process gets trigerred and the request gets assigned to XELSYSADM.)
    Can somebody help me by telling why the Default Approval process is getting triggered and not the one which i have attached at the Operational level?
    Am i missing Something?
    Thanks in Advance.

    As i have mentioned earlier, it is configured such that the appropriate approval process is triggered when a request for particualr resources is requested.
    There are multiple tasks in each one of the approval process.
    The approvals were triggering well 2 days ago and suddenly there seams to be a problem in the approval triggering.
    The approval process was not edited / updated for any of these resources. Wondering why suddenly OIM does not work well for the approval triggering???
    here the problem is none of the configured approval processes are triggering. Its not just one approval process but all 12 approval processes (including standard approval) are not triggering when the request is raised.
    Appreciate your help till now, please suggest me how to make OIM trigger the approvals again!
    Thanks

  • To Activate the Approval Process when document is in update mode

    Dear Expert,
                        I have applied the Approval Process for UDF using the query "Select Distinct 'True' From ORDR T0
    Where IsNull($[ORDR.U_Rebate.number],0)>0 and $[ORDR.DocType]='I' ".
    Now as the field is UDF user is able to modify even after approval procedure.
    Please help me to apply the above query for the  Approval process even when the document is in update mode.
    regards,
    PankajK

    Dear Pankaj,
    Current B1 design only support approval for adding document. Update will not trigger approval.
    You may use SP_TN instead to block user updating it. If you are not familiar with the SP, search the forum first.
    Thanks,
    Gordon

  • Approval process in update user workflow

    Hi
    I have read in the document Administrative Guide that by default, the approval process is set only for user creation. and the same does not work for update and delete operations on user, unless we customize the code.
    Does any one of you have any idea as to what customization needs to be done for successful approval process for updates also. I have set approvers for resources.
    Thanks
    Bushra

    1. backup the existing Update user workflow as an xml file
    2. Copy paste the same in the BPE.
    3. Save the copy as a new object with a different name.
    4. Edit the new workflow as follows:
    4.1 Create new activity
    4.2 In the new activity, add a variable with some name
    4.3 create a new action, and let that action be a subprocess. For that subprocess, browse and choose 'Approval' as the action.
    4.4 Add a argument as name=approvalForm and value=<name of approval form>
    4.5 Include argument user=$(user), etc. (Check the original approval workflow to see what the names of the arguments are)
    4.6 For return to=name of the variable declared, from=approved
    4.7 Add a 'isTrue' condition for the variable declared.
    5. Make the appropriate transitions, and ur ready to go.
    Let me know if this helps. I can post some skeleton code tomorrow. I need to work on it. Drop a line at [email protected]

  • Approval templates don't fire when updating document

    I'm running trials in my test database and it appears that approval templates only work on new added documents?  SAP Business One version 8.82  I am testing a query that calculates certain criteria against the business partner's credit limit.  If there is a deviation I want the approval process to start.
    Everything works fine when I add a new sales order with a doctotal that deviates from my credit limit logic.  Approvals fire off and the user has to wait for the manager to approve.  However if I add a sales order with zero value and then go back in and update the pricing later the approval never triggers.  So users are just able to go around approvals by adding blank documents first and then updating them however they see fit.
    Am I doing something wrong or is this just how SAP B1 approvals function?  Do approval templates have any impact on updated documents?

    Do TN's throw the red bar erros at the bottom of the client's GUI?  The ones that look like this...
    I'm looking through the following documentation...
    http://scn.sap.com/docs/DOC-7034
    and I can't seem to confirm what returning @error = 1 will actually cause.

  • Change Status of archived document after approval process

    hi how can we change the status of an archived document in KM after it has gone thru the approval process.
    the reason once we archive we cannot resubmit the document for approval.
    thanks

    Hi Venu,
    have a look under System Administration - System Configuration -- Knowledge Management -- Configuration --Content Management -- User Interface -- Commands -- UI Command Groups -- StatemanagementGroup.
    See Java class: com.sapportals.wcm.rendering.uicommand.cm.UIStatemanagementGroupCommand. Take the class and decompile this and everything needed around to understand how this class works.
    Then you can choose to extend this CommandGroup to also have a command "Resubmit for Approval" or you can implement your own UI Command only for resubmitting (you will also have to activate your command (group) by settings within the configuration).
    On the other hand, if all this is completely new to you, I'm a bit sceptical if the task isn't a bit too big as a first task on KM implementation topics...?
    Hope it helps
    Detlev

  • Wrong document in approval process

    When a user creating  outgoing payment document which need to pass through approval process and when the other user receives message to approve the document when he click the arrow button to see what actually entered in the document the system displaying the purchase order draft  instead of outgoing payment draft.
    Why this actually happens?
    SV Reddy

    Hi Experts,
    Does the patch also solve the the permission error when user try to view the outgoing payment?
    I have a user with full authorization on outgoing payment but cannot view document from the folllowing reports
    Approval decision report
    Approval status report
    Approval messages from the inbox
    The error message we get is you are not permitted to perform this action
    Regards,
    Amy

  • API for Document Status in a Approval Process

    Hi All,
    I wanted to know how to get the status of a document that is in a folder having a Approval Process defined to it & Is it possible to programatically Submit a document for Approval. If yes please let me know..
    Thanks in Advance.
    Regards,
    Aditya Metukul

    Hi Detlev,
    You are simply gr8..it worked...
    below is the  code snippet  written by me:
          void submitResource(IResource resource){
                   try {
                             //get the statemanagement service from the resource
                             IRepositoryServiceFactory factory = ResourceFactory.getInstance().getServiceFactory();
                             IStatemanagementManager statemanagement =
                             (IStatemanagementManager)factory.getRepositoryService(resource, IWcmConst.STATEMANAGEMENT_SERVICE);
                             IStatemanagementResource sResource =
                             statemanagement.getStatemangementResource(resource);
                             IResourceTransition transition = sResource.getTransition("lbl.submit");
                             //if everything is correct than transition is not null
                             if (transition != null) transition.execute();
                   } catch (Exception e) {
         } //end of submitResource
    Message was edited by: aditya metukul

Maybe you are looking for

  • How can I use another ID in ADE to download an eBook of Google Play Books?

    I've already have an ID account in ADE, but I can't download a PDF copy of a Google Play EBOOK in ADE, maybe beacause I think I need to add my google account to ADE. Is it possible? I've got the message "Error. Check activation" when I try to add the

  • How can i paste the explain plan from toad..

    Hello all I tried taking a snap of the explain plan from toad but in this forum the paste option is disabled...please help

  • Reg : Navition to FB03 Transaction through SAP Query

    Hi Experts, I have developed a SAP quesry for BSIS table with Clearing Doc ( which is always blank value) and Acct doc in the output list and I have made this report as interactive ( RRI- Report/ Report Interface ) to navigate to FB03 whenever a line

  • Upload process from Obiee to siebel

    Hi Gurus, I got a Requirement where I need a upload Button in the Report by clinking this button it should upload the Results into Sibel.My current Environment is like this we have a dashboard and user selects the Values In prompts and get results in

  • Bare structure of stored Proc

    Hi. I was wondering if someone could give me the bare neccesities of a stored proc. I'm trying to call one from java. What I have is: create or replace procedure proc1 as BEGIN END but I get compilation errors. Thanks you!