cancel
Showing results for 
Search instead for 
Did you mean: 

DraftsService_SaveDraftToDocument after approval with Closed Lines

janickovicpeter
Explorer
0 Kudos
697

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 ?

Accepted Solutions (0)

Answers (2)

Answers (2)

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

janickovicpeter
Explorer
0 Kudos
@ANKIT_CHAUHAN Thanks, is there a possiblity for me to test on such DEMO database without updating my instance ?
janickovicpeter
Explorer
0 Kudos

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

 

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

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.

janickovicpeter
Explorer
0 Kudos
I can try but it is not easy to update, if I would be sure this is a bug what was fixed, than it would be great, Localizatiaon SK, version: 1000.181.08 Thanks for help
janickovicpeter
Explorer
0 Kudos
@ANKIT_CHAUHAN please do you need any more information on this to provide ?