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).
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:
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:
I already made this configuration however after report complet, all of usage data are with "unknow" value.
Do you know how to check it?
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
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!
it looks like your usage data upload is hanging. Please open a ticket to SAP to get this investigated.
Thanks and Regards,
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.
yes, if you collected usage data in Solution Manager with UPL, then this blog fits exactly your scenario.
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
No usage API found in the target system.
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).
we have Set Up the CCM Fiori App on our Central ATC S/4 System .
We have SCMON Data collected since 3 Years but without Solution Manager but SUSG.
So it is not possible to use such Data but only if collected within the SolMan ?
if you collected usage data with SCMON and aggregated with SUSG, you can upload this data to the Custom Code Migration app. SCMON and SUSG is also the recommended tools for collecting usage data. See also the chapter "Add usage data to your Custom Code Migration Project" in the blog https://blogs.sap.com/2019/02/27/custom-code-analysis-for-sap-s4hana-with-sap-fiori-app-custom-code-migration/.