Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Creates a PurchAgreementHeader record together with related entities out from a BO header during upgrade.
Syntax
server protected static void createPurchAgreementHeaderFromBO(
PurchTable _oldBlanketOrder,
RefRecId _originatorRecId,
RefRecId _buyingLegalEntityRecId,
PurchAgreementHeader _newPurchAgreementHeader,
AgreementClassification _agreementClassification,
date _effectiveDate,
date _expirationDate,
Map _tableId2FKDataAreaId)
Run On
Server
Parameters
- _oldBlanketOrder
Type: PurchTable Table
A valid buffer that contains BO header fields.
- _originatorRecId
Type: RefRecId Extended Data Type
The record ID of the DirPerson record to use as the originator.
- _buyingLegalEntityRecId
Type: RefRecId Extended Data Type
The record ID from the valid CompanyInfo record to use in a new agreement.
- _newPurchAgreementHeader
Type: PurchAgreementHeader Table
The newly created PurchAgreementHeader record. (OUT)
- _agreementClassification
Type: AgreementClassification Table
The valid instance of the AgreementClassification entity to use in a new agreement.
- _effectiveDate
Type: date
The requested effective date value.
- _expirationDate
Type: date
The requested expiration date value.
- _tableId2FKDataAreaId
Type: Map Class
A map that contains the DataAreaId values to use in foreign keys.
Remarks
Used by upgrade job.