MaintainPhantomLinkList

Maintain Phantom Link List

Major Business Rule

Object Name: B3100920

Parent DLL: CMFGBASE

Location: Client/Server

Language: C

1.Functional Description

1.1Purpose
This function maintains a link list which contains phantom items, branch/plant, and quantity.

1.2Setup Notes and Prerequisites

None.

1.3Special Logic

None.

2.Technical Specifications


2.4Processing 


If  MODE ='1' (add),

If GENLNG is null,
CreateLinkList
End If

AddLinkListItem (to the end of the array) using the input parameters (ITM, MCU, UORG1, UORG2)

End If


If MODE = '2' (retrieve),

If Retrieve First Item = '1',

GetFirstListItem, and return the ITM, MCU, UORG1, UORG2, and GENLNG
Retrieve First Item = '0'

Else

GetNextListItem, and return the ITM, MCU, UORG1, UORG2, and GENLNG
End If



If MODE = '3' (delete),

DestroyLinkList

End If


If errors occur during processing, move '1' to ERRC.

Note that the Retrieve First Item value returned by the business function during the first read 

must be stored in the calling application and passed in over and over again during subsequent reads.


^

Data Structure

D3100920 - Maintain Phantom Link List

Parameter NameData ItemData TypeReq/OptI/O/Both
idPhantomLinkedListPtrGENLNGIDNONENONE

General purpose ID variable.

cModeMODEcharNONENONE

The processing mode used in Purchase Order Consolidator to signify when specific orders are being processed.

mnPhantomItemNumberITMMATH_NUMERICNONENONE

An inventory item number. The system provides three separate item numbers plus an extensive cross-reference capability to other item 
numbers (see data item XRT) to accommodate substitute item numbers, replacements, bar codes, customer numbers, supplier numbers, and 
so forth. The item numbers are as follows:   o Item Number (short) - An eight-digit, computer-assigned item number     o 2nd Item Number - The 
25-digit, free-form, user defined alphanumeric item number     o 3rd Item Number - Another 25-digit, free-form, user defined alphanumeric item 
number

szPhantomBranchPlantMCUcharNONENONE

An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit 
might be a warehouse location, job, project, work center, branch, or plant. You can assign a business unit to a document, entity, or person for 
purposes of responsibility reporting. For example, the system provides reports of open accounts payable and accounts receivable by 
business unit to track equipment by responsible department. Business unit security might prevent you from viewing information about business units 
for which you have no authority.

cErrorCodeERRCcharNONENONE

This error code indicates if any errors occurred during the creation of the Trip Document Detail (F4914) records by the Delivery Document 
Set Server program (XT4914).

cRetrieveFirstItemEV01charNONENONE

An option that specifies the type of processing for an event.

mnPhantomQtyUnadjustedUORGMATH_NUMERICNONENONE

The quantity of units affected by this transaction.

mnPhantomQtyAdjustedUORGMATH_NUMERICNONENONE

The quantity of units affected by this transaction.

Related Functions

None

Related Tables

None