2025 Mar 14 10:51 AM - edited 2025 Mar 14 1:45 PM
Hello
We have an application that create sales order in SAP B1 via service layer
The sales order document has an approval process and it's work well in SAP B1
But when we do the same via Service layer , it's create the sales order directly and doesn't transform it on draft etc..
I activated the function 'Enable Approval Process in DI'
The user 'manager' trigger the approval when creating the document and is the same that we use in our test (Application and even via postman) the sales order is still created directly
{
"CardCode": "CBONIFAIXD",
"DocDueDate": "2025-03-14",
"DocumentLines": [
{
"ItemCode": "71.150",
"Quantity": "200"
}
]
}
Can you please help ?
UPDATE : I was able to trigger the approval process but it only seems to work when i put
and not when i use sql user queries
Request clarification before answering.
Hi KSmba ,
Please refer to SAP Note 1681542, which states that triggering Approval Procedures based on User Queries via the DI API and Service Layer is not possible.
This limitation applies to the DI API, DTW, and Service Layer. Unfortunately, there is no viable workaround for this.
The functionality can only be performed manually through the SAP Business One Client.
Kind regards,
ANKIT CHAUHAN
SAP Business One Support
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
11 | |
9 | |
8 | |
7 | |
5 | |
4 | |
4 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.