Approval mails for V1 Items

Hi Guys,
Have a requirement wherein the system generated approval mails are not going for V1 items. Could you please provide a solution for the same as in how can we configure SAP for it.

We redesigned the Pur Req release / approval two years ago and had to program class IF_EX_MD_PURREQ_POSTand method POST_AFTER_SAVE. during MRP to trigger Work item creation for release relevant purchase Requisitions initiated by MRP. We coded it (using TVARV entries) to be triggered only for specific plants and MRP controllers so that workflows were not triggered for STO pur reqs and others outside of the approval scope.
It is not clear if you are using workflow or plain ol release. Incase its workflow, some additional details below.
Additional criteria in the Class
IF IM_EBAN-ESTKZ = 'B' AND   "Material Requirements Planning
       IM_EBAN-FRGKZ = '1' AND " Not yet released
       IM_EBAN-FRGZU = SPACE AND
       IM_EBAN-FRGST <> SPACE AND
       IM_EBAN-FRGGR <> SPACE.
Then, if needed work item is needed,
LV_EVENT = 'RELEASESTEPCREATED'.
        LV_OBJKEY = IM_EBAN-BANFN.
        LS_EVENT_CONTAINER-ELEMENT = 'ReleaseCode'.
        LS_EVENT_CONTAINER-VALUE   = LV_REL_CODE.
        APPEND LS_EVENT_CONTAINER TO LT_EVENT_CONTAINER.
        CLEAR LS_EVENT_CONTAINER.
*- Trigger Event
        CALL FUNCTION 'SAP_WAPI_CREATE_EVENT'
Good Luck !

