ProdUpdCostEstimation.createPurchTable Method [AX 2012]

Creates a new PurchTable record or retrieves the purchase ID of an existing one.

protected container createPurchTable(ProdBOM _prodBOM, PurchAgreementId _purchAgreementId)

Run On

Server

Parameters

_prodBOM
Type: ProdBOM Table
A ProdBOM record used during the initialization of the purchase order.
_purchAgreementId
Type: PurchAgreementId Extended Data Type
A purchase agreement ID used during the initialization of the purchase order.

Return Value

Type: container
A container that holds the purchase ID and a Boolean value that indicates if a new purchase order was created.

ExceptionCondition
Error

A vendor was not specified.

-or-

A purchase order could not be created, because change management is enabled and required for the vendor.

Community Additions

ADD
Show: