SAP Knowledge Base Article - Public

2365114 - How to Take Trace in SAP Cloud Applications Studio (SDK)

Symptom

If you are unsure if there is PDI code involved in an issue/dump that you are receiving on the UI, you can use the Tracing tool in the SDK to find out.

"Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental."

Environment

  • SAP Cloud for Customer
  • SAP Business ByDesign
  • SAP Cloud Applications Studio

Resolution

Please note, to use the Tracing tool in the SDK, you do not need to know the Solution name, and you do not need to open any Solution before you Start Tracing.

  1. Log in to the Front End System first (i.e C4C or ByD etc.).
  2. Make sure you have the SAP Cloud Applications Studio (SDK) downloaded. If you do not, please refer to this Case Document 1937930 - How to Download the Cloud Application Studio from Support Portal.
  3. Open the Cloud Application Studio SDK.
  4. Once it has loaded, select the Start Tracing icon.

  • If you cannot see this icon, you can also find it here:

  • Go to the frontend, and reproduce the issue.
  • When you are finished reproducing the issue, select the Stop Tracing icon.

  • If you cannot see this icon, you can also find it here:

  • Now select the Trace Explorer icon.

  • If you cannot see this icon, you can also find it here:

  • The Trace Explorer window will appear, and you can highlight the trace you took, and select Get Trace Details. (If you cannot see the trace you have taken, select the refresh icon).
  • If there is PDI involvement, you can see PDI solution name along with the path from SDK.
  • If there is no PDI involvement, you cannot see PDI solution name in trace details.

Once you get PDI solution name and path, you can put the breakpoints and debug further your code to understand the exact cause for the error/dump.

For more details about debugging and tracing please refer to PDI Help Document article '5.5.8 Trace Explorer' and '8.17 Debugging '.

See Also

You can also check the blog  Performance ABSL Trace – New functionality in 2005 Release which will help you to identify the exact time take to execute your custom script.

Keywords

SDK trace, Dump error, Frontend error, Debugging , KBA , dump , sdk trace , performace trace , AP-RC-BDS-SCR , ByDesign Studio Scripting (ABSL) , How To

Product

SAP Business ByDesign all versions ; SAP Cloud Applications Studio all versions ; SAP Cloud for Customer add-ins all versions ; SAP Cloud for Customer core applications all versions