WP09 ACT CustomCode Check
WP09 ACT CustomCode Check
March 2020
DBS10Steps2S4 – Custom Code checks – Activity document
1 Introduction ............................................................................................................................................. 3
2
DBS10Steps2S4 – Custom Code checks – Activity document
1 Introduction
The activities described in this document have been already executed in the systems you will use to
complete the activities.
The purpose of this document is to collect these activities for your reference with the scope of document
all the steps you will have to perform during a real conversion project.
In the following chapter you will find references to one S/4HANA system where the activities have been
executed:
3
DBS10Steps2S4 – Custom Code checks – Activity document
1. Check note 2241080 - Custom code check content for SAP S/4HANA
4. Upload the package to the server using copy and paste option.
3. In menu “Simplification Database” select the option “Import from ZIP file”
4
DBS10Steps2S4 – Custom Code checks – Activity document
4. Select the zip file you previously downloaded and copied to the remote desktop system
7. To check the import, go back to main screen of transaction SYCM and in menu
“Simplification Database” and select option “Show Overview”
8. In the overview screen you can select multiple items and press “Show items for selection”
to see the associated objects.
5
DBS10Steps2S4 – Custom Code checks – Activity document
6
DBS10Steps2S4 – Custom Code checks – Activity document
Review content.
7
DBS10Steps2S4 – Custom Code checks – Activity document
4. Apply the following SAP note: 2809550 - Custom Code Migration App - Correction bundle for
S/4HANA 1909
8
DBS10Steps2S4 – Custom Code checks – Activity document
https://blogs.sap.com/2016/12/13/remote-code-analysis-in-atc-technical-setup-step-by-step/
Now that the basic configurations are done we need to configure ATC run series for local ATC
checks.
9
DBS10Steps2S4 – Custom Code checks – Activity document
3. Specify a name for the new series that includes your System ID (e.g. S4HANA_1909_KXX) and
confirm.
4. In the new screen specify a description for the series, select the variant called
S4HANA_READINESS_1909, select the object provider you previously created and finally filter
the object with namespace Z*.
6. Back on the previous screen you can now see the run series you created.
10
DBS10Steps2S4 – Custom Code checks – Activity document
10. Press Immediate to start immediately the job in background and press button to save
11
DBS10Steps2S4 – Custom Code checks – Activity document
11. Go to transaction SM37 and monitor the new job until is finished
12
DBS10Steps2S4 – Custom Code checks – Activity document
12. Come back to the main screen of transaction ATC and double click on the item Monitor and
Control runs.
15. Check the status and when finished press the button Results to check the details
13
DBS10Steps2S4 – Custom Code checks – Activity document
https://blogs.sap.com/2016/12/13/remote-code-analysis-in-atc-technical-setup-step-by-step/
Now that the analysis has been executed successfully we can check the result from ABAP Test
Cockpit.
3. Select your run from the list and press the button
4. Now we have access to the result and you can check the different object in detail by double-
clicking in the entries. In the details you can also see the note number containing information
about the type of fix potentially required.
14
DBS10Steps2S4 – Custom Code checks – Activity document
5. If you click the button “Statistic View” you will get access to a summary of the resulted items
organized by the different category checks.
6. If you expand the different categories, you can see the single checks and double clicking on it
you have the list of objects containing the potential issue.
7. If you now click on the object name you will be redirected to the source system (K<XX>) where
you will be able to see the code directly with the relevant instructions highlighted.
15
DBS10Steps2S4 – Custom Code checks – Activity document
8. Now you can continue the analysis by selecting the different objects listed and verifying what is
the impact and the required fix.
16
DBS10Steps2S4 – Custom Code checks – Activity document
In addition, this app supports you with identifying unused custom code based on your collected usage
data. This enables you to remove unused custom code during a system conversion to SAP S/4HANA.
Please refer to the following blog for more information about the Custom Code Migration app.
https://blogs.sap.com/2019/02/27/custom-code-analysis-for-sap-s4hana-with-sap-fiori-app-custom-code-
migration/
Pre-requisite:
Central ATC needs to be done on a SAP S/4HANA 1909 System (Remote Code Analysis in ATC
– Technical Setup step by step)
Configure the SAP Fiori App Custom Code Migration on this SAP S/4HANA 1809 system
• specific implementation and configuration information on SAP Fiori App Custom Code
Migration
• 2436688 - Recommended SAP Notes for using S/4HANA custom code checks in ATC or
Custom Code Migration app
3. Click on SAP Fiori Tile Catalog to add Business Catalog to PFCG role.
17
DBS10Steps2S4 – Custom Code checks – Activity document
18
DBS10Steps2S4 – Custom Code checks – Activity document
6. Assign the following roles to your test user: Z_CUSTOM_CODE_APP and SAP_BC_YCM_APS
• SYCM_APS_C_ATC_FIND_ALP_CDS
• SYCM_APS_C_PROJECT_CDS
• SYCM_APS_C_SCP_BY_EP_CDS
• SYCM_APS_C_SCP_BY_PK_CDS
• ESH_SEARCH_SRV
19
DBS10Steps2S4 – Custom Code checks – Activity document
Click on Save.
c. Define OData Services for Activation.
20
DBS10Steps2S4 – Custom Code checks – Activity document
Click on Save.
Click on Save.
21
DBS10Steps2S4 – Custom Code checks – Activity document
g. Activate OData Services for with task list using transaction STC01:
SAP_BASIS_ACTIVATE_ICF_NODES
• /sap/bc/ui5_ui5/sap/nw_aps_ccl_lib
• /sap/bc/ui5_ui5/sap/nw_aps_ccm_anaf/
• /sap/bc/ui5_ui5/sap/nw_aps_ccm_prj/
• /sap/bc/ui5_ui5/sap/nw_aps_ccm_scpp/
• /sap/bc/ui5_ui5/sap/nw_aps_ccm_scpu/
• /sap/bc/ui5_ui5/sap/nw_aps_ext_lib
• /sap/bc/ui5_ui5/sap/nw_aps_lib
22
DBS10Steps2S4 – Custom Code checks – Activity document
/sap/bc/ui5_ui5/sap/nw_aps_ccl_lib
/sap/bc/ui5_ui5/sap/nw_aps_ccm_anaf/
/sap/bc/ui5_ui5/sap/nw_aps_ccm_prj/
/sap/bc/ui5_ui5/sap/nw_aps_ccm_scpp/
/sap/bc/ui5_ui5/sap/nw_aps_ccm_scpu/
/sap/bc/ui5_ui5/sap/nw_aps_ext_lib
/sap/bc/ui5_ui5/sap/nw_aps_lib
Click on Save.
To perform SAP S/4HANA custom code checks in the checked system, create an RFC
destination from the central check system of the app to the checked system:
23
DBS10Steps2S4 – Custom Code checks – Activity document
• In the central check system, run transaction SM59 and create an RFC destination
(connection type 3) under the tree ABAP Connections to the checked system.
To define a connection to the checked system, create a new object provider that uses the system
group and the RFC destination.
o In the Dialog Structure, open the System Group folder and create one or more
new system groups.
24
DBS10Steps2S4 – Custom Code checks – Activity document
Click on Save.
o In the Dialog Structure, open the RFC Object Providers folder and create one
or more new RFC object providers using the previously created RFC destination.
Click on Save.
25
DBS10Steps2S4 – Custom Code checks – Activity document
26
DBS10Steps2S4 – Custom Code checks – Activity document
13. In the top right corner press “Run Analysis Again” to start the analysis run
14. Wait until the run is finished, you can follow the progress form the analysis progress bar
27
DBS10Steps2S4 – Custom Code checks – Activity document
15. Once the analysis is completed click on the tab “Analysis” to find the overview
16. If you click the button “Analyze Findings” you will be redirected to the detail analysis app where
you can filter by the type of finding and see the list of impacted objects in the bottom
17. From this screen you can analyze the details of all objects by applying the graphical filters
showed on the top
28
DBS10Steps2S4 – Custom Code checks – Activity document
29
DBS10Steps2S4 – Custom Code checks – Activity document
30
DBS10Steps2S4 – Custom Code checks – Activity document
31
DBS10Steps2S4 – Custom Code checks – Activity document
32
DBS10Steps2S4 – Custom Code checks – Activity document
10. Highlight Results of Local Check Runs >> Right Click >>
33
DBS10Steps2S4 – Custom Code checks – Activity document
11. ATC Problem tab should be the screen you will be seeing after when the recheck is complete. Right
click on the line that has Quick Fix available.
12. Select the fix “Replace SELECT from table KONV by API Call’ the click Finish.
34
DBS10Steps2S4 – Custom Code checks – Activity document
13. Activate the new version of program with the quick fix. Click on the Activate icon.
35