write_mrr_header - Intergraph Smart Materials - Version 2016 R4 (8.4.0) - Customization & Programming - Hexagon PPM

Intergraph Smart Materials Classic API Configuration (2016 R4)

PPMProduct
Intergraph Smart Materials
PPMCategory_custom
Customization & Programming
Version_SPMat_custom
2016 R4 (8.4)

This function creates the MRR header information and returns the MRR_ID from Smart Materials.

To distinguish the receiving by Agreement, Release Note, Package, or Direct Receive, the MRR type or the receiving type implies this information. The table below shows the available MRR types, the where clause that is used, and the possible receiving types (recv_type).

MRR Types

Where clause

Possible recv type

MRR by PO

poh_id is not null

O

MRR by Direct Receive

pho_id is null and tmr_id is null and recv_type not in ( 'A', 'W' )

O,CP,F,S,V

MRR by Release Note

reln_id is not null and recv_type <> 'A'

O

MRR by Package

Recv_type = 'A'

A

The meaning of the Recv_type is as follows:

A - Packages

C - Client Supply

F - Field PO

I - Interim Receiving (if a package was received on the P.70.74 screen)

O - Others

P - Other Project Supply

S - Other Site

V - MTR/VOUCHER

W - Corporate Warehouse