All posts tagged Cmdlets @de

EasyCloud Cmdlets for managing SAP Users

Kategorien: Allgemein
Kommentare deaktiviert für EasyCloud Cmdlets for managing SAP Users

Intro

There is a functionality needed to manage SAP users.

Solution

There are new cmdlets added to manage SAP user data:

  • Get-CmSapUserDetails
  • Add-CmSapUser
  • Set-CmSapUserDetails
  • Get-CmSapUserAuthorizationData

Get-CmSapUserDetails

Returns detail informations of a user.

Image 1 shows the different return data:

EasyCloud_Sap_User_1

Image 2 shows how to read an information like the E-Mail:

EasyCloud_Sap_User_2

 

Add-CmSapUser

The Cmdlet creates a new SAP User. You can set properties: user name, first / last name, password and a reference user. Use Set-CmSapUserDetails to set more properties.

EasyCloud_SAP_User_5

 

Set-CmSapUserDetails

With this Cmdlet you can change a lot of data of an Sap User:

EasyCloud_Sap_User_3

Here are a few informations which can be changed by using the cmdlet:

  • Data of Person (Name, etc.)
  • Contact Informations (Address, E-Mail, etc.)
  • SNC
  • User Password
  • User Type
  • User Group
  • Validity Period
  • etc.

 

 Get-CmSapUserAuthorizationData

Checks if a user has authorization issues. The function returns the output of the TC SU53.

EasyCloud_Sap_User_4

 


Note: SAP User Authorizations for EasyCloud Cmdlets

Kategorien: Allgemein, EasyCloud, Knowledge Base
Kommentare deaktiviert für Note: SAP User Authorizations for EasyCloud Cmdlets

Intro

To use the SAP functions of the EasyCloud cmdlets, the user must have the appropriate rights. This note explain the minimum priviliges to connect EasyCloud to an SAP ABAP System.

Solution

The minimum rights to create an RFC connection to the SAP system are the following:

EasyCloud_Sap_Role_1

 

Determine the rights of an EasyCloud function

If the user has no rights for a function, you can determine the missing rights as follows:

  • Execute the EasyCloud function.
  • You can check if the user is missing rights by using the transactions ST01, SU53 and SM21. If there is something missing add it to the users role.
  • After you have given the rights to the user, execute the EasyCloud function again. Maybe the function needs more rights.

 

Example: SAP TMS

Attached to this blog post there is a SAP role template for the usage TMS and the AuthorizationData Cmdlets:

Download Template

The following Screenshot there is an example of a typical role for the usage EasyCloud.

EasyCloud_Sap_Role_2

Further Information about SAP TMS and authorization objects: http://help.sap.com/saphelp_nw04/helpdata/de/57/38deb54eb711d182bf0000e829fbfe/content.htm


EasyCloud Cmdlets SLD

Kategorien: cmShell, Knowledge Base
Kommentare deaktiviert für EasyCloud Cmdlets SLD

Access a SLD and find SAP systems. Get information about the installed software components and associated support packages.

Add-PSSnapin cmcmdlets
$con = Get-CmSapConnect -UserName admin -Password ****** -Language en -Client 001 -Host solman71.redfruit.corp -SystemNumber 0
Get-CmSapSLDComponents -CmSapConnect $con | Format-Table

GetCmSapSLDComponents

The result of this cmdlet is stored in a DataTable.
Description of each column:
SYSTEMNAME: Name of SAP System
SYSTEMHOME: Host Name
SWCNAME: Name of the Software Component
SWCVERSION: Version of the Software Component
ISPNAME: Name of the Installed Support Package
ISPVERSION: Version of the Installed Support Package
SPNAME: Name of the Available Support Package
SPVERSION: Version of the Available Support Package


EasyCloud Cmdlets for managing transport requests (TMS)

Kategorien: cmShell, Knowledge Base
Kommentare deaktiviert für EasyCloud Cmdlets for managing transport requests (TMS)

