SAP Debugging

To debug the integration between ClearWork, ClearProcess, and SAP, follow these steps.

Step 1

In the SAP transaction launcher, type SE37 and hit Enter.

DEBUG 1

Step 2

Enter the name of the SAP API you would like to debug and click Display.

DEBUG 2

Step 3

Click on the Source Code tab and scroll all the way to the bottom. Place your cursor on the END FUNCTION line.

DEBUG 3

Step 4

From the menu bar at the top of the screen, click on the external breakpoint button.

DEBUG 4

Step 5

The END FUNCTION line should now be highlighted in orange.

DEBUG 5

Step 6

In ClearWork, go to the page that calls the API you wish to debug, then open your browser’s developer tools.

DEBUG 6

Step 7

Click on the Network tab in the developer tools window.

DEBUG 7

Step 8

From your page, trigger the action that will call the SAP API.

DEBUG 8

Step 9

The SAP debugger will display at the breakpoint you set.

DEBUG 9

Step 10

Scroll to the top of the code and double-click on the API parameters being used by ClearProcess.

DEBUG 10

Step 11

The variables tab will display. Double-click on the variable to see the data passed in from ClearProcess.

DEBUG 11

Step 12

The data passed from ClearProcess will display. Press F8 to exit the debugger and delete the breakpoint.

DEBUG 12

Step 13

From your page, again trigger the action that will call the SAP API.

DEBUG 13

Step 14

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.

DEBUG 14

Step 15

Click on the Preview tab. Drill into the response to see the data passed back from ClearProcess to ClearWork.

DEBUG 15