Similar Messages

  • How to override Approve button for list item?

    Hello,
    Is there a way how to override the method that runs after list item is approved / rejected? I know there is a way for the Save button but I can't find how to do it for the Approve button.
    I have a list with approval and workflow. Then I have a page that displays the items from the list in my webpart in a calendar/grid way. The items in the webopart have links leading to the display form with the item ID and Source parameters. Source parameter
    leads back to this page. The background color of the item in the webpart is decided by the approval state of the item.
    When user approves the item and the item form closes user is then sent to the page with the webpart (via the Source parameter) but the workflow takes couple of seconds more to process the aproval so the color is not changed when the webpart renders but if
    the page is refreshed it shows the correct color because the workflow has finished.
    I want to override the Approval method, let it update the item so the workflow can fire and process the approval, delay the form a bit and then continue as usual so when the user is redirected to the webpart page it would render with the correct state.
    I can make a delay page that redirects to the webpart page and change the Source parameter in the items link to go there but it doesn't look that great.
    Or maybe there is a way how to do it in Javascript? I am using it in the new item form using the SP.UI.ModalDialog.showModalDialog(options) function where the dialogReturnValueCallback refreshes the windows after 3 seconds.
    dialogReturnValueCallback: function(dialogResult) {
            if (dialogResult == SP.UI.DialogResult.OK) {
             setTimeout(function(){window.location = "MyPageUrl"}, 3000)
    Thanks for any tips and ideas!

    you can try to achieve this via separate responsibility by personalizing the form by display false on the particular control button..

  • Approval template for line item price variation

    Any recommendation on how to managed price variations at a line item level with using approval templates? The approval templates currently only allow for TOTAL document differences.
    A senario as follows
    1.  Purchase order with line item price created
    2. GRNI created (and unit price changed)
    3. AP invoice created  - AP approval template kicks in advising that there is a price discrepancy at a line item level between the Base and target documents.

    Hi!
    You can achive this via Stored Procedure.
    Approval Procedure will not work for Row Level.

  • Control Approval mails for every user

    Hi everyone,
    I have following question:
    We have implemented an approval workflow to publish documents in our CM. If a user submits a document to approval, an email will be sent to the person who has to approve the document and a workitem is sent to the UWL. How can I suspend the sending of the email, so that the approver only gets a workitem to the UWL and not an email in addition too? Is it possilbe to control that for each user like in R/3 SBWP?
    Regards,
    Andreas

    Hi Patricio,
    yes, that would be the easy way! But I don't want to remove the email channel, because user should still be able to send emails etc. from portal. also the feedback, collaboration services should send mails. I only want to suspend the email notifications for the approval process!
    Regards,
    Andreas

  • Approval procedure for item and for business partner

    Hi
    Anyone has done somekind of approval procedure for an item or for a business partner?
    Is there anyway to make this? Or just for documents?
    Regards,
    Vasco

    You can only use SAP approvals for documents. You can construct a less controlled approval method for master items by first creating a BP mandatory "Approved" UDF", and using an auto refresh FMS to set it to blank unless "on hold" is checked when the BP record is created. This will prevent it from being used in documents. Then another UDF for an authorised user to initial the BP record as authorised and uncheck the hold flag. There is nothing to stop this method from being abused but you do have the History log so that you know who did what. I have not tested the exact procedure described but have done similar for documents (to force a save as draft) when the SAP Approval has been too restrictive. Otherwise it's SDK.

  • Requisitioner is not receiving the PO approval mail

    Hi SAP Guru's
    SRM 5.0 CCM2.0 , Extended Classic Scenario,
    After creating the PO , the PDF format of PO with Email notification is sent to the vendor Email address but requisitioner is not getting any PO approval mail for the same. its been 3-4 weeks requisitioner is not receiving any mail before that the mail was sending into mailbox.
    I have checked in SOST TC and seen that the email is sent to the vendor address only but not to requisitioner.
    There is two batch job are running for that - Z_Print_PO ( Sending PO by mail to vendor )and Z_SENDMAIL ( Sending PO by mail to vendor )
    Please clarify should requisitioner also get the PDF of PO or get the PO approval mail only & How ?
    Kindly advice.
    Thanks ,
    Jayoti

    Hello Jayoti,
    After creating the PO , the PDF format of PO with Email notification is sent to the vendor Email address but requisitioner is not getting any PO approval mail for the same. its been 3-4 weeks requisitioner is not receiving any mail before that the mail was sending into mailbox.
    During output PO (whatever the sending medium), no approval PO workflow mail can be sent as the workflow is finished.
    Clarify what you are talking about for Requisitionner: notification mail when PO is approved or approval workflow mail ?
    Regards.
    Laurent.

  • Workflow SharePoint 2010 -Approval workflow for multiple users

    Want to create a 2010 SharePoint server workflow which will allow me to send email once item is added > Start approval process > if approved then mark workflow status as approved and then send email to reviewer 2 and again start the process of approving
    > and approved then again mark status to approved and send email to reviewer 3 and mark status to approved if approved by reviewer 2 and end the workflow.Also, if the item is not approved by any user, then it should directly log a comment and go to end
    of the workflow.
    I had started as something like :
    Send Email to rev1
    Start approval process for current item with rev1
    if approval status is approved
    set workflow status to approved
    send email to rev2 and so on...everything works but when rev1 rejects the item, then workflow does not go to end of the workflow. One difficult thing is we don't have go to a step option like in 2013 workflows.
    I don't know how to move on as when I try to execute the logic, all three approval process(for 3 reviewers) run even if item is rejected .....Please help

    Check these links
    https://slingeronline.wordpress.com/2013/02/27/setting-cancel-on-first-rejection-on-an-spd-workflow/
    http://sharepointduffbert.com/2014/06/17/getting-an-spd-approval-workflow-to-cancel-on-rejection-or-change/
    https://social.msdn.microsoft.com/Forums/office/en-US/c212e5d7-f7bf-4f17-be16-374e02652dbb/reject-stop-workflow-not-working?forum=sharepointcustomizationprevious
    https://social.msdn.microsoft.com/Forums/sharepoint/en-US/a2d0a259-f8ca-48cf-b9ab-0c9387329502/sharepoint-designer-workflow-how-to-jump-back-to-previous-workflow-step?forum=sharepointcustomizationprevious
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • Wrong format in Approval Mail to the user

    Hi,
    I have received the approval mail for my Expense report and the amount in the mail is shown as 1389,,5
    but the actual amount requested is 1389,15 EUR.
    Kindly Suggest.
    Sincerely,
    Manasa

    Please work directly with your travel department to resolve the issue.  The support avenues for SAP employees are documented on the right side of the portal page here:
    https://portal.wdf.sap.corp/irj/portal?NavigationTarget=navurl://989aa963a6af802bae7b6390db4b2cef

  • Resend e-mail for SC approval

    Hi all,
    I am having the following issue: In EBP an e-mail for SC approval was generated and sent to the approver. However, this resulted in an error since the e-mail address didn't exist. I have corrected the e-mail address, but I am not being able to resend the SC approval e-mail to the new address.
    Can anyone help me with this?
    Thanks in advance,
    Joã

    Hi
    In the program RSWUWFMLEC, we have set a variant.  In the tasks field we have put into the selection, the workflow tasks we use for approval.  If you leave this blank, it will pick up every workflow task.
    The program (from the SAP information I had at the time) looks at any item in status NOT COMPLETE and sends an email to the approver, until the approver either approves or rejects the item.  We run our program every 4 hours, so that approvers do not get lots of emails for the same items.
    Futher down in the parameters, there is a date and user field.  Normally again the user is left blank,to look at all users, but to test or check if the email will be sent, I asked Joao, to input the users id and make the date from, the day before the work item was raised.  Also click the radio button for ALL.  The report will show if an email will be sent or not.
    Kay

  • Fill in for Me Substitution Rule - Why no offline approval mail to Deputy?

    Dear Experts,
    in SRM 7.0 CS, i am facing the following question w.r.t. the substitution rule:
    When a user (approver) creates the Receive my tasks substitution rule for a deputy, than, when ever there are new SC get ordered that need to receive an approval from the "original" approver, not only this original approver but also the deputy receives a the offline approval mail.
    But in case the "original" approver maintaines the second substitution rule - the Fill in for Me rule, than no offline approval mail is sent out to the deputy.
    Can you maybe help me out with a pointer regarding a possible root cause?
    Thank you very much.

    Hi Balaji.T.
    sorry for the missing clarity in the formulation.
    What i usually see in my system is, that when a work item is created (in general) than on one hand this work item gets sent via the workflow to the (universal) work list of the responsible. And on another hand, there is also an offline approval mail that is being sent via an email to the approver. In that offline approval mail, there is a description of the shopping cart content and also a link included. Via that link the approver can branch out into the shopping cart itself, out of the offline approval mail.
    So, the above described behaviour i see also, when the first of the substitution rules is used. The delegate receives both, the work item via the workflow into the work list. And also the offline approval e-mail.
    But when the second substitution rule is in use, than there is only the distribution of the workitem to the work list of the delegate there. But the delegate does not receive the offline approval e-mail.
    Thank you.

  • Offline approval for line item based Shopping carts

    Hi ,
    We are planning to  use offline approval and line item based approval (item based approval workflow) for shopping carts.
    For e.g. 10 line items in a cart can have 10 different  cost centres, and a line each need to go to respective cost centre managers for approval.
    have few clarifications:
    1. Can offline approval be used for item based shopping cart approval workflow?
    2. Can different line items be sent by mail to different mail boxes?
    3.  Will 1 manager see all the 10 line items OR only the 1  line item for which he is responsible?
    4. If he will get only line for which he is responsible , and once he clicks on approve , will this approval apply to his line item only , OR it will apply to all the 10 line items ?
    Rgds
    Sumendra

    Hi Sumedra,
    Which workflow are you using - application or process contrlled workflow?
    Assuming you are using process-controlled workflow - I will answer following questions -
    1. Can offline approval be used for item based shopping cart approval workflow?
    - Yes, it can be used !
    2. Can different line items be sent by mail to different mail boxes?
    Yes
    3. Will 1 manager see all the 10 line items OR only the 1 line item for which he is responsible?
    1 manager can 'see' all the items but he can only approve or reject the item that he is suppose to act on. All other item will be grayed out. However, this behaviour is configuarable !
    4. If he will get only line for which he is responsible , and once he clicks on approve , will this approval apply to his line item only , OR it will apply to all the 10 line items ?
    - see above
    Regards,
    Amit

  • How to create distribution list in workflow? for  sending mail or work-item

    Hi,
    How to create distribution list in workflow? for  sending mail or work-item to multiple users.
    Regards,
    Surjith

    Hi Surjith,
    A.Working with Distribution Lists Creating a Distribution List.
    1 Businees Workplace->shared folder - create new subfolder name = WF_distributor
    2.Then click on the distribution list in Businees Workplace.
    say create Name = WF_Vliste
    folder Name = WF_distributor
    3.distribution list content tab
    Enter Recipient (SAP User ID)
    B.Wrkflow Builder
    Find out the dialig step in which u want to use distribution list
    Use workflow Rule 30000012 (SWX_READ_DLI).
    Maintain the binding from workflow container to rule container.
    Just pass the name of the distribution list from WF to Rule container.
    Regards
    Sagar S

  • User receiving two mails for a single shc to approve

    Dear Experts,
    we have a scenario in which same user exists in 2 purchase organizations , one as virtual user, however when a shc created from purchorg1, user receives approval mail twice which shouldn't happen.When a shc created and approved, po created, would it be possible to change the shc as we receive 'system status is active' ,although found a note but still need confirmation to apply the same for SRM5.0 version.Please advice me on how to trace the workflow approval chain in srm for shc and the approvers involved also on deletion of assignment of virtual user.
    Thanks and Regards,
    Sathya Kumar.

    substitution error.

  • Reminder mail for workflow approval

    Hi All,
    We have a scheduled task which sends Reminder mails for workflow approval which has been pending for more than 5 days.
    Recently I created new workflow definitions and reminder task stopped sending mails.
    I checked task and it has IapiTaskIfc Class com.frictionless.custom.wkfreminder.sendWorkflowReminder.
    How to check this class and do i need to make changes somewhere else to send reminder mails?
    Regards,
    Prabhat

    Hi Prabhat,
    I am working on creating a scheduled task for sending reminder emails. I need help on IapiTaskIfc Class com.frictionless.custom.wkfreminder.sendWorkflowReminder. Can you please share sendWorkflowReminder class to me, so that I can get idea about the code written for sending reminder emails? It would be great help.
    To check the class, you need to get the jar from server and decompile it. You can get some idea by looking at the java class file then.
    Thanks,
    Saloni

  • Workflow-status is awaiting approval for rejected item

    Hello,
    I am working on SRM 5.5. Extended classic scenario.
    I have implemented the workflow WS1400133 for 3-step SC approval ( using the corresponding BADI) .
    I have an issue , where, if the shopping cart is rejected by one of the approvers, then the approval overview shows result : REJECTED , however, the approval status in the ( approval transaction) , shows the workflow status as 'AWATING APPROVAL'.
    So, the user cannot modify the shopping cart to resubmit for approval.
    Any inputs as to why this is happening and any solution to this ?
    Thanks in advance,
    Aravind Nair.

    Hi Arvind,
      When the SC is rejected ,the total value fo the SC becomes 0.Have you set the  parameter "no_further_approval_needed" for this condition(for rej items)?
      ALso refer the note 790027.Hope this helps.
    Regards,
    Disha.
    PLs reward points for helpful answers

Maybe you are looking for