Hello @Syed Umair Hasan
Welcome to Microsoft Q&A.
I found some information, and maybe this can help you.
But basically, yes, you can trigger logic apps hosted on private endpoints in SAP systems, its not simple task.
u need first off all, set up a private endpoint for your logic app (set up a private endpoint for your logic app in Azure) and this lets you safely expose your logic apps in your virtual network and make them accessible only from within your network
after, u need connect SAP to private endpoint, make a establish a connection between your SAP system and your logic app's private endpoint...this typically includes configuring network settings, firewall rules, and VPN or ExpressRoute connections to allow SAP to communicate with private endpoints.
and this two steps:
- SAP logic apps: After the connection is established, you can use the appropriate integration method to trigger SAP logic apps. Depending on the capabilities and configuration of your SAP system, you can choose from different options such as RFC (Remote Function Call), IDoc (Intermediate Document), BAPI (Business Application Programming Interface) and Web Service Integration. You must configure your SAP system to call your logic app endpoint when the desired event or action occurs in SAP.
- Handle triggered events in logic apps: In logic apps, you can define the steps and actions required to handle SAP triggered events. This can include data transformation, validation, integration with other systems, or any other necessary business logic.
I hope this help you.
Regards.