APPROVE_REQ - Intergraph Smart Materials - Version 10.1 - Customization & Programming - Hexagon

Intergraph Smart Materials Customization (10.1)

Language
English
Product
Intergraph Smart Materials
Subproduct
Classic
Search by Category
Customization & Programming
Smart Materials/Smart Reference Data Version
10.1

Description:

This procedure is called by m_pck_req.approve_req. This procedure is executred when a requisition is approved on R.30.01. This procedure is also executed 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 handles 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'), meaning: "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:

A.20.49, R.30.01, Web Approval

Event:

Requisition approval

Default:

NULL