DeleteCycleCountTransactionRec

Cycle Count Transaction Processing - F4141

Major Business Rule

Object Name: B4100660

Parent DLL: COPBASE

Location: Client/Server

Language: C

Functional Description

Purpose

This function deletes transaction records from the Cycle Count Transaction table (F4141).
 

Setup Notes and Prerequisites

The Cycle Count Number (CYNO), Second Item Number (LITM), Branch/Plant (MCU), Location (LOCN), Lot 

Number (LOTN), Index (CDL) and Keys (CDL) are required input parameters.


Index '1'Keys 1 = Cyno

Keys 2 = Cyno and  litm

Keys 3 = Cyno, litm, and mcu

Keys 4 = Cyno, litm, mcu, and locn

Keys 5 = Cyno, litm, mcu, locn, and lotn

Keys 6 = Cyno, litm, mcu, locn, lotn, and stun


Index '2'Keys 1 = Cyno

Keys 2 = Cyno and  mcu

Keys 3 = Cyno,  mcu, and locn

Keys 4 = Cyno,  mcu, locn, and lotn

Keys 5 = Cyno, mcu, locn, lotn, and stun


Technical Specification


This function deletes the F4141 record for the keys passed in. 


^

Data Structure

D4100660C - Delete Cycle Count Transaction Record

Parameter NameData ItemData TypeReq/OptI/O/Both
mnCycleCountNumberCYNOMATH_NUMERICNONENONE

The unique number the system assigns to identify items you have selected to count as a group. The system generates this number using 
next numbers, system 41, position 5, each time a new cycle count is started.

szSecondItemNumberLITMcharNONENONE

A number that identifies the item. The system provides three separate item numbers plus an extensive cross-reference capability to 
alternative item numbers. The three types of item numbers are: Item Number (short) An 8-digit, computer-assigned item number. 2nd Item Number A 
25-digit, user defined, alphanumeric item number. 3rd Item Number  Another 25-digit, user defined, alphanumeric item number. In addition to 
these three basic item numbers, the system provides an extensive cross-reference search capability. You can define numerous 
cross-references to alternative part numbers. For example, you can define substitute item numbers, replacements, bar codes, customer numbers, or 
supplier numbers.

szBranchPlantMCUcharNONENONE

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.

szLocationLOCNcharNONENONE

The storage location from which goods will be moved.

szLotNumberLOTNcharNONENONE

A number that identifies a lot or a serial number. A lot is a group of items with similar characteristics.

mnStorageUnitNumberSTUNMATH_NUMERICNONENONE

A number that uniquely identifies goods in specific location detail information. Location detail contains a storage unit number if you turn on 
license plate tracking in the Item/UOM Profile (P46011) for the item's level 1  unit of measure. The system assigns a storage unit number to a 
storage unit when it creates a request or suggestion

mnIndexCDLMATH_NUMERICNONENONE

The length of the user defined code. It cannot be greater than 10 characters.

mnKeysCDLMATH_NUMERICNONENONE

The length of the user defined code. It cannot be greater than 10 characters.

cSuppressErrorMessagesEV01charNONENONE

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

szErrorMessageIDDTAIcharNONENONE

A code that identifies and defines a unit of information. It is an alphanumeric code up to 8 characters long that does not allow blanks or 
special characters such as %, &, or +. You create new data items using system codes 55-59. You cannot change the alias.

Related Functions

B0000128 Retrieve Company Currency Code
B0000130 Retrieve Company From Business Unit
B9800100 Get Audit Information
XF41021 Update F41021 Locations
XF4105 Item Cost I/O

Related Tables

F4009 Distribution/Manufacturing Constants
F4141 Cycle Count Transaction File
F4141VerifyQtyForSerialNumber

F4141VerifyQtyForSerialNumber

Cycle Count Transaction Processing - F4141

Major Business Rule

Object Name: B4100660

Parent DLL: COPBASE

Location: Client/Server

Language: C

Functional Description

Purpose

This function verifies the quantity for Serial Numbered items not greater than one for all locations 
with that lot number.


Setup Notes and Prerequisites

The Cycle Count Number (CYNO), Short Item Number (ITM), Branch/Plant (MCU), Lot Number (LOTN), 

