cancel
Showing results for 
Search instead for 
Did you mean: 

Set document pending

vigano_diana
Discoverer
0 Kudos

Hi all,

how can I set a document with status "pending" with the DI-API?

Thank you

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Please check these two fields in any DOCUMENT TABLE like OINV or OQUT.

WddStatus--Authorization Status

This has the following status 1.W Pending

2.Y Approved

3. N Rejected

4. P Generated

5. A Generated by Authorizer

6. C Cancelled

DocStatus--Document Status

This has the following status 1.O Open

2.C Closed.

Which one of the above do u want to change..??

Hope it helps.

Regards,

Vasu Natari.

vigano_diana
Discoverer
0 Kudos

Vasu Natari,

I want to change the Authorization Status with the DI-API but I can't find a way to do this.

Thanks for your interest.

Diana

Former Member
0 Kudos

Dear Vigano' Diana,

You could add the draft document with the DI API : Documents(oDrafts)

Best Regards

Jane Jing

SAP Business One Forums team

vigano_diana
Discoverer
0 Kudos

Dear Jane Jing,

thank you for your response it is very usefull, I have another question

if I want to associate an authorization request for that document always with the DI-API, in which way can I do this?

Best regards.

Former Member
0 Kudos

U can set an alert message to be sent to the approver once a specific document is added..

Hope it helps.

Vasu Natari.

vigano_diana
Discoverer
0 Kudos

I have sent a message to the approver. The document is saved as draft but he can't see it in the authorization status report, so the document will never be approved. Saving the document as draft doesn't mean that the document is pending for an authorization.