forked from sap-linuxlab/community.sap_operations
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsample-sap-rfc.yml
55 lines (49 loc) · 1.34 KB
/
sample-sap-rfc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
- hosts: all
become: true
vars:
suser_id: 'S00000000'
suser_password: 'password'
sap_nwrfc_sdk: nwrfc750P_10-70002752.zip
reuse_connection:
ashost: s4hana.poc.cloud
sysid: TDT
sysnr: "01"
client: "400"
user: DDIC
passwd: Password1
lang: EN
# trace: 3
# saprouter: /H/111.22.33.44/S/3299/W/e5ngxs/H/555.66.777.888/H/
# gwhost: gateway.poc.cloud
# ghserv: gateway.poc.cloud
tasks:
- name: Run SAP RFC - STFC_CONNECTION
vars:
pyrfc_first_run: yes
target_function: STFC_CONNECTION
target_parameters:
REQUTEXT: 'Hello SAP!'
target_connection: "{{ reuse_connection }}"
ansible.builtin.include_role:
name: community.sap_operations.sap_rfc
register: sap_rfc_output1
- name: DEBUG - Output of STFC_CONNECTION
debug:
msg: "{{ sap_rfc_output1 }}"
- name: Run SAP RFC - STFC_STRUCTURE
vars:
pyrfc_first_run: no
target_function: STFC_STRUCTURE
target_parameters:
IMPORTSTRUCT:
RFCINT1: 128
RFCTABLE:
- COLUMN0: test
target_connection: "{{ reuse_connection }}"
ansible.builtin.include_role:
name: community.sap_operations.sap_rfc
register: sap_rfc_output2
- name: DEBUG - Output of STFC_STRUCTURE
debug:
msg: "{{ sap_rfc_output2 }}"