Location (LOCN) and Primary Quantity Counted (CNT) are required input parameters.


Technical Specification


This function reads all Cycle Count Transaction records (F4141) for the Cycle Count Number and Lot 

Number passed in.

If a record is found, if the Item, Branch or Location are different than the parameters passed in, 

quantity is accumulated.  If the total quantity accumulated is greater than one, an error is issued.



^

Data Structure

D4100660E - Verify Quantity for Serial Number - F4141

Parameter NameData ItemData TypeReq/OptI/O/Both
mnShortItemNumberITMMATH_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

szLotNumberLOTNcharNONENONE

A number that identifies a lot or a serial number. A lot is a group of items with similar characteristics.

mnPrimaryQuantityCountedTRQTMATH_NUMERICNONENONE

A value that represents the available quantity, which might consist of the on-hand balance minus commitments, reservations, and 
backorders. You enter this value in the Branch/Plant Constants program (P41001).

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).

cSuppressErrorMsgEV01charNONENONE

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

szBranchPlantMCUcharNONENONE

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.

szLocationLOCNcharNONENONE

The storage location from which goods will be moved.

mnCycleCountNumberCYNOMATH_NUMERICNONENONE

The unique number the system assigns to identify items you have selected to count as a group. The system generates this number using 
next numbers, system 41, position 5, each time a new cycle count is started.

Related Functions

B0000128 Retrieve Company Currency Code
B0000130 Retrieve Company From Business Unit
B9800100 Get Audit Information
XF41021 Update F41021 Locations
XF4105 Item Cost I/O

Related Tables

F4009 Distribution/Manufacturing Constants
F4141 Cycle Count Transaction File
VerifyAndGetCycleCountRecord

VerifyAndGetCycleCountRecord

Cycle Count Transaction Processing - F4141

Major Business Rule

Object Name: B4100660

Parent DLL: COPBASE

Location: Client/Server

Language: C

Functional Description

Purpose

This function verifies if a record exists in the Cycle Count Transaction table (F4141).

Setup Notes and Prerequisites

The Cycle Count Number (CYNO), Second Item Number (LITM), Branch/Plant (MCU), Location (LOCN), Lot 

Number (LOTN), Index (CDL), Keys (CDL) and Call Type (EV01) are required input parameters.


Call Type

'1' = If the record is not found, an error is issued.

'2' = If the record is found, an error is issued.


Index '1'Keys 1 = Cyno

Keys 2 = Cyno and  litm

Keys 3 = Cyno, litm, and mcu

Keys 4 = Cyno, litm, mcu, and locn

Keys 5 = Cyno, litm, mcu, locn, and lotn

Keys 6 = Cyno, litm, mcu, locn, lotn, and stun


Index '2'Keys 1 = Cyno

Keys 2 = Cyno and  mcu

Keys 3 = Cyno,  mcu, and locn

Keys 4 = Cyno,  mcu, locn, and lotn

Keys 5 = Cyno, mcu, locn, lotn, and stun


Technical Specification


This function fetches Cycle Count Transaction records based on the index, keys and information passed 

in.  If the record is found and Call Type = '2', an error is issued.  If the record is not found and 

the Call Type = '1', an error is issued.


^

Data Structure

D4100660B - Verify And Get Cycle Count Record

Parameter NameData ItemData TypeReq/OptI/O/Both
mnCycleCountNumberCYNOMATH_NUMERICNONENONE

The unique number the system assigns to identify items you have selected to count as a group. The system generates this number using 
next numbers, system 41, position 5, each time a new cycle count is started.

szSecondItemNumberLITMcharNONENONE

A number that identifies the item. The system provides three separate item numbers plus an extensive cross-reference capability to 
alternative item numbers. The three types of item numbers are: Item Number (short) An 8-digit, computer-assigned item number. 2nd Item Number A 
25-digit, user defined, alphanumeric item number. 3rd Item Number  Another 25-digit, user defined, alphanumeric item number. In addition to 
these three basic item numbers, the system provides an extensive cross-reference search capability. You can define numerous 
cross-references to alternative part numbers. For example, you can define substitute item numbers, replacements, bar codes, customer numbers, or 
supplier numbers.

szBranchPlantMCUcharNONENONE

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.

