n8n-nodes-sap-service-layer
Version:
n8n custom node for SAP Service Layer integration
106 lines (84 loc) • 2.15 kB
Markdown
# n8n-nodes-sap-service-layer
This is an n8n community node for SAP Service Layer integration. It allows you to interact with SAP Business One Service Layer API from your n8n workflows.
## Installation
Follow the [installation guide](https://docs.n8n.io/integrations/community-nodes/installation/) in the n8n community nodes documentation.
## Credentials
The node requires the following credentials:
- **Service Layer URL**: The URL of your SAP Service Layer (e.g., https://sl-eqnx.datacore.com.br:31218/b1s/v1)
- **Company DB**: Your SAP company database name
- **Username**: Your SAP username
- **Password**: Your SAP password
- **Language**: Language code (default: 1)
## Operations
The node supports the following operations for each resource:
### Business Partner
- Create
- Get
- Get All
- Update
### Sales Order
- Create
- Get
- Get All
- Update
### Item
- Create
- Get
- Get All
- Update
## Usage
1. Add the SAP Service Layer node to your workflow
2. Configure the credentials
3. Select the resource you want to work with
4. Choose the operation
5. Provide the necessary parameters (ID for get/update operations, data for create/update operations)
## Example
### Get Business Partner
1. Select "Business Partner" as the resource
2. Choose "Get" as the operation
3. Enter the Business Partner ID
4. Execute the node
### Create Sales Order
1. Select "Sales Order" as the resource
2. Choose "Create" as the operation
3. Enter the sales order data in JSON format
4. Execute the node
## Data Format
### Create/Update Business Partner
```json
{
"CardCode": "C00001",
"CardName": "Test Customer",
"CardType": "C",
"GroupCode": 100
}
```
### Create/Update Sales Order
```json
{
"CardCode": "C00001",
"DocDate": "2024-03-20",
"DocDueDate": "2024-03-27",
"DocumentLines": [
{
"ItemCode": "I00001",
"Quantity": 1,
"UnitPrice": 100
}
]
}
```
### Create/Update Item
```json
{
"ItemCode": "I00001",
"ItemName": "Test Item",
"ForeignName": "Test Item EN",
"ItemsGroupCode": 100,
"PurchaseItem": "Y",
"SalesItem": "Y",
"InventoryItem": "Y"
}
```
## License
[MIT](LICENSE.md)