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

      8 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

      Author's profile photo ABHISHEK WAJGE
      ABHISHEK WAJGE

      Hello Olga Dolinskaja ,

       

      Hope you are doing well!

       

      Firstly, Thank you for the blogs on custom code migration, They are very helpful.

       

      I am reaching out to you as we are trying to add solution manager usage in our S4HANA 2020 on premise fiori application. After setting up everything as per the blog, We see no errors in connecting the solution manager system but in our case fiori application has started the usage calculation and there is no response even after 8-10 hours. Do you know how much time it takea because we are not sure how long we need to wait in this case.

       

      It is still on the same step Usage Calculation even after 10 hours.

       

      Your inputs would be greatly appreciated. Thank you!

       

       

       

      Regards,

      Abhishek Wajge

      Author's profile photo Olga Dolinskaja
      Olga Dolinskaja
      Blog Post Author

      Hi Abhishek,

      it looks like your usage data upload is hanging. Please open a ticket to SAP to get this investigated.

      Thanks and Regards,

      Olga.

      Author's profile photo Sven Hertrich
      Sven Hertrich

      Hi Olga Dolinskaja

      I am not sure if this how-to is applicable to my scenario.

      Our usage data from ECC system has been transferred to Solution Manager CCLM.

      With this guide i can bring this usage information to the Custom Code Migration App ?

       

      Thank you in advance.

      Author's profile photo Olga Dolinskaja
      Olga Dolinskaja
      Blog Post Author

      Hi Sven,

      yes, if you collected usage data in Solution Manager with UPL, then this blog fits exactly your scenario.

      Kind Regards,

      Olga

       

      Author's profile photo Sven Hertrich
      Sven Hertrich

      Hi Olga, thanks a lot for your reply.

      Our data is stored into Solution Manger BW -> (0SM_* Cubes.

      Will that work also?

      When i try to connect Solution Manager it tells me

      Neither Solution Manager nor SUSG are available in the target system

      Diagnosis

      No usage API found in the target system.

      Author's profile photo Olga Dolinskaja
      Olga Dolinskaja
      Blog Post Author

      Hi Sven,

      yes, it should work. Please make sure, that all prerequisites of this blog are fulfilled (both on the Solution Manager system and on the system where the Custom Code Migration app runs or on the SAP BTP ABAP environment, if you run it from BTP).

      Kind Regards,

      Olga.