6232: IF (g_document_type = 'PO') THEN
6233: IF (g_document_subtype = 'RELEASE') THEN
6234: x_doctype := 'RELEASE';
6235: /* Bug 4016505 Start */
6236: IF NOT po_actions.close_po(x_po_release_id,
6237: x_doctype,
6238: g_document_subtype,
6239: x_po_line_id,
6240: x_line_location_id,
6251: /* Bug 4016505 End */
6252: ELSE
6253: x_doctype := 'PO';
6254: /* Bug 4016505 Start */
6255: IF NOT po_actions.close_po(interface.po_header_id,
6256: x_doctype,
6257: g_document_subtype,
6258: x_po_line_id,
6259: x_line_location_id,
6275: PO_DEBUG.debug_stmt(p_log_head => g_log_head||l_api_name,
6276: p_token => l_progress,
6277: p_message => 'Create shipment: Before calling Auto close');
6278: END IF;
6279: /*bug 12673501 starts: the call to po_actions.po_close is a redundant call
6280: in the above if conditions it is called with the right parameters.
6281: This call raises an exception hence commenting it.*/
6282: /*IF NOT po_actions.close_po(interface.po_header_id,
6283: x_doctype,
6278: END IF;
6279: /*bug 12673501 starts: the call to po_actions.po_close is a redundant call
6280: in the above if conditions it is called with the right parameters.
6281: This call raises an exception hence commenting it.*/
6282: /*IF NOT po_actions.close_po(interface.po_header_id,
6283: x_doctype,
6284: g_document_subtype,
6285: x_po_line_id,
6286: x_line_location_id,
6312: IF (g_mode = 'ADD') THEN
6313: IF (g_document_subtype = 'RELEASE') THEN
6314: x_doctype := 'RELEASE';
6315: /* Bug 4016505 Start */
6316: IF not po_actions.close_po(x_po_release_id,
6317: x_doctype,
6318: g_document_subtype,
6319: x_po_line_id,
6320: x_line_location_id,
6330: /* Bug 4016505 End */
6331: ELSE
6332: x_doctype := 'PO';
6333: /* Bug 4016505 Start */
6334: IF not po_actions.close_po(interface.po_header_id,
6335: x_doctype,
6336: g_document_subtype,
6337: x_po_line_id,
6338: x_line_location_id,
6348: END IF;
6349:
6350: l_progress := '150';
6351: /*bug 12673501 starts*/
6352: /* IF not po_actions.close_po(interface.po_header_id,
6353: x_doctype,
6354: g_document_subtype,
6355: x_po_line_id,
6356: x_line_location_id,