SAP S/4HANA Extension
Installation
-
Go to Extensions → Marketplace → Search for extension SAP S/4HANA Extension → Click the
Install
action in "ACTIONS" menu






Configurations
-
Configuration properties are pre-populated which user can modify as per the requirement.
-
There are different tabs like CONNECTION, DATA SETTINGS and ENDPOINTS from which the user can configure the properties to get SAP S/4HANA connector working.
-
Configure the following properties from Extensions → Settings.
1. CONNECTION

Variable |
Description |
Example |
|
3DEXPERIENCE Agent id for Extension |
|
|
3DEXPERIENCE Agent secret for Extension |
|
|
Base url of SAP S/4HANA |
https://<host address> |
|
Client id of SAP S/4HANA |
500 |
|
User name to login to SAP S/4HANA |
|
|
Password for the user name |
2. DATA SETTINGS
The below shown values are from a demo point of view. |

Variable |
Description |
Example |
|
- |
M |
|
- |
1 |
|
- |
C |
|
- |
true |
|
1 = Engineering BOM, 2 = Production BOM, Default = 1 |
2 |
|
BUS1001006 |
|
|
- |
0 |
|
- |
1 |
|
Single item quantity |
1 |
|
- |
false |
|
Example; A.1 |
false |
|
- |
S |
|
EN = English |
EN |
|
SAP Object Type |
Material |
|
SAP Object Type |
MaterialBOM |
|
false |
|
|
- |
1 |
|
- |
1100 |
|
- |
true |
|
Group at SAP S/4HANA |
ZFORK |
|
Type at SAP S/4HANA |
FERT |
3. DEVELOPMENT
As of release V1 , the DEVELOPMENT tab is meant for development environment. It is used to generate Item numbers and Change Action numbers as required by the destination system (SAP S/4HANA). |
4. ENDPOINTS

Variable |
Description |
Example |
|
SAP S/4HANA API uri used to send payload for Send BOM & Send BOM with CA use case |
sap/API_BILL_OF_MATERIAL_SRV;v=2/MaterialBOM |
|
SAP S/4HANA API uri used to send payload for Send CA use case |
sap/opu/odata/sap/API_CHANGEMASTER;v=2/A_ChangeMaster |
|
SAP S/4HANA API uri used to send payload for Revise Engineering Item use case |
sap/opu/odata/sap/API_PRODUCT_SRV/A_Product('<ITEM_NAME>') |
|
SAP S/4HANA API uri used to send payload for Associate CA use case |
sap/opu/odata/sap/API_CHANGEMASTER; v=2/A_ChangeMaster('<CA_NUMBER>')/to_ChangeMstrObMgReMaterial |
|
SAP S/4HANA API uri used to send payload for Send Engineering Item use case |
sap/opu/odata/sap/API_PRODUCT_SRV/A_Product |
|
SAP S/4HANA API uri used to send attachment for Send Document use case |
sap/opu/odata/sap/API_CV_ATTACHMENT_SRV/AttachmentContentSet |
|
SAP S/4HANA API uri to fetch the token |
sap/opu/odata/sap/API_PRODUCT_SRV/ |
-
SAP S/4HANA service is available out of the box. This SAP S/4HANA service is mapped with the events under event mapping.
-
A Service corresponds to a job queue. Every event mapping needs to specify to which service it belongs. A service can be configured to run its jobs in sequence OR parallel execution. Either create a single service to handle all the events or create separate services for each event mapping.
-
Event Mapping
-
Need to enable what events needs to be published from the DS tenant using Event Publishing app.
-
Event mapping holds the information about which use-case needs to be executed when the event is received. It is a binding between the event and job-request.
-

Example for configured events publishing are as follows
Engineering item → Created, Status Changed, Versioned, etc…
-
Event mapping need to be created so that required use case should get executed on receiving the event from DS tenant. While creating the events we need to provide the details like
-
Service name
-
Agent
-
Event class and its type
-
Configuration to be invoked
-
-
Following event mapping is available out of the box.
Events | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Event Categories & Types |
|
||||||||||||||||||
⊟ Event Category : ├ 🧊 Engineering Item |
|
||||||||||||||||||
⊟ Event Category : Change ├ 🄲🄰 Change Action |
|
-
SAP-S/4HANA-Create-Eng-Material-Send-Eng-Material - gets invoked on creation of an Engineering item in DS tenant.
-
SAP-S/4HANA-Send-BOM - gets invoked on release of an engineering item in DS tenant.
-
SAP-S/4HANA-Send-CA - gets invoked on creation of Change Action in DS tenant.
-
SAP-S/4HANA-Release-CA-Send-BOM - gets invoked on release of a Change Action in DS tenant.
-
SAP-S/4HANA-Revise-Engineering-Item - gets invoked on creation of revision of an Engineering item in DS tenant.
-
SAP-S/4HANA-Send-Document - gets invoked on release of an Engineering item in DS tenant.
SAP S/4HANA use cases use token to connect to the destination url for sending the payload. |
In general, any SAP S/4HANA use case, use the below javascript classes.
Component |
Details |
1. Use case invoker |
It invokes the processor of the specific use case. The invoker is also responsible to pass in the optional set of properties to the use case processor |
2. Processor |
It has the logic to fetch the data, build the payload and send it to SAP S/4HANA using the Destination Handler. |
3. Token Resolver |
It fetches the authentication token by connecting to the corresponding SAP S/4HANA url |
4. Destination Handler |
It has the logic to connect to the SAP S/4HANA urls by performing necessary actions and send the payload. |
5. Logger |
Logs the details of the items being accessed in the use case. |
6. Helper |
It has the methods to build the payload for SAP S/4HANA. |
7. Util |
It has the utility methods that helps to transform the payload data. |