APPROVE_REQ - Intergraph Smart Materials - Version 2020 (10.0) - Customization & Programming - Hexagon PPM

Intergraph Smart Materials Customization (2020)

Language
English
Product
Intergraph Smart Materials
Subproduct
Classic
Search by Category
Customization & Programming
Smart Materials/Smart Reference Data Version
2020 (10.0)

Description:

This procedure is called by m_pck_req.approve_req. This procedure is called when a requisition is approved on R.30.01. This procedure is also called when ZR_ADV_APP is set to N and a requisition is released. It is possible to unapprove a requisition, change it in some way, and then approve it again. So this CIP procedure must handle being called multiple times for the same requisition.

You can implement any approval checks necessary here; you have two ways to indicate an error to the caller in order to stop the approval process:

  1. set mpck_login.warning_ind to 'Y'. The caller will then RAISE_APPLICATION_ERROR(-20000,'MAR-25026'), which means, "ERROR: Cannot approve req due to failed custom approval check"

    OR

  2. RAISE_APPLICATION_ERROR yourself from within approve_req. The caller will propagate this exception to the GUI. Please make sure to enter a correct custom error message text on A.60.31 if you want to use this method.

Type:

Procedure

Usage:

R.30.01

Event:

Approve requisition

Default:

NULL