To debug the integration between ClearWork, ClearProcess, and SAP, follow these steps.
In the SAP transaction launcher, type SE37 and hit Enter.
Enter the name of the SAP API you would like to debug and click Display.
Click on the Source Code tab and scroll all the way to the bottom. Place your cursor on the END FUNCTION line.
From the menu bar at the top of the screen, click on the external breakpoint button.
The END FUNCTION line should now be highlighted in orange.
In ClearWork, go to the page that calls the API you wish to debug, then open your browser’s developer tools.
Click on the Network tab in the developer tools window.
From your page, trigger the action that will call the SAP API.
The SAP debugger will display at the breakpoint you set.
Scroll to the top of the code and double-click on the API parameters being used by ClearProcess.
The variables tab will display. Double-click on the variable to see the data passed in from ClearProcess.
The data passed from ClearProcess will display. Press F8 to exit the debugger and delete the breakpoint.
From your page, again trigger the action that will call the SAP API.
Back in your browser’s developer tools, click on the last rpc/ entry and click on Headers. Drill into the Request Payload to see the data that was passed from ClearWork to ClearProcess.
Click on the Preview tab. Drill into the response to see the data passed back from ClearProcess to ClearWork.