InventTrackingShippedSalesReportDataGen.findOrCreateHeader Method [AX 2012]
Finds or creates the header information for an InventTrackingTmpShippedSalesReportLine record.
Syntax
private InventTrackingTmpShippedSalesReportLine findOrCreateHeader(
ProdId _prodId,
InventTrackingProductType _type,
InventTable _inventTable,
InventDim _inventDim)
Run On
Server
Parameters
- _prodId
Type: ProdId Extended Data Type
Production number to find or create the header information for.
- _type
Type: InventTrackingProductType Enumeration
Determines whether the header pertains to a Traced or Parent item.
- _inventTable
Type: InventTable Table
Inventory record associated with the Traced or Parent item.
- _inventDim
Type: InventDim Table
Inventory dimension associated with the Traced or Parent item.
Return Value
Type: InventTrackingTmpShippedSalesReportLine Table
An InventTrackingTmpShippedSalesReportLine record with the header portion of the record populated.
Remarks
The parameters _type, _inventTable, and _inventDim are only necessary if the header must be created; otherwise, the parameters are ignored.
As headers are subsequentially created, they are stored in a map where the production number serves as the key to that map.