Let me provide a comprehensive solution addressing all three key areas:
1. Fiori Workflow Event Mapping (Mobile-Specific)
The core issue is that mobile apps require explicit event handler registration. In your Component.js, add mobile workflow event listeners:
this.getEventBus().subscribe("workflow", "approvalComplete", this._onMobileApproval, this);
this._workflowChannel = sap.ui.getCore().getEventBus().getChannel("workflow.mobile");
Unlike desktop Fiori apps that inherit default workflow channels, mobile apps need explicit channel subscription. The event bus subscription must include the mobile-specific channel identifier.
2. Mobile Push Notification Setup
Your manifest.json needs proper notification service configuration. Add this to the “sap.mobile” section:
"notifications": {
"enabled": true,
"workflowEvents": ["approval", "rejection", "completion"]
}
Without this configuration, workflow completion events aren’t pushed to the mobile app, causing the silent failure you’re experiencing. The workflow processes successfully on the backend but the mobile UI never receives confirmation.
3. Workflow Runtime Authorizations
This is critical and often overlooked. Mobile workflow execution requires specific authorization objects:
- Run PFCG transaction and check authorization object S_WORKFLOW
- Ensure Activity field includes value ‘16’ (Execute from mobile device)
- Verify authorization object S_SERVICE includes service ‘/sap/opu/odata/sap/WORKFLOW_MOBILE_SRV/’
- Add authorization object S_RFC with function group ‘SWPR’ for mobile workflow processing
The authorization context for mobile apps differs from desktop because mobile requests go through different service endpoints. Desktop Fiori uses standard workflow services, while mobile apps route through mobile-specific OData services that require additional authorizations.
Testing After Implementation:
- Clear the mobile app cache completely
- Test approval with browser developer tools open to monitor event firing
- Check backend workflow log (transaction SWI1) to verify approval is actually processed
- Verify push notification arrives on mobile device within 5 seconds of approval action
The combination of proper event mapping, notification configuration, and complete authorization setup should resolve your stuck workflow issue. The silent failure pattern you described matches exactly what happens when any one of these three components is misconfigured - the workflow appears to accept the action but never completes the mobile-side processing loop.
This draft is based on general SAP PLM knowledge. It has not been verified against your specific version and environment. Practitioners: verify the steps and share your experience below.