szLocationLOCNcharNONENONE

The storage location from which goods will be moved.

szLotNumberLOTNcharNONENONE

A number that identifies a lot or a serial number. A lot is a group of items with similar characteristics.

mnStorageUnitNumberSTUNMATH_NUMERICNONENONE

A number that uniquely identifies goods in specific location detail information. Location detail contains a storage unit number if you turn on 
license plate tracking in the Item/UOM Profile (P46011) for the item's level 1  unit of measure. The system assigns a storage unit number to a 
storage unit when it creates a request or suggestion

mnIndexCDLMATH_NUMERICNONENONE

The length of the user defined code. It cannot be greater than 10 characters.

mnKeysCDLMATH_NUMERICNONENONE

The length of the user defined code. It cannot be greater than 10 characters.

cCallTypeEV01charNONENONE

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

cSuppressErrorMessageEV01charNONENONE

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

szErrorMessageIDDTAIcharNONENONE

A code that identifies and defines a unit of information. It is an alphanumeric code up to 8 characters long that does not allow blanks or 
special characters such as %, &, or +. You create new data items using system codes 55-59. You cannot change the alias.

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).

mnQtyOnHandPQOHMATH_NUMERICNONENONE

The number of units that are physically in stock. The system displays the quantity on-hand in the primary unit of measure.

mnSecondaryQtyOnHandSQOHMATH_NUMERICOPTNONE

The number of units on hand in secondary units of measure.

Related Functions

B0000128 Retrieve Company Currency Code
B0000130 Retrieve Company From Business Unit
B9800100 Get Audit Information
XF41021 Update F41021 Locations
XF4105 Item Cost I/O

Related Tables

F4009 Distribution/Manufacturing Constants
F4141 Cycle Count Transaction File
VerifyDuplicateLotsInCycleCount

VerifyDuplicateLotsInCycleCount

Cycle Count Transaction Processing - F4141

Major Business Rule

Object Name: B4100660

Parent DLL: COPBASE

Location: Client/Server

Language: C

^

Data Structure

D4100660D - Verify Duplicate Lot In Cycle Count

Parameter NameData ItemData TypeReq/OptI/O/Both
szSecondItemNumberLITMcharNONENONE

A number that identifies the item. The system provides three separate item numbers plus an extensive cross-reference capability to 
alternative item numbers. The three types of item numbers are: Item Number (short) An 8-digit, computer-assigned item number. 2nd Item Number A 
25-digit, user defined, alphanumeric item number. 3rd Item Number  Another 25-digit, user defined, alphanumeric item number. In addition to 
these three basic item numbers, the system provides an extensive cross-reference search capability. You can define numerous 
cross-references to alternative part numbers. For example, you can define substitute item numbers, replacements, bar codes, customer numbers, or 
supplier numbers.

szBranchPlantMCUcharNONENONE

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.

szLotNumberLOTNcharNONENONE

A number that identifies a lot or a serial number. A lot is a group of items with similar characteristics.

cAllowDuplicateLotsULOTcharNONENONE

A code that determines whether the system can assign the same lot to multiple items. Valid values are:    1   Do not allow duplicate lots. The 
lot is restricted to one item and one branch/plant.    2   Allow duplicate lots. You can create a lot that contains multiple items and 
branch/plants.    3   Do not allow duplicate lots. The lot is restricted to one item, but can contain quantities in multiple branch/plants.

cSuppressErrorMessageEV01charNONENONE

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

szErrorMessageIDDTAIcharNONENONE

A code that identifies and defines a unit of information. It is an alphanumeric code up to 8 characters long that does not allow blanks or 
special characters such as %, &, or +. You create new data items using system codes 55-59. You cannot change the alias.

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).

Related Functions

B0000128 Retrieve Company Currency Code
B0000130 Retrieve Company From Business Unit
B9800100 Get Audit Information
XF41021 Update F41021 Locations
XF4105 Item Cost I/O

Related Tables

F4009 Distribution/Manufacturing Constants
F4141 Cycle Count Transaction File
WriteCycleCountTransaction

WriteCycleCountTransaction

Cycle Count Transaction Processing - F4141

Major Business Rule

Object Name: B4100660

Parent DLL: COPBASE

Location: Client/Server

Language: C

Functional Description

Purpose

To write transaction records to the Cycle Count Transaction table (F4141).
 

Setup Notes and Prerequisites

The Item Number (ITM), Branch/Plant (MCU), Location (LOCN), Lot Number (LOTN), Inventory Cost Level 

(CLEV), Second Item Number (LITM), Third Item Number (AITM), Sales Codes 1 - 5 (SRP1 - 5), G/L Class 

Code (GLPT) and Cycle Count Number (CYNO) are required input parameters.


If the UpdateQtyFlag = '1', update the total amount only.

If the UpdateQtyFlag = '2', update the total quantity counted only.

If the UpdateQtyFlag = '3', update both quantities.

If the UpdateQtyFlag = '4', update total quantity counted and total amount.


If the parameter VoidGetItemCost = '1', the Item Cost will not be retrieved.


Technical Specification


This function retrieves the cost from the Item Cost table (F4105) if the VoidGetItemCost parameter NE 

'1'.  If the record is not found, the primary location cost is retrieved.    



^

Data Structure

D4100660A - Write Cycle Count Transaction

Parameter NameData ItemData TypeReq/OptI/O/Both
mnShortItemNumberITMMATH_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

szBranchPlantMCUcharNONENONE

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.

szLocationLOCNcharNONENONE

The storage location from which goods will be moved.

szLotNumberLOTNcharNONENONE

A number that identifies a lot or a serial number. A lot is a group of items with similar characteristics.

cCostLevelCLEVcharNONENONE

A code that indicates whether the system maintains one overall inventory cost for the item, a different cost for each branch/plant, or a 
different cost for each location and lot within a branch/plant. The system maintains inventory costs in the Inventory Cost table (F4105). Valid codes 
are:    1   Item level    2   Item/Branch level    3   Item/Branch/Location level

mnQtyOnHandPQOHMATH_NUMERICNONENONE

The number of units that are physically in stock. The system displays the quantity on-hand in the primary unit of measure.

szSecondItemNumberLITMcharNONENONE

A number that identifies the item. The system provides three separate item numbers plus an extensive cross-reference capability to 
alternative item numbers. The three types of item numbers are: Item Number (short) An 8-digit, computer-assigned item number. 2nd Item Number A 
25-digit, user defined, alphanumeric item number. 3rd Item Number  Another 25-digit, user defined, alphanumeric item number. In addition to 
these three basic item numbers, the system provides an extensive cross-reference search capability. You can define numerous 
cross-references to alternative part numbers. For example, you can define substitute item numbers, replacements, bar codes, customer numbers, or 
supplier numbers.

szThirdItemNumberAITMcharNONENONE

The system provides three separate item numbers plus an extensive cross-reference capability to alternate item numbers. These item 
numbers are as follows: 1.  Item Number (short) - An 8-digit, computer-assigned item number. 2.  2nd Item Number - The 25-digit, free-form, user 
defined alphanumeric item number. 3.  3rd Item Number - Another 25-digit, free-form, user defined alphanumeric item number.  In addition to 
these three basic item numbers, an extensive cross-reference search capability has been provided (see XRT). Numerous cross references to 
alternate part numbers can be user defined, such as substitute item numbers, replacements, bar codes, customer numbers, or supplier 
numbers.

szSalesCode1SRP1charNONENONE

One of ten category codes for sales coding purposes. These codes can represent such classifications as color, material content, or use.

szSalesCode2SRP2charNONENONE

One of ten category codes for sales coding purposes. These codes can represent such classifications as color, material content, or 
use. This field represents one of ten property type categories available for sales purposes.

szSalesCode3SRP3charNONENONE

One of ten category codes for sales coding purposes. These codes can represent such classifications as color, material content, or use.

szSalesCode4SRP4charNONENONE

One of ten category codes to be used for sales coding purposes. These codes can represent such classifications as color, material 
content, or use.

szSalesCode5SRP5charNONENONE

One of ten category codes to be used for sales coding purposes.  These codes can represent such classifications as color, material 
content, or use.

szGLCategoryGLPTcharNONENONE

A user defined code (41/9) that identifies the G/L offset that system uses when it searches for the account to which it posts the transaction. If 
you do not want to specify a class code, you can enter **** (four asterisks) in this field. You can use automatic accounting instructions (AAIs) to 
predefine classes of automatic offset accounts for the Inventory Management, Procurement, and Sales Order Management systems. You 
might assign G/L class codes as follows:    IN20   Direct Ship Orders    IN60   Transfer Orders    IN80   Stock Sales  The system can generate 
accounting entries based upon a single transaction. For example, a single sale of a stock item can trigger the generation of accounting entries 
similar to the following:         Sales-Stock (Debit) xxxxx.xx     A/R Stock Sales (Credit) xxxxx.xx     Posting Category: IN80             Stock Inventory 
(Debit) xxxxx.xx     Stock COGS (Credit) xxxxx.xx The system uses the class code and the document type to find the AAI.

cCurrencyFlagEV01charNONENONE

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

mnCycleCountNumberCYNOMATH_NUMERICNONENONE

The unique number the system assigns to identify items you have selected to count as a group. The system generates this number using 
next numbers, system 41, position 5, each time a new cycle count is started.

szProgramIDPIDcharNONENONE

The number that identifies the batch or interactive program (batch or interactive object). For example, the number of the Sales Order Entry 
interactive program is P4210, and the number of the Print Invoices batch process report is R42565. The program ID is a variable length value. 
It is assigned according to a structured syntax in the form TSSXXX, where: T The first character of the number is alphabetic and identifies the 
type, such as P for Program, R for Report, and so on. For example, the value P in the number P4210 indicates that the object is a 
program. SS The second and third characters of the number are numeric and identify the system code. For example, the value 42 in the number P4210 
indicates that this program belongs to system 42, which is the Sales Order Processing system. XXX The remaining characters of the numer are 
numeric and identify a unique program or report. For example, the value 10 in the number P4210 indicates that this is the Sales Order Entry 
program.

mnStorageUnitNumberSTUNMATH_NUMERICNONENONE

A number that uniquely identifies goods in specific location detail information. Location detail contains a storage unit number if you turn on 
license plate tracking in the Item/UOM Profile (P46011) for the item's level 1  unit of measure. The system assigns a storage unit number to a 
storage unit when it creates a request or suggestion

mnTotalQtyCountedTQCTMATH_NUMERICNONENONE

The total quantity counted for the item in all locations.

cUpdateQtyFlagEV01charNONENONE

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

cSuppressErrorMessageEV01charNONENONE

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

szErrorMessageIDDTAIcharNONENONE

A code that identifies and defines a unit of information. It is an alphanumeric code up to 8 characters long that does not allow blanks or 
special characters such as %, &, or +. You create new data items using system codes 55-59. You cannot change the alias.

szCountedByCNTBcharNONENONE

The name of the individual responsible for the quantities as entered on the cycle count sheets.

jdDateCountedCNTJJDEDATENONENONE

The date inventory belonging to a cycle code was initially counted during the current count procedure.

cCycleCountCodeCCCDcharNONENONE

This code indicates which locations display on the screen. Valid values are:    1       Display locations that have been entered    2       Display 
locations that have been updated by the Cycle Count Update program    *       Display all locations    blank Display locations that have not 
been entered

mnTotalAmountCountedTACTMATH_NUMERICNONENONE

The total quantity in primary units which has been counted for a specific cycle count category during a single count cycle.  This physical 
count will be compared with the total expected on hand for all items belonging to this cycle count category to produce a variance.

cVoidGetItemCostEV01charNONENONE

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

mnUnitCostUNCSMATH_NUMERICNONENONE

The amount per unit, derived by dividing the total cost by the unit quantity.

mnSecondaryQtyOnHandSQOHMATH_NUMERICOPTNONE

The number of units on hand in secondary units of measure.

mnTotalSecondaryQtyCountedSQORMATH_NUMERICOPTNONE

If the secondary unit of measure option in Inventory Constants is selected,this field will display on data entry screens.

Related Functions

B0000128 Retrieve Company Currency Code
B0000130 Retrieve Company From Business Unit
B9800100 Get Audit Information
XF41021 Update F41021 Locations
XF4105 Item Cost I/O

Related Tables

F4009 Distribution/Manufacturing Constants
F4141 Cycle Count Transaction File