0 Replies Latest reply on Aug 26, 2009 3:00 AM by 593357

    PO_ACTIONS.CLOSE_PO do not work

    593357
      Hi all,

      i have a requirement to close PO using API. i was using PO_ACTIONS.CLOSE_PO API to do that.

      I developed a script, where in

      1. set org fnd_client info
      2. Initialize apps with user id , responsibility, application_id
      3. PO_ACTIONS.CLOSE_PO

      l_result := PO_ACTIONS.CLOSE_PO(
      P_DOCID => POHEADERID,
      P_DOCTYP => 'PO',
      P_DOCSUBTYP => 'STANDARD',
      P_LINEID =>POLINEID,
      P_SHIPID => POLINELOCID,
      P_ACTION => 'CLOSE',
      P_REASON => 'Testing',
      P_CALLING_MODE => 'PO',
      P_CONC_FLAG => 'N',
      P_RETURN_CODE => x_return_code,
      P_AUTO_CLOSE => 'N',
      P_ACTION_DATE => SYSDATE,
      P_ORIGIN_DOC_ID => NULL
      );

      the API returns unsuccessful. please advise.


      Thanks.