|
1 | 1 |
|
2 | | -@server = http://localhost:4004 |
| 2 | +@server = http://localhost:4006 |
3 | 3 | @bpServer = http://localhost:5001 |
4 | 4 | @authAlice = Authorization: Basic alice: |
5 | 5 |
|
6 | | -PATCH {{server}}/api-business-partner/A_BusinessPartner('ACME') |
7 | | -Content-Type: application/json |
8 | | - |
9 | | -{ |
10 | | - "BusinessPartnerFullName": "Alice Changed" |
11 | | -} |
12 | | - |
| 6 | +### |
| 7 | +### Replication on changed Business Partner |
13 | 8 | ### |
14 | 9 |
|
15 | | -PATCH {{server}}/admin/Books(201) |
16 | | -{{authAlice}} |
17 | | -Content-Type: application/json |
| 10 | +### 1. Check supplier name before update ("A Company Making Everything") |
18 | 11 |
|
19 | | -{ |
20 | | - "supplier_ID": "PNG" |
21 | | -} |
| 12 | +GET {{server}}/admin/Books(299)?$expand=supplier |
| 13 | +{{authAlice}} |
22 | 14 |
|
23 | | -### |
| 15 | +### 2. Change Business Partner -> Triggers event that updates supplier replication |
24 | 16 |
|
25 | | -PATCH {{bpServer}}/api-business-partner/A_BusinessPartner('PNG') |
| 17 | +PATCH {{bpServer}}/api-business-partner/A_BusinessPartner('ACME') |
26 | 18 | Content-Type: application/json |
27 | 19 |
|
28 | 20 | { |
29 | | - "BusinessPartnerFullName": "Penguin Books (Changed)" |
| 21 | + "BusinessPartnerFullName": "A Company Making Everything *better*" |
30 | 22 | } |
31 | 23 |
|
32 | | -### |
| 24 | +### 3. Check supplier name after update ("A Company Making Everything *better*") |
33 | 25 |
|
34 | | -GET {{server}}/admin/Books?$top=11&$expand=supplier |
| 26 | +GET {{server}}/admin/Books(299)?$expand=supplier |
35 | 27 | {{authAlice}} |
36 | 28 |
|
37 | | -@S4bupa = http://localhost:4006/api-business-partner |
| 29 | +### |
| 30 | +### Replication on new assigned supplier |
| 31 | +### |
38 | 32 |
|
39 | | -################################################# |
40 | | -# |
41 | | -# Suppliers Service (-> S/4) |
42 | | -# |
| 33 | +### 1. No supplier is assigned to "Wuthering Heights" |
43 | 34 |
|
44 | | -PATCH {{S4bupa}}/A_BusinessPartner('ACME') |
| 35 | +GET {{server}}/admin/Books(201)?$expand=supplier |
| 36 | +{{authAlice}} |
| 37 | + |
| 38 | +### 2. Assign supplier ID "PNG" |
| 39 | + |
| 40 | +PATCH {{server}}/admin/Books(201) |
| 41 | +{{authAlice}} |
45 | 42 | Content-Type: application/json |
46 | 43 |
|
47 | | -{ "FirstName":"ACME" } |
| 44 | +{ |
| 45 | + "supplier_ID": "PNG" |
| 46 | +} |
48 | 47 |
|
49 | | -### |
| 48 | +### 3. Supplier information is replicated |
| 49 | + |
| 50 | +GET {{server}}/admin/Books(201)?$expand=supplier |
| 51 | +{{authAlice}} |
0 commit comments