on 10-11-2021 3:26 PM
Hi all,
I have an issue saving approved document drafts as document via DI API.
My code is: (there is a "purchase request" draft with the corresponding docEntry, thah has been approved earlier)
...
SAPbobsCOM.Documents oDocDraft = SAPbobsCOM.Documents)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDrafts);
oDocDraft.GetByKey(docEntry);
oDocDraft.SaveDraftToDocument();
...
The draft is saved successfully, but the approval gets disappeared!
The value of "WddStatus" gets "-" instead of "P", and from the OWDD table the corresponding record will be deleted!!!
(If I do it on the user Form with the "Add" button, the WddStatus gets "P" and the DocEntry in the OWDD table gets the new docEntry value, as expected.)
I assume it is an issue in the DI API. Or do I something wrong?
Thanks
Dear rajo81,
It appears that you are having the same scenario as mentioned in SAP Note 2772166.
Kindly verify the same.
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.
I have exact same problem as rajo81 has. But unfortunately the link you shared does not provide any solution, it's only points to the system behaviour. Whether I add the draft via .Add() or .SaveDraftToDocument() method, it does not show approved status as expected.
Also deletes the approved template.
tried with different combinations of check/uncheck of all Approval Process section in General Settings with no luck.
Any suggestion would gladly appreciated.
User | Count |
---|---|
96 | |
10 | |
9 | |
6 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.