Supply Chain Management Blogs by SAP
Expand your SAP SCM knowledge and stay informed about supply chain management technology and solutions with blog posts by SAP. Follow and stay connected.
cancel
Showing results for 
Search instead for 
Did you mean: 
gheorghe_ceres
Advisor
Advisor
Back in July of 2022 we published an article highlighting some of the support and guidance tools that can be used during an implementation project to identify inconsistencies and errors before full deployment, or to troubleshoot an issue when identified in a productive system. One such tool that we briefly touched upon was the ABAP Test Cockpit (ATC).

There are times when customer implementations require not just standard SAP coding, but also custom ABAP coding tailored to specific customer requirements. The ATC is a central quality assurance toolset through which users can create static functional, performance and security code checks as well as ABAP Unit tests for ABAP programs. To make sure migrations go smoothly and provide comparable check results throughout the company, the ATC is compatible with SAP’s Code Inspector, SAP’s tool for the static analysis of ABAP programs and other SAP repository objects. This means that custom Code Inspector checks and variants can be reused in the ABAP Test Cockpit.


Prior to the SAP S/4HANA 2022 release, there were no SAP EWM specific checks available in the toolset. However, with the new release, SAP has delivered 6 EWM checks. Currently the ATC checks are available only on embedded and decentral On Premise SAP S/4HANA 2022 systems, but SAP plans to offer downports in upcoming months.


Demo of Delivery Query ATC results


The currently available ATC checks for SAP EWM are:

  1. Check Delivery Query (/SCWM/CL_ATC_DELIVERY_QUERY)


If performance slowdowns happen because of an inefficient call of delivery cue method when a custom code is executed, then users can try out the check class /SCWM/CL_ATC_DELIVERY_QUERY. This check class can be used to improve performance when the custom code calls delivery query method /SCWM/CL_DLV_MANAGEMENT_PRD=>QUERY with specific parameters.

  1. Check Function Call with Update Module Flag (/SCWM/CL_ATC_FUNCTION_CALL)


SAP recommends not to use the custom code to call Function Module which is configured as “Update Module”. A new check class is provided to check when the custom code calls a function module that is an update module.

  1. Check Application Context in PPF Action Schedule Condition (/SCWM/CL_ATC_PPF_SCHEDCOND)


The Post Processing Framework (PPF) action is running independently from the application context. In some cases, this may lead to a double assignment when a PPF action is called from another context, which in turn leads to performance issues. SAP provides a new check class to examine the application context in the schedule condition method of the PPF action to avoid this performance issue.

  1. Check /SCWM/TO_POST or /SCWM/TO_CONFIRM Call in a Loop (/SCWM/CL_ATC_TO_CO_PO)


There may be instances when in a custom code, the Function Modules /SCWM/TO_CONFIRM and /SCWM/TO_POST are called within a loop. This in turn results in performance issues. This new check class that SAP provides will verify whether the function module /SCWM/TO_CONFIRM or /SCWM/TO_POST is being called inside a loop statement.

  1. Check for Wait Satement (/SCWM/CL_ATC_WAIT)


In case that performance suffers when executing a custom code, which is caused by the Wait Sleep Statement being called, SAP provides a new check class /SCWM/CL_ATC_WAIT to avoid calling wait statements and subsequent performance issues.

  1. Check for Method INIT_BY_WORKSTATION (/SCWM/CL_ATC_WM_PACKING)


The method /SCWM/CL_WM_PACKING=>INIT_BY_WORKSTATION is recommended to use in custom code with parameter IV_NO_HU_BY_WC set to “X”. Otherwise, all handling units (HUs) from the work centre are read, leading to a long runtime, especially in the RF transactions. SAP provides a new check Class /SCWM/CL_ATC_WM_PACKING to check custom code to avoid this performance issue.

FIND OUT MORE!

For guidance on how to write an ATC check please refer to the blog article “Remote Code Analysis in ATC – How to write an ATC check” which acts as a central repository for all manner of ATC related guidelines and setups.

In case you have questions or are curious to find out more on how to create checks for the Code Inspector, you can read about it the guide “How to Build a New Check for the Code Inspector”.

For more details about the involved roles (developers, quality experts, admins) please take a look at the corresponding Getting Started guides:

For more information about SAP Extended Warehouse Management, please follow us on social media, our YouTube channel or our community pages:

SAP EWM Community:

https://www.sap.com/community/topics/extended-warehouse-management.html

SAP Digital Supply Chain Channel:

https://www.youtube.com/channel/UCELmE2CEAkcwqpBLnuZHufA

EWM LinkedIn Community:

https://www.linkedin.com/groups/1952257/

Release information and restrictions of embedded EWM on SAP S/4HANA 2022:
Release note for EWM in S/4HANA 2022

Release information and restrictions of Decentralized EWM on SAP S/4HANA 2022:

Release note for Decentralized EWM in S/4HANA 2022

For a complete list of Q&A from the EWM community, please access this link:
https://answers.sap.com/tags/01200615320800000705

In case you do not find your specific question there, feel free to post your question via the following form:
https://answers.sap.com/questions/ask.html?primaryTagId=01200615320800000705
3 Comments