← All selected projects

SAP Workflow · Fiori My Inbox · SD

Direct My Inbox approval navigation with reliable workflow control

A custom approval experience that takes approvers directly from email to the exact Fiori My Inbox work item, presents clearer task content and prevents processed requests from re-entering approval.

Context
Credit/Debit Memo Request approval
Role
SAP Developer · Workflow solution owner
Period
Current AMS engagement
  • SAP Business Workflow
  • Fiori My Inbox
  • BOR Events
  • CL_BCS
  • BAPI
  • OData TaskProcessing

The challenge

What the solution needed to change.

Generic workflow notifications did not take an approver to the exact approval entry. The target URL depended on the approval work-item ID, which only becomes available after the task is created.

Approval and rejection updates also raised standard document-change events. Without controlled event filtering, those workflow-driven changes could start a fresh approval instance for a request that had already been processed.

Technical approach

Architecture shaped around maintainable control points.

The approval task uses a task exit after work-item creation to read the current work-item context, assemble a task-specific My Inbox link from configurable environment values and place the result into the notification flow.

Workflow responsibility is separated across task/container design, approver determination, document update logic, notification handling and event-start validation. Environment-specific launchpad values remain outside the code.

01Document event

An approval-relevant request raises a controlled workflow event.

02Approval task

The decision work item is created and its runtime ID becomes available.

03Direct link

A task exit builds the exact My Inbox route and external email content.

04Decision

The approver reviews structured task content and approves or rejects.

05Safe update

BAPI-based changes are applied and event filtering suppresses duplicate restarts.

My ownership

Contribution and accountability

  • Designed and implemented the workflow, task containers and approval/rejection update path.
  • Built task-specific My Inbox URL generation from workflow runtime context.
  • Implemented external email notification with safe handling for long approval links.
  • Designed event-state checks that prevent workflow self-triggering after processing.
  • Improved task readability through structured HTML content and configurable system values.

Outcome

What improved

  • Approvers can open the exact approval item instead of searching a generic inbox.
  • Processed requests no longer reappear because of workflow-driven change events.
  • Task context is clearer through structured My Inbox content.
  • Environment-specific URLs and origins can be maintained without code changes.