1. Get rid of all advertisements and get unlimited access to documents by upgrading to Premium Membership. Upgrade to Premium Now and also get a Premium Badge!

Error whille canceling blanket release by calling and API

Discussion in 'Oracle SCM & Manufacturing' started by rLaki, Oct 16, 2012.

  1. rLaki

    rLaki Guest

    Error message:The Return Status of the APIpo_document_control_pub is => E
    The Purchase Order Failed to cancel Due To Following Reason
    The specified control action (Action = CANCEL) is invalid for this document.

    API calling:

    po_document_control_pub.control_document
    (p_api_version => L_API_VERSION_NUMBER,
    p_init_msg_list =>L_INIT_MSG_LIST,
    p_commit => L_COMMIT,
    x_return_status =>G_RETURN_STATUS,
    p_doc_type => L_DOC_TYPE,
    p_doc_subtype => DSHIP_INPUT_REC.IN_PO_DOCUMENT_TYPE,
    p_doc_id =>NULL,--DSHIP_INPUT_REC.IN_PO_HEADER_ID,
    p_doc_num =>DSHIP_INPUT_REC.IN_PO_NUMBER,
    p_release_id =>DSHIP_INPUT_REC.IN_RELEASE_ID,
    p_release_num =>DSHIP_INPUT_REC.IN_RELEASE_NUM ,
    p_doc_line_id =>NULL,--DSHIP_INPUT_REC.IN_PO_LINE_ID,
    p_doc_line_num =>DSHIP_INPUT_REC.IN_PO_LINE_NUM,
    p_doc_line_loc_id =>NULL,--DSHIP_INPUT_REC.IN_LINE_LOCATION_ID,
    p_doc_shipment_num =>DSHIP_INPUT_REC.IN_SHIPMENT_NUM,
    p_action =>L_ACTION ,
    p_action_date => L_ACTION_DATE ,
    p_cancel_reason => L_CANCEL_REASON,
    p_cancel_reqs_flag =>L_CANCEL_REQS_FLAG ,
    p_print_flag => L_PRINT_FLAG ,
    P_NOTE_TO_VENDOR =>DSHIP_INPUT_REC.IN_NOTE_TO_VENDOR

    Please help me ASAP,

    Regards
    rama
     
  2. Bharat

    Bharat Community Moderator Forum Guru

    Messages:
    1,747
    Likes Received:
    147
    Trophy Points:
    1,805
    Location:
    Vijayawada, India
    Hi rama,

    Can you share some more information like what info. you have passed to the API. Ex. l_doc_type, subtype, cancel reason etc.