My Oracle Support Banner

PO_DOCUMENT_CONTROL_PUB.control_document() Public API Returns With DOCMGR-CANCEL Error (Doc ID 336791.1)

Last updated on OCTOBER 06, 2024

Applies to:

Oracle Purchasing - Version 11.5.10 to 12.3 [Release 11.5 to 12.3]
Information in this document applies to any platform.

Symptoms

Running the PO_DOCUMENT_CONTROL_PUB.control_document() API to cancel a PO that is in APPROVED,RESERVED status and has not been invoiced or received against, and get the following generic error message:

ERROR:
Document control failed due to error in [DOCMGR-CANCEL], return code = [OTHER].


Start of log messages from FND_FILE
+---------------------------------------------------------------------------+
Document control failed due to error in [DOCMGR-CANCEL], return code = [OTHER].

Changes

The data submitted to the API as follows:

    -- Call the Cancel API
    PO_Document_Control_PUB.control_document(
      p_api_version => 1.0
     ,p_init_msg_list => FND_API.G_TRUE
     ,p_commit => FND_API.G_TRUE
     ,x_return_status => l_return_status
     ,p_doc_type => 'PO'
     ,p_doc_subtype => 'STANDARD'
     ,p_doc_id => NULL
     ,p_doc_num => 'XXXXXXXXXXXX'--cput_po_rec.SEGMENT1
     ,p_release_id => NULL
     ,p_release_num => NULL
     ,p_doc_line_id => NULL
     ,p_doc_line_num => NULL
     ,p_doc_line_loc_id => NULL
     ,p_doc_shipment_num => NULL
     ,p_action => 'CANCEL'
     ,p_action_date => SYSDATE
     ,p_cancel_reason => NULL --'CPUT CONVERSION PO'
     ,p_cancel_reqs_flag => 'N'
     ,p_print_flag => NULL
     ,p_note_to_vendor => NULL);

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.