After the login environment is set successfully, this procedure must be executed for the purchase order or order line item that has the VDR assigned. For proper identification of the document, it is required to pass the SmartPlant Foundation document UID and corresponding version UID.
Each call to this interface is a single transaction and is committed to the database or rolled back in case of an error.
The SET_LOGIN_ENV procedure must be called each time this procedure is executed.
Procedure Parameters
Parameter |
Description |
---|---|
p_ proj_id |
Identifies a valid Smart Materials project. |
p_poh_id |
Number (12,0). Smart Materials internal purchase order ID. |
p_poli_id |
Number (12,0). Smart Materials internal purchase order line item ID. |
p_v_id |
Number (12,0). Smart Materials internal VDR ID. |
p_spf_uid |
Character (128). Document UID from SmartPlant Foundation. |
p_spf_version_uid |
Character (128). Document version UID from SmartPlant Foundation. |
Link Results
After the API procedures are executed, a new document is linked to the VDR as shown in the picture below.