Skip to content

Commit e0427e8

Browse files
committed
Automatic commit: Move 'iot-smartsensing-qcgr-destinations', 'iot-smartsensing-quality-control-rules-actions', 'iot-smartsensing-s4destinations' from QA to Production
1 parent 4c26026 commit e0427e8

3 files changed

Lines changed: 14 additions & 12 deletions

File tree

tutorials/iot-smartsensing-qcgr-destinations/iot-smartsensing-qcgr-destinations.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ Create a Destination which will allow you to create a Goods Receipt. You will in
3939
| Name | **`E5Z_PostGoodsReceipt_SAP_COM_0106`** | of your choice, will be used in SAP IoT Action |
4040
| Type | `HTTP` | |
4141
| Description | | of your choice |
42-
| URL | **`https://my300000.s4hana.ondemand.com/sap/opu/odata/sap/API_INBOUND_DELIVERY_SRV;
43-
v=0002/PostGoodsReceipt?DeliveryDocument='^{lastValue(${thresholdCheck.deliveryDocument})}'`** | URL to the Goods Receipt API incl. placeholder tokens of your SAP S/4HANA Cloud system or Virtual Host for SAP S/4HANA |
42+
| URL | **`https://my300000.s4hana.ondemand.com/sap/opu/odata/sap/API_INBOUND_DELIVERY_SRV;v=0002/PostGoodsReceipt?DeliveryDocument='^{lastValue(${thresholdCheck.deliveryDocument})}'`** | URL to the Goods Receipt API incl. placeholder tokens of your SAP S/4HANA Cloud system or Virtual Host for SAP S/4HANA |
4443
| Proxy Type | `Internet` or `OnPremise`| depending on Cloud or On-premise system |
4544
| Authentication | `BasicAuthentication`, `OAuth2ClientCredentials` ... | based on your setup in the Communication Arrangement or Cloud Connector |
4645

@@ -51,9 +50,8 @@ Create a Destination which will allow you to create a Goods Receipt. You will in
5150

5251
| Property Name | Value | Remark
5352
| :------------- | :------------- | :-------------
54-
| `sap.iot.etagURL` | **`https://my300000.s4hana.ondemand.com/sap/opu/odata/sap/API_INBOUND_DELIVERY_SRV;
55-
v=0002/PostGoodsReceipt?DeliveryDocument='^{lastValue(${thresholdCheck.deliveryDocument})}'`** | URL to the Goods Receipt APIs incl. placeholder tokens of your SAP S/4HANA Cloud system or Virtual Host for SAP S/4HANA |
56-
| `sap.iot.XcsrfURL` | **`https://my300000.s4hana.ondemand.com/sap/opu/odata/sap/API_INBOUND_DELIVERY_SRV;v=0002/PostGoodsReceipt?DeliveryDocument='^{lastValue(${thresholdCheck.deliveryDocument})}'`** | URL to the Goods Receipt APIs incl. placeholder tokens of your SAP S/4HANA Cloud system or Virtual Host for SAP S/4HANA |
53+
| `sap.iot.etagURL` | **`https://my300000.s4hana.ondemand.com/sap/opu/odata/sap/API_INBOUND_DELIVERY_SRV;v=0002/A_InbDeliveryHeader('^{lastValue(${thresholdCheck.deliveryDocument})}')`** | URL to the Goods Receipt APIs incl. placeholder tokens of your SAP S/4HANA Cloud system or Virtual Host for SAP S/4HANA |
54+
| `sap.iot.XcsrfURL` | **`https://my300000.s4hana.ondemand.com/sap/opu/odata/sap/API_INBOUND_DELIVERY_SRV;v=0002/A_InbDeliveryHeader('^{lastValue(${thresholdCheck.deliveryDocument})}')`** | URL to the Goods Receipt APIs incl. placeholder tokens of your SAP S/4HANA Cloud system or Virtual Host for SAP S/4HANA |
5755

5856
> The property `sap.iot.etagURL` retrieves and adds an `ETag` Token during Action execution. It is an identifier for a specific version of a resource and helps to prevent simultaneous updates of a resource from overwriting each other.
5957
>

tutorials/iot-smartsensing-quality-control-rules-actions/iot-smartsensing-quality-control-rules-actions.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ Now that you have a **Rule Project**, you can create a rule. In the **Rule Proje
6363
6464
threshold:
6565
SAP_Stream_Derivation.BusinessTime
66+
67+
ELSE IF ISNULL( thresholdCheck.threshold )
68+
69+
threshold:
70+
'Jan 1, 1970 1:00:00 AM'
6671
```
6772
6873
6. Now you can **Save** and **Activate** the **Rule on Cloud**.
@@ -89,9 +94,11 @@ In the **Rule Projects** app navigate to the **Rules** tab and create a **Stream
8994
5. Using the interactive editor create your rule condition. In this condition we are not providing any value to `IoT_Event_Name` that will be populated differently.
9095
9196
```Rule
92-
IF ISNULL( thresholdCheck.threshold ) AND ISNOTNULL( thresholdCheck.scanningTime )
97+
thresholdCheck.threshold > 'Jan 1, 1990 1:00:00 AM' AND ISNOTNULL( thresholdCheck.scanningTime )
9398
```
9499
100+
>In the rule we are checking the threshold date is valid (current BusinessTime) and higher from the intial value `'Jan 1, 1970 1:00:00 AM'`.
101+
95102
Create another Rule:
96103
97104
6. Provide a unique name for the name and description (for example, **`QualityNotOk`**).
@@ -105,9 +112,11 @@ In the **Rule Projects** app navigate to the **Rules** tab and create a **Stream
105112
10. Using the interactive editor create your rule condition. In this condition we are not providing any value to `IoT_Event_Name` that will be populated differently.
106113
107114
```Rule
108-
IF ISNOTNULL( thresholdCheck.threshold ) AND ISNOTNULL( thresholdCheck.scanningTime )
115+
thresholdCheck.threshold < 'Jan 1, 1990 1:00:00 AM' AND ISNOTNULL( thresholdCheck.scanningTime )
109116
```
110117
118+
>In the rule we are checking the threshold date is the intial value `'Jan 1, 1970 1:00:00 AM'`.
119+
111120
11. Activate both the rules.
112121
113122
[DONE]

tutorials/iot-smartsensing-s4destinations/iot-smartsensing-s4destinations.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,6 @@ You destination should look similar to this one at the end:
5555

5656
> Further information on Destinations and supported Authentication methods see [SAP Help Portal of Internet of Things](https://help.sap.com/viewer/fbf2583f7bcf47fcb5107bf4d358770e/latest/en-US/87ec372e20ea48ba9843fc60a4723895.html) and [SAP Help Portal of SAP BTP Connectivity](https://help.sap.com/viewer/cca91383641e40ffbe03bdc78f00f681/Cloud/en-US/42a0e6b966924f2e902090bdf435e1b2.html)
5757
58-
[DONE]
59-
[ACCORDION-END]
60-
61-
[ACCORDION-BEGIN [Step 2: ](Test yourself)]
62-
6358
[VALIDATE_5]
6459
[ACCORDION-END]
6560

0 commit comments

Comments
 (0)