Technical Articles
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:
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
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
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
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.
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.
Hi Sven,
yes, if you collected usage data in Solution Manager with UPL, then this blog fits exactly your scenario.
Kind Regards,
Olga
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.
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.
Hi Olga,,
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 ?
Best regards
Mario
Hi Mario,
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/.
Kind Regards,
Olga.
Hello Olga,
Thank you for this blog.
i have collected usage data with SCMON and then aggregated it with SUSG (from SYS-1 for example on-premise).
then i have uploaded this data to the Custom Code Migration Fiori app (in SYS-2 also on-premise).
now everything look fine, however after report is completed, it provides me only with analyse about objects from SYS-2, and nothing from the data which i got from SYS-1 using SUSG, not even a name of an object from SYS-1.
Thank you in advance for Your inputs
Regards,
Alex
Hi Alex,
please check against which system your custom code analysis was executed: it looks like you analysed the SYS2.
Kind Regards,
Olga.
Hello Olga,
thanks for your quick response.
well, in the field Destination i have chosen SYS2 and then i selected the aggregated data From SYS1 which i had already uploaded in SYS2, why it should analys SYS2 though?
Kind Regards,
Alex.
Hi Alex,
what do you mean with the "Destination field" ? If you create a project in the Custom Code Migration app, you should choose the SYS1 in the area "System to Be Analyzed" and in the Usage Data area "Destination for usage" must be also SYS1, since you want to upload usage data from SYS1.
Kind Regards,
Olga.