Skip to Content

Offline Approval (IF_INBOUND_EXIT_BCS)

Hi,

I am in ECC, using Interface (IF_INBOUND_EXIT_BCS) which am using for my Offline Approval. Where user clicks Approve or Reject from Outlook to Release or Reject a PO.

All settings for Inbound is done, mails coming in SOIN, user given proper authorization, class/exit where I use this interface is maintained in SO50.

Now If user Approve / Reject from Outlook for a PO, and if PO is NOT in edit mode, it works perfect.

If user Approve / Reject from Outlook for PO, and if PO is in edit mode, the WF goes in error. So I put a piece of code in the class (which is maintained in SO50) where I check if PO is locked, if yes then send a message to Approver, if not process the PO using SAP_WAPI_DECISION_COMPLETE.

Say you have an entry in SOIN <a123>

If PO not in edit mode, 'success' message sent.

If PO is in edit mode, it still sends 'success' message, which is not the piece of code it should have entered.

Now strange thing is if I debug it from SOIN for the same <a123> from SOIN, it sends the lock message.

Any idea why it behaves strange or is it that am missing something in code.

Code is simple, checks if PO locked, if yes am sending normal message thru standard call methods.

Thanks,

Aditya V

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Aug 22, 2017 at 08:22 PM

    do an abap trace or add a log to understand why it behaves abnormally when you don't debug.

    if the code is simple, you'd better tell us how you test the lock, etc.

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 22, 2017 at 09:05 PM

    As I also wrote in this question, I think most implementations of email approvals are bad solutions:

    Unless you use digital signing, email is very very easy to forge, and I doubt any auditors would endorse automated plaintext mail approvals.

    As to 'offline', in this decade people doing approvals are connected most of the time unless in airplanes or underground, so why not use a more modern solution like Extended Notifications (approval via authenticated link in email), or web-based solutions such as Fiori Inbox or POWL? Much nicer for the user, more secure, easier to implement.

    Add comment
    10|10000 characters needed characters exceeded