Hi Guys,
I want to develop some additional features for the ISU component of the Asset Manager in Visual Studio Code with the Mobile Development Kit (MDK). Since the standard version of the Asset Manager uses CIM-files to integrate the ISU component, I wanted to ask about the best way to "merge" these projects locally to develop in Visual Studio Code with the MDK.
I already created a running project with the MDK Client SDK, but still I need to prepare the metadata with the ISU component in combination with the standard Asset Manager.
Do you have any idea, what is the best practice for that?
Thank you in advance,
Sher-Chan
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
Hi Bill,
One important note: I used a Windows operation system when I faced the issue I described below. After I set up a Mac OS and using the tutorial https://blogs.sap.com/2019/07/19/debug-sap-asset-manager-with-crew-component-using-vs-code/, I was able to make this scenario work with the ISU component and the standard Asset Manager. It would be very helpful, if you could have a look at that issue for Windows.
In the example of the link I provided above, I recognized, that while executing the command "create-client.cmd" on Windows, the script was looking for the Meter component in a higher directory path (not in the metadata folder, but in the same hierarchy as the SAM.mdkproject) than it was described in the tutorial and therefore did not create the application. Could this be one issue?
___________________________
I followed all of your steps to process the CIM file references and below, you can see the general folder structure.

If I run the build task for the base project, which is sam.definitions (SAPAssetManager), I get the same output you showed on step 7.

However, if I want to debug the application with the component, I only receive the normal SAP Asset Manager without the Metering component.
For your information, I created my debug application with the mdk client sdk and used the basic SAM.mdkproject structure of the SAPAssetManagerMeter (ASSET_MNGR_SDK00_0-80004962 as downloading reference).
I added the extensions to this project and left the metadata empty (except the sam.definitions-folder holding the default SAPMeterManager.cim-file).
The debug app root holding the created application is the following for me:

Apart from that, I built my metadata as shown in the first screenshot. The SAPMeterManager.cim file of my project, which is in the sam.definitions-folder, allows me to navigate to the referenced component file of the MeterManager (in VSC), which gives me the hint, that the reference is recognized.

Unfortunately, while debugging, the source-files don't merge with the target-files of the SAPAssetManager (I for instance changed the header of the Overview.page in the SAPMeterManager, but the change is not applied, although the Overview.page is integrated from the SAPMeterManager to the SAPAssetManager).
Do you have any idea, what I could change to make it work?
Thank you in advance and kind regards,
Sher-Chan Kodirov
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi jitendrakumar.kansal,
I hoped, that you will have an answer for this. Since I use a Mac PC now, I did not try it on Windows any more. Still, my description is pretty precise. The directory path, in which the component is expected by the "create-client.cmd"-command is obviously wrong in the batch-file. You should have a look on that for the creation of a client in your cmd-file.
BR,
Sher-Chan Kodirov
The best option will be to still utilize the CIM files. VSCode can handle merging metadata projects on deploy just like in WebIDE. You will want to create a top level folder that contains all your metadata projects and open that in VSCode.

Just remember to resolve the references so VSCode knows where the base project is.


All the references to SAPAssetManager should not be underlined anymore
When you execute the build in VS Code it will now be able to correctly process the CIM file references

You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is the solution we provided to your ticket. It will help others if they are looking for similar requirement.
We have fixed this issue as part of MDK 4.3.1 patch.
If you can't upgrade to MDK 4.3, as a temporary workaround for MDK 4.1, you can use the following approach:
Split your metadata projects (samstandard and Meter) out of your .mdkproject and then build the .mdkproject and metadata projects separately.
Here are the steps:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.