
After being part of a few implementations which had a couple of hundreds of Interfaces containing a few hundred Communication Channels. It was always a challenge to find the answer to questions like
Of course, all of this can be answered with good documentation and manual check. But the quickest and the efficient way to answer them to me is to make the data available centrally and extracted programmatically. The result, I came with a command-line utility that leverages SAP APIs for it.
It's compiled in JavaSE1.8 (1.8.0_221) and the required libraries are packaged in the Jar itself.
The tool executable scpiExtractor.jar can be downloaded from the Git Hub Project SAP CPI Tool(The same Git Project that contains the CPI DocEr tool to document SAP CPI Mappings)
-SCPI | Your SCPI TMN Host Name |
-user | User Name |
-password | Password for the user [Optional: Same will be prompted if not entered] |
-mode | Value : designtime / runtime / configuration |
-filename | Output Json filename |
-resolveExtVar | Value : Y/N [Optional: To resolve Externalized Variable value. Used in configuration mode. Defaulted to N] |
Copy below command and execute with your values to <tmn_host>, <userID> & <outputFile>.json parameters.
java -jar scpiExtractor.jar -SCPI_Host <tmn_host> -user <userID> -mode designtime -filename <outputFile>.json
This generates a JSON File which I will show in the End how to import it into Excel and view.
Copy the below command, give values to <tmn_host>, <userID> & <outputFile>.json and execute.
java -jar scpiExtractor.jar -SCPI_Host <tmn_host> -user <userID> -mode runtime -filename <outputFile>.json
java -jar scpiExtractor.jar -SCPI_Host <tmn_host> -user <userID> -mode configuration -filename <outputfile>.json -resolveExtVar <Y/N>
The generated JSON file will contain Channel's Externalized parameter variable name with curly brackets {{var}} and the parameter value within square brackets [value] depending on -resolveExtVar parameter is set to N or Y respectively.
4. It Opens a Power Query Editor. Change the Data Source and select the file you extracted
Once you have the data it's up to your imagination to load it where you want and query it the way you want.
I have plans to integrate this with the CPI DocEr tool when I find the time and a UX consultant to help me in this journey. And Also, explore using this for extracting artifacts to maintain them in SCM solution like GIT.
I'll be happy to hear your feedback and know if it helped you 🙂
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
10 | |
7 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 |