community.sap.sap_snote module – This module will upload and (de)implements SNOTES
in a SAP S4HANA environment.
Note
This module is part of the community.sap collection (version 1.0.0).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install community.sap
.
To use it in a playbook, specify: community.sap.sap_snote
.
New in version 1.0.0: of community.sap
Synopsis
The
sap_snote
module depends onpyrfc
Python library (version 2.4.0 and upwards). Depending on distribution you are using, you may need to install additional packages to have these available.This module will use the Function Group
SCWB_API
.The
TMS
must be configured at first.Integrating SNOTES cannot be done via
DDIC
- orSAP*
-User.
Requirements
The below requirements are needed on the host that executes this module.
pyrfc >= 2.4.0
Parameters
Parameter |
Comments |
---|---|
The client number to connect to. You must quote the value to ensure retaining the leading zeros. Default: “000” |
|
The required password for the SAP system. |
|
The required username for the SAP system. |
|
The required host for the SAP system. Can be either an FQDN or IP Address. |
|
With the Upload SNOTES to the System is only available if |
|
The path to the extracted SNOTE txt file. The File could be extracted from SAR package. If The SNOTE txt file must be at a place where the SAP System is authorized for. For example |
|
The decision what to do with the SNOTE. Could be Choices:
|
|
The system number of the SAP system. You must quote the value to ensure retaining the leading zeros. Default: “01” |
Examples
- name: test snote module
hosts: localhost
tasks:
- name: implement SNOTE
community.sap.sap_snote:
conn_username: 'DDIC'
conn_password: 'Passwd1234'
host: 192.168.1.100
sysnr: '01'
client: '000'
state: present
snote_path: /usr/sap/trans/tmp/0002949148.txt
- name: test snote module without path
hosts: localhost
tasks:
- name: deimplement SNOTE
community.sap.sap_snote:
conn_username: 'DDIC'
conn_password: 'Passwd1234'
host: 192.168.1.100
sysnr: '01'
client: '000'
state: absent
snote: 0002949148
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
A small execution description. Returned: always Sample: “SNOTE 000298026 implemented.” |
|
A complete description of the SNOTE implementation. If this is available. Returned: always Sample: “{ \”RETURN\”: [{\”ES_MSG\”: { \”MSGNO\”: \”000\”, \”MSGTY\”: \”\”, \”MSGTXT\”: \”\”, \”MSGV1\”: \”\” }, \”ET_MSG\”: [], \”EV_RC\”: 0, \”ET_MISSING_NOTES\”: [], \”IT_FILENAME\”: [{\”FILENAME\”: \”/usr/sap/trans/tmp/0002980265.txt\”}], \”IT_NOTES\”: [{\”NUMM\”: \”0002980265\”, \”VERSNO\”: \”0000\”}] }]}” |
Authors
Rainer Leber (@rainerleber)