GetCycleCountHeader

Cycle Count Header Functions

Major Business Rule

Object Name: B4100650

Parent DLL: COPBASE

Location: Client/Server

Language: C

Functional Description

Purpose

This function writes/updates records to the Cycle Count Header table (F4140) for the Cycle Count 
process.


Special Logic

The Cycle Count Number (CYNO) will be generated if one is not passed in.


Technical Specification


This function calls the business function Get Next Document Number (B4000710) to get the next cycle 

count number if one is not passed in.  A Cycle Count Header record is written with the Cycle Count 

Description passed in.


If a cycle count number is passed in, the Cycle Count Header record is retrieved and the Cycle Count 

Item (CYIT) and Cycle Count Location (CYLO) are updated to the F4140.


^

Data Structure

D4100650A - Get Cycle Count Header

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.

szCycleCountDescriptionDSC1charNONENONE

Brief information about an item; a remark or an explanation.

szCycleStatusCYCScharNONENONE

The user defined code (system 41, type CS) that defines the last step accomplished for a cycle count code.  For example, the code may 
designate that the cycle has begun and the entry of the physical count is pending, or that the count has been entered, discrepancy reports have 
been generated and the final update is pending.

Related Functions

B4000710 Get Next Document Number
B9800100 Get Audit Information

Related Tables

F4140 Cycle Count Header File
UpdateCycleCountHeaderStatus

UpdateCycleCountHeaderStatus

Cycle Count Header Functions

Major Business Rule

Object Name: B4100650

Parent DLL: COPBASE

Location: Client/Server

Language: C

Functional Description

Purpose

This function updates the Cycle Count Header table (F4140) with the Cycle Count Status.

Setup Notes and Prerequisites

The Cycle Count Number (CYNO), Cycle Count Status (CYCS) and Program Id (PID) are required input 

parameters.


Technical Specification


This function fetches the Cycle Count Header table with the Cycle Count Number passed in and updates 

the Cycle Count Status field with the value passed in.

^

Data Structure

D4100650B - Update Cycle Count Header

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.

szCycleStatusCYCScharNONENONE

The user defined code (system 41, type CS) that defines the last step accomplished for a cycle count code.  For example, the code may 
designate that the cycle has begun and the entry of the physical count is pending, or that the count has been entered, discrepancy reports have 
been generated and the final update is pending.

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.

Related Functions

B4000710 Get Next Document Number
B9800100 Get Audit Information

Related Tables

F4140 Cycle Count Header File
WriteCycleCountHeader

WriteCycleCountHeader

Cycle Count Header Functions

Major Business Rule

Object Name: B4100650

Parent DLL: COPBASE

Location: Client/Server

Language: C

Functional Description

Purpose

This function retrieves the Cycle Count Description and Cycle Count Status from the Cycle Count 
Header table (F4140).


Setup Notes and Prerequisites

The Cycle Count Number (CYNO) is a required input parameter.


Technical Specification


This function fetches the Cycle Count Header table with the Cycle Count Number passed in and returns 

the Cycle Count Description and Cycle Count Status.


Data Structure

D4100650C - Write Cycle Count Header 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.

szCycleCountDescriptionDSC1charNONENONE

Brief information about an item; a remark or an explanation.

mnCycleCountItemCYITMATH_NUMERICNONENONE

The total number of Items selected by the Select Items for Count process (P41411) for the cycle count.

mnCycleCountLocationCYLOMATH_NUMERICNONENONE

The total number of locations that were selected by the Select Items for count process (P41411) for a particular cycle count.

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.

Related Functions

B4000710 Get Next Document Number
B9800100 Get Audit Information

Related Tables

F4140 Cycle Count Header File