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

Intergraph Smart Materials Classic API Configuration (10.1)

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

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