Skip to Content
Technical Articles
Author's profile photo Olga Dolinskaja

How to upload usage data from the SAP Solution Manager to the SAP Fiori App Custom Code Migration

If using the SAP Fiori App Custom Code Migration for custom code analysis for SAP S/4HANA you can also upload your usage data collected in the SAP Solution Manager (using UPL or SCMON).

Prerequisites

Your SAP Solution Manager system must be on the release 7.20 (SP8) and the following SAP Notes must be implemented:

2599695 – Custom Code Migration Fiori App: Remote Stubs for the Checked System

2190065 – ATC/CI: Remote Code Analysis – Object Provider Stub

Prerequisites for Custom Code Migration app on-premise

If you use your SAP Fiori ABAP Custom Code Migration on-premise, then on the central ATC check system where the SAP Fiori App Custom Code Migration is running, the RFC destination to the SAP Solution Manager system must be created in the transaction SM59. Additionally, an ATC object provider which is using the RFC destination to your SAP Solution Manager system must be defined in the transaction ATC under Administration->Setup->Object Providers (see also for more details the chapter “3. Maintain Object Providers” in the blog Remote Code Analysis in ATC – Technical Setup step by step).

Prerequisites for Custom Code Migration app in SAP BTP ABAP Environment

If you use your SAP Fiori ABAP Custom Code Migration in the SAP BTP ABAP Environment – formerly known as SAP Cloud Platform ABAP Environment – then the communication arrangement using the communication scenario SAP_COM_0464 (Custom Code Migration Integration) must be set up in your ABAP environment. This communication arrangement will be used as an RFC destination in the Custom Code Migration app to establish the connection to your on-premise SAP Solution Manager system (see also for details the chapter “Maintain Communication Arrangement” in SAP Help Documentation Enable Usage of the Custom Code Migration App). Additionally, the SAP Cloud Connector must be setup to enable the RFC communication from the SAP BTP ABAP Environment to the on-premise SAP Solution Manager system. See the SAP Help Documentation on Integrating On-Premise Systems. When setting up the on-premise connectivity make sure that the following remote function modules are exposed for RFC access in the SAP Cloud Connector:

  • AGS_CC_UPL_GET_AVAIL_SYSTEMS
  • AGS_CC_UPL_GET_LUSG_4_OBJECT

See also the SAP Help Documentation how to Configure Access Control (RFC).

Upload usage data

While creating a custom code migration project In the SAP Fiori App Custom Code Migration click the Add button on the Usage Data tab and press F4 Help in the Destination for Usage field. Enter the destination to your SAP Solution Manager system in the Connection field and choose by double-clicking the corresponding table row representing your destination.

Afterwards when you use the F4 Help in the Usage Description field, you will get the list of the usage data, collected from different systems by the SAP Solution Manager and can select there the appropriate usage data snapshot by double-clicking the corresponding table row:

As a result, the usage data will be added to your custom code migration project:

Assigned tags

      2 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Gabriel Trambaioli
      Gabriel Trambaioli

      Hello Olga,

      I already made this configuration however after report complet, all of usage data are with "unknow" value.

      Do you know how to check it?

       

      Regards

      Author's profile photo Michael Schneider
      Michael Schneider

      Hello Gabriel,

      The usage information "unknown" should only be shown if no usage data is loaded or for object types which do not support usage data (like database tables or data elements).

      If you add usage information to an existing object the column usage information is updated after the usage information has been loaded (seems to be done in your case) and the static references between your objects have been calculated (it should happen automatically after you added usage data and you should see this information also in the log of the Custom Code Migration app).

       Furthermore, you can navigate in you project to the scope of your project (navigate to the tab "Scope" and press the button "Change Scope"). There, you should see also a list of "Request Entry Points" if usage data was loaded successfully.

      If this was the case, I would expect usage information for at least programs, classes and function groups also in the analysis part of the app.

      I hope this information helps