All posts tagged CmCmdlets @de

EasyCloud Report and Variant Scanner- Example

Kategorien: cmShell, EasyCloud, Knowledge Base
Kommentare deaktiviert für EasyCloud Report and Variant Scanner- Example

Intro

connmove EasyCloud offers a powerful Interface to scan SAP Reports and Variants for specific pattern.

This is very useful in case of OS/DB Migrations. Our solution scans the SAP ABAP System for Paths or Database commands and provide with a To Do List for you development Teams.

Major Features:

  • Scans one or multiple SAP Systems
  • Scans Reports and Variants for any text pattern
  • Reports the result as CSV

Attention: While scanning for Variants, please note they have a SAP Client dependency.

Solution

Download and install the cmShell for SAP Setup from Downloads.

Download the attached Script of this Note. Save the script on a Windows (Windows Server 2008 R2  or above) in a read/writeable Directory.

Edit the Script in These Sections:

Search configuration

 

###################################################
 Search configuration
##################################################
#Specify the reports which will be searched
# % - A substitute for zero or more characters
$reports= @("Z%","Y%","A%")
#Specify the terms which will be searched in the variants
# _ - A substitute for a single character
$VariantSearchList= @("USR")
#Specify the terms which will be searched in the source code
$ReportSrcSearchList= @("0") 

SAP Systems to scan

##################################################

# SAP Connections

##################################################

# Create new SAP connection:

# – Copy the next three comments and remove the ‚#‘

# $SAPSystems[„<InstanceName>“] = New-object -TypeName PSObject

# $con = Get-CmSapConnect -UserName <Username> -Password <Password> -Language en -Client <Client> –Host <Host> -SystemNumber <SystemNumber>

# Add-Member -InputObject $SAPSystems[„<InstanceName>“] -Name Connection -Value $con -MemberType NoteProperty

# – Specify the instance name of the SAP system in the <InstanceName>placeholders.

# – Set up the SAP Connection in the Get-CmSApConnect cmdlet.

#

#Create SAP connections here:

#SAP Connection Example:

$SAPSystems[„ERP_EC1_00“] = New-object -TypeName PSObject

$con = Get-CmSapConnect -UserName admin -Password ******** -Language en -Client 100 –Host ERP.REDFRUIT.CORP -SystemNumber 00

Add-Member -InputObject $SAPSystems[„ERP_EC1_00“] -Name Connection -Value $con -MemberType NoteProperty

CSV-Output

##################################################

# Create CSV file

##################################################

$csvEnabled = $true

$csvDelimiter = „;“

$csvVariantsPath = „.\Variants.csv“

$csvReportsPath = „.\Reports.csv“

 

 


cmShell for SAP version 1.10 is available

Kategorien: cmShell, Knowledge Base
Kommentare deaktiviert für cmShell for SAP version 1.10 is available

Intro

Now it is possible to load the CmCmdlets with Import-Module when you use PowerShell 3 or above. Add-PSSnapin is still supported.

Notice:
If you load the CmCmdlets with Import-Module, you will get a warning message (cmdlet names include unapproved verbs). You can ignore this message.

We have changed the names of some comandlets. Please use the new names of the comandlets in your scripts.

Obsolete name New name
List-CmSapJobServerGroup Get-CmSapJobServerGroup
Cancel-CmSapJob Stop-CmSapJob
List-CmSapJobsWithStatus Get-CmSapJobsWithStatus
Release-CmSapTMSRequest Set-CmSapTMSRequestRelease
Release-CmSAPTMSOrder Set-CmSapTMSOrderRelease
List-CmOsInstalledUpdates Get-CmOsInstalledUpdates
List-CmSapInstance Get-CmSapInstances
TypeOf-CmSapInstance Get-CmSapInstanceType

Solution

Download and install the cmShell for SAP Setup from Downloads.

If you have already installed an older version of cmShell for SAP, you have to do some actions before you can install the new version:

  • Unregister the cmdlets by using installutil: [Path to installutil.exe] –u [Path to CmCmdlets.dll]
  • Uninstall cmShell for SAP
  • Download and install the new version of cmShell for SAP

cmShell for SAP – GUI Scripting

Kategorien: cmShell, Knowledge Base
Kommentare deaktiviert für cmShell for SAP – GUI Scripting

Intro

connmove cmShell for SAP supports scripting for SAP GUI components. With this powerful feature, any SAPGUI Transaction can be executed and the result can be taken for further actions.

Solution

Attached to this Note you find the latest manual.

cmShell_for_SAP-GUIScripting_Guide