# BPM to Stop AP Process Payment in AP Payment Entry **Category:** [Epicor ERP 10](https://www.epiusers.help/c/e10/5) **Created:** 2016-10-03 21:48 UTC **Views:** 1479 **Replies:** 5 **URL:** https://www.epiusers.help/t/bpm-to-stop-ap-process-payment-in-ap-payment-entry/35667 --- ## Post #1 by @spulsifer Hello, We use Epicor 10.0.700.4. I’m a bit rusty with BPMs, so I’m hoping someone can help. I'm working in a test environment. I’m trying to add an approval process to AP Checks with a BPM. I have a custom field APChkGrp.Checkbox01. When this box is checked , then I want to allow Actions > Process Payments. When the box is un-checked, I want to block Actions > process payments. I think my business object is Payment entry and my methodname is GetRestartProcessPayment. I found these in the trace log. First, I added a preprocessing step. To test, I added a message. My message displays prior to the Process payments window. Second, I wanted to check to see if I can block the process completely. I added a "Raise Exception" in the workflow designer. I checked the box to terminate on error. The exception message displays, but the Process payments window still follows the exception message. Finally, I don't see any tables available in the Options "The specified Argument is equal to the specified expression. I only have the parameter Groupid. Does anyone have any ideas on how to access this. Thanks so much in advance. Sharon --- ## Post #2 by @Prakash_Bankar Hey, you have selected incorrect Business Object. You should have to select paymentEntry BO. Try on UPDATE method. good luck !! --- ## Post #3 by @spulsifer Thanks so much for the reply. We by-passed the BPM and handled this in a report. When I have time, I will test your suggestion, though. --- ## Post #4 by @rfleischmann Hello @spulsifer, I wanted to ask if you tried the BPM per @Prakash_Bankar's recommendation? I am trying to see how to run another BO method after the user print's the checks, but the BPMs I am seeing don't line up to the BO.PaymentEntry. Thank you! --- ## Post #5 by @cfinley To perhaps provide a better solution to her original question, you could use Service Security to stop a user from being able to call a specific method. Just be aware that this is stopping functionality, so be careful about who you restrict. ![image|690x256, 75%](upload://svOEnLOhwN1oMCioG4IJSHLzT2r.png) --- ## Post #6 by @spulsifer We worked around this another way and haven't restricted a method or used a BPM. --- **Canonical:** https://www.epiusers.help/t/bpm-to-stop-ap-process-payment-in-ap-payment-entry/35667 **Original content:** https://www.epiusers.help/t/bpm-to-stop-ap-process-payment-in-ap-payment-entry/35667