cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Test Guidelines when extending solution using CLT

Accepted Solutions (1)

Accepted Solutions (1)

Chris1973
Active Contributor

Good day @Vidhi_RamanChandra 

Thank you for your question.

Yes, there is guidance on how to test extensions that is built with Custom Logic. However, I would separate this into two points:

  1. Custom Logic Tracing is not the extension itself. It is mainly a troubleshooting and validation tool used to trace whether a BAdI implementation or custom logic is called, in which sequence it is called, and what parameter values are passed.
  2. Testing should still be done as business process testing, not only technical tracing. For end to end validation, the Test Automation Tool and the Test Your Process app to create, run, and evaluate automated business process tests.

So, I recommend you:

  • Use Custom Logic to implement the BAdI or business object logic.
  • Use Custom Logic Tracing to technically confirm that the logic is triggered and the right parameters are passed.
  • Use manual business process testing or Test Your Process to confirm that the final business outcome is correct.
  • Make sure you retest the extension after upgrades, transports, or changes to the BAdI interface.

What this means in simple terms, is:

  • Custom Logic Tracing tells you whether the custom logic was called and with which values.
  • It does not replace functional, regression, integration, or UAT testing.
  • The real test should be based on the full business process where the extension is used.
  • If the extension affects posting, pricing, output, workflow, approval, or master data, the complete process should be tested from input to final document.

Here are references for more guiding details.

2699678 - How To Troubleshoot Custom Business Objects Logic - SAP for Me

3354518 - Custom Logic Tracing app: "Either this method does not have any parameters or an error occ...

3618748 - BAdI APOC_ADD_EMAIL_RECIPIENTS does not have any importing parameters - SAP for Me

3648982 - Error message "Implementation must be republished" after upgrade in SAP S/4HANA Cloud BAdi...

 

Let me know if you have further questions.

Best regards

Chris

0 Likes
Thank you for the details Chris! this is helpful

Answers (0)