When integrating external HTML content into a Fiori Launchpad (FLP) application, developers often face Content Security Policy (CSP) restrictions, blocked inline scripts, and the lack of direct support for SAPEVENT form actions. In our case, the API returned a full HTML page with embedded JavaScript and AJAX calls, which worked perfectly standalone but failed inside FLP due to security restrictions.
To solve this, we wrapped the HTML inside a BSP application and consumed it via an iframe in SAPUI5. Instead of relying on inline execution or custom URI schemes, we accessed the iframe’s DOM after load and attached an event listener directly to the form element. This allowed us to intercept the POST action, process the payload, and securely hand over data to the SAP backend.
This approach provides a clean and CSP-compliant integration pattern for scenarios where external or dynamically generated HTML must coexist inside SAP Fiori apps.