0% found this document useful (0 votes)
215 views35 pages

WP09 ACT CustomCode Check

This document outlines steps to analyze custom code in a system being converted to SAP S/4HANA using various tools, including: 1. Running S/4HANA checks in the ABAP Test Cockpit to identify any issues, view results and object details. 2. Optionally using the Custom Code Migration app to further evaluate objects needing migration and identify unused custom code. 3. Referencing notes and blogs to help understand custom code analysis and the different tools available during an S/4HANA conversion project.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
215 views35 pages

WP09 ACT CustomCode Check

This document outlines steps to analyze custom code in a system being converted to SAP S/4HANA using various tools, including: 1. Running S/4HANA checks in the ABAP Test Cockpit to identify any issues, view results and object details. 2. Optionally using the Custom Code Migration app to further evaluate objects needing migration and identify unused custom code. 3. Referencing notes and blogs to help understand custom code analysis and the different tools available during an S/4HANA conversion project.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 35

10Steps2S4

{Custom Code Checks}


Activity Document

Installed Base Conversion

March 2020
DBS10Steps2S4 – Custom Code checks – Activity document

1 Introduction ............................................................................................................................................. 3

2 S/4HANA checks using ABAP Test Cockpit .......................................................................................... 4

3 S/4HANA checks using ABAP Test Cockpit .......................................................................................... 9

4 S/4HANA checks using Custom Code Migration app (optional) .......................................................... 17

5 S/4HANA checks using quick fixes (optional) ...................................................................................... 30

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:

1. The source system (SID: K01)


This is the system which has to be converted to S/4HANA for this exercise. You will use this
system to perform the custom code analysis using ABAP Test Cockpit.

3
DBS10Steps2S4 – Custom Code checks – Activity document

2 S/4HANA checks using ABAP Test Cockpit


2.1 Download simplification database
Download the content of the Simplification Database as a ZIP file. This file then has to be uploaded to
your evaluation system. To find the most recent content of the Simplification Database provided for SAP
S/4HANA, see also SAP Note 2241080 .

1. Check note 2241080 - Custom code check content for SAP S/4HANA

2. Go to the following URL: https://launchpad.support.sap.com/#/softwarecenter/search/CCMSIDB

3. Download the latest version of the package available.

4. Upload the package to the server using copy and paste option.

2.2 Upload simplification database


The Simplification Database content is imported into the S/4HANA System. This information is required
for the SAP S/4HANA readiness checks in the Code Inspector.

1. Execute the following steps in the Custom Code analysis system.

2. Execute transaction SYCM

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

5. Confirm and accept the access to the file

6. Wait the program to complete

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

2.3 Import Check Variants


Following the steps listed in the below list the steps to import the check variants into the ABAP Test
Cockpit (ATC).

1. Launch transaction SCI

2. Select menu Utilities -> Import Check Variants.

6
DBS10Steps2S4 – Custom Code checks – Activity document

3. Verify Simplification Database Content is loaded into system.


Execute transaction SYCM -> Simplification Database
Click on “Show Content”

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

Use transaction SNOTE to implement the code corrections.

8
DBS10Steps2S4 – Custom Code checks – Activity document

3 S/4HANA checks using ABAP Test Cockpit


3.1 Run S/4HANA checks in ATC
The basic configurations are explained in this blog:

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.

1. In ATC (Transaction Code = /nATC), select the item Schedule Runs.

2. Press button Create

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*.

5. Press save to confirm.

6. Back on the previous screen you can now see the run series you created.

7. Select this series and press Schedules to create a new schedule.

10
DBS10Steps2S4 – Custom Code checks – Activity document

8. Select checkbox “Set to Active Results” and press Execute in background

9. Confirm the printing option in the next screen and confirm

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.

13. Enter “Started By” filter (i.e. 10STEPS2S4), click on Execute

14. Specify the name of the run series and confirm

15. Check the status and when finished press the button Results to check the details

13
DBS10Steps2S4 – Custom Code checks – Activity document

3.2 Check the result


The basic configurations are explained in this blog:

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.

1. Call transaction ATC

2. Select “Monitor and Control runs”

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

4 S/4HANA checks using Custom Code Migration app


(optional)
The Custom Code Migration app enables you to analyze custom code that needs to be migrated from an
SAP Business Suite system to SAP S/4HANA (on premise). To evaluate the development objects to be
adopted, it performs the S/4HANA custom code checks.

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

1. Use the link to assign catalog and roles to the user -


https://help.sap.com/viewer/9a281eac983f4f688d0deedc96b3c61c/201909.000/en-
US/34f67edd5f3e4c1eb00ad1943f551fb8.html

2. In transaction PFCG, create custom role called “Z_CUSTOM_CODE_APP”.

3. Click on SAP Fiori Tile Catalog to add Business Catalog to PFCG role.

17
DBS10Steps2S4 – Custom Code checks – Activity document

4. Assigned catalog ID = SAP_BASIS_TCR_T

Click on No. You can ignore the error and continue.

5. Maintain Authorization objects and save and activate PFCG role.

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

7. Use the Fiori apps library to activate the Fiori Apps -


https://fioriappslibrary.hana.ondemand.com/sap/fix/externalViewer/#/detail/Apps('F3191')/S15OP
a. Activate OData Services for with task list using transaction STC01:
SAP_GATEWAY_ACTIVATE_ODATA_SERV

• 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

b. Set transport options for to be activated OData Services

Enter Package Name = ZFIORI

19
DBS10Steps2S4 – Custom Code checks – Activity document

Click on Save.
c. Define OData Services for Activation.

Enter the following values:


SYCM_APS_C_ATC_FIND_ALP_CDS 1
SYCM_APS_C_PROJECT_CDS 1
SYCM_APS_C_SCP_BY_EP_CDS 1
SYCM_APS_C_SCP_BY_PK_CDS 1
ESH_SEARCH_SRV 1

20
DBS10Steps2S4 – Custom Code checks – Activity document

d. Select Processing Mode / System Alias for Activation

Enter Local Alias

Click on Save.

e. Select OData Services for Activation

Click on Save.

21
DBS10Steps2S4 – Custom Code checks – Activity document

f. Click on “Start / Resume Task List Run in Dialog (F8)”

Verify job completed successfully.

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

h. Activate HTTP Services (SICF)

22
DBS10Steps2S4 – Custom Code checks – Activity document

i. Add the following SICF Services:

/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.

j. Click on “Start / Resume Task List Run in Dialog (F8)”

Verify job completed successfully.

8. Central Check System: Establish RFC Connection to the Checked System

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.

• Create a system group:


o Run transaction ATC and double-click the Object Providers item in the central
check system.

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.

• Create an object provider:


o Run transaction ATC and double-click the Object Providers item in the central
check system.

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.

9. Launch Fiori Launchpad and add app to My Home group.

Select “App Finder”

25
DBS10Steps2S4 – Custom Code checks – Activity document

Add “Custom Code Migration” app to your “My Home”

The following message will appear.

26
DBS10Steps2S4 – Custom Code checks – Activity document

Go back to your Fiori Home screen.

10. Open the application “Custom Code Migration”

11. Press the button “+” to add a new analysis

12. Now provide the following details


a. A project description (for example “Custom Code Migration KXX” where XX is your ID)
b. Target Release as “SAP S/4HANA 1909”
c. RFC Destination: the destination you previously created.

Save the new analysis

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

You can now continue to analyze the details of your analysis.

29
DBS10Steps2S4 – Custom Code checks – Activity document

5 S/4HANA checks using quick fixes (optional)


1. Open SAP HANA Studio. A shortcut should be available on the desktop.
2. Go Windows >> Perspective >> Open Perspective >> Other

3. Select ABAP then click Open

4. Create a new ABAP Project

5. Logon to your KXX system.

30
DBS10Steps2S4 – Custom Code checks – Activity document

31
DBS10Steps2S4 – Custom Code checks – Activity document

6. Goto Winidow >> Show View >> Other

7. Select ‘ATC Result Browser” then click Open

32
DBS10Steps2S4 – Custom Code checks – Activity document

8. Click on ‘Results of Local Check Runs…’

9. Highlight ‘Old Result (User*) >> Group By >> Check

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.

14. Highlight the program and conduct a Recheck.

15. The error should now be gone.

35

You might also like