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 custom solution name/ID, and you do not need to open any custom solution before you start tracing.

  1. Log in to the front end system first (i.e C4C or ByD).
  2. Make sure you have SAP Cloud Applications Studio (SDK) installed. If you do not, please refer to this KBA: 1937930 - How to download the SAP Cloud Applications Studio from the SAP Downloads Center 
  3. Open the Cloud Applications Studio.
  4. Once it has loaded, select the Start Tracing icon.

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

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

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

  1. Now select the Trace Explorer icon.

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

  1. 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).
  2. If there is PDI involvement, you can see PDI solution name along with the path from SDK.
  3. If there is no PDI involvement, nothing will appear in the 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 SAP Help portal links:

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