on 2023 Dec 18 11:04 AM
Hello,
I have and approval system using Service Layer implemented, works as expected. But then following scenario occur, DraftsService_SaveDraftToDocument after approval with Closed Lines return error [RDR1.LineStatus][line: 1].
1. create a document (f.e. Sales Order) which undergoes approval.
2. approve document and post the draft (via SL) -> all ok
3. close one line of the document (right click in SAP manualy close line, update) - all good no approval needed.
4. alter quantity of one of the open lines, add one more qty, approval is raised -> so far ok.
5. approve via SL -> so far ok.
6. call DraftsService_SaveDraftToDocument ends up with error.
ankit.chauhan1 last time you were very helpfull with this, maybe you have an insight ?
Request clarification before answering.
Hi @janickovicpeter,
I can confirm that this issue is not reproducible in the DEMO database on SP2311.
Therefore, I would request you to check the issue in the latest patch and share the result with us.
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.
Hello @ANKIT_CHAUHAN
yes I can, the process is simple:
1. create an approval template for example for Purchase Order.
2. create purchase order which undergoes this approval with 3-4 lines.
3. approve it, post it (all ok)
4. then create on Delivery Note for ONE (1) FIRST line which will CLOSE this line in PO.
5. change the qty in the purchase order of the 2nd line to double it for example and the PO will raise a necessity to undergo approval again
6. Use service layer to make Approval with PATCH command -> all OK up until this point.
7. DraftsService_SaveDraftToDocument will fail. you have to go to SAP and hit "Update" on that draft document.
SAP b1 10.00.181 FP 2111 64bit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @janickovicpeter,
FP2111 is quite old. Can you try in the latest available version and patch?
Please specify if the issue is reproducible consistently?
Also, mention clearly the localization of the database.
User | Count |
---|---|
98 | |
11 | |
9 | |
9 | |
6 | |
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.