The following examples show how you can manage the requests of the transport system by using our cmdlets.

First you need to load our cmdlets in the PS-Session and then connect to your SAP system.

Add-PSSnapin CmCmdlets

$con = Get-CmSapConnect -UserName admin -Password ****** -Language en -Client 100 -Host erp.redfruit.corp -SystemNumber 0

 

With Get-CmSapTMSRequests you can select request from a system. The result can be filtered by specifying parameters like author, status or type oft he request.

$requests = Get-CmSapTMSRequests -CmSapConnect $con

getrequest

You can use Get-CmSapTMSRequestDoc to retrieve the documentation of a request. You can also edit the documentation of a request by using Add-CmSapTMSRequestDoc.

Get-CmSapTMSRequestDoc -CmSapConnect $con -IV_OBJECT EC1K900026

getrequestdoc

Get-CmSapTMSObjects returns all objects of a specific  transport request:

Get-CmSapTMSObjects -CmSapConnect $con -IF_TRKORR EC1K900030

getobjects

To release transport task or request use Release-CmSapTMSRequest:

Release-CmSapTMSRequest -CmSapConnect $con -REQUESTID EC1K900023-COMPLETE $true

Import transport requests into a system:

Import-CmSapTMSRequest -CmSapConnect $con -System SLM -Client 100 -Request EC1K900023

 

The meaning of the return values ​​is described in the help of the respective cmdlets.


CmEasyCloud Cmdlets read entries of a SAP table

Kategorien: cmShell, Knowledge Base
Kommentare deaktiviert für CmEasyCloud Cmdlets read entries of a SAP table

With the cmdlet ‚Get-CmSAPTable‘ you have the possibility to read out the entries of a SAP table.
You have to specify the name of the table of which you want retrieve the data.
There are also two options to select the entries:

  • Fields: Represents the fields that are retrieved
  • WhereClause: SQL statement for fetching the data
PS C:\Users\zacharias.kopidakis> Add-PSSnapin Cmcmdlets
PS C:\Users\zacharias.kopidakis> $con = Get-CmSapConnect -UserName admin -Password ***** -Language EN
-Client 100 -Host ERP.REDFRUIT.CORP -SystemNumber 00
PS C:\Users\zacharias.kopidakis> Get-CmSapTable -CmSapConnect $con -Name RZLLITAB
-Fields CLASSNAME,APPLSERVER,GROUPTYPE  -WhereClause "GROUPTYPE = '' OR CLASSNAME like'%2'"

CLASSNAME                               APPLSERVER                              GROUPTYPE
---------                               ----------                              ---------
Group2                                  ERPDI01_EC1_05                          S
Group2                                  ERP_EC1_03                              S
Group2                                  ERP_EC1_04                              S
SMLG                                    ERP_EC1_00
TEST                                    ERPDI01_EC1_05


CmEasyCloud installation of the Cmdlets

Kategorien: cmShell, Knowledge Base
Kommentare deaktiviert für CmEasyCloud installation of the Cmdlets

System requirements:

– 64 bit OS. For more information see EasyCloud Support Matrix
– .Net Framework 3.5

Download and install the cmdlets from our download area http://connmove.eu/software/downloads/

After you have installed the cmdlets, run the PowerShell as administrator and register the cmdlets by executing following command:
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\installutil.exe „C:\Program Files (x86)\Connmove GmbH\cmShell for SAP\CmCmdlets.dll“
(Maybe you have to adjust the path to the insatallutil)

After that, add the cmdlets to the PS Session and enter your license key:
Add-PSSnapin cmcmdlets
Set-CmLicense –Licensekey
(You will find a demo license in the ‚licenseKey‘ textfile)


 

You can get a list of all of our Cmdlets with the command „Get-Command -Module Cmcmdlets“

You can display the help of a cmdlet by using „Get-Help“.
Example: Get-Help Start-CmSAPJob -Full

You will find many code examples at  http://connmove.eu/category/knowledge/easycloud/