BatchOpenOnInitialization

Batch - Open On Initialization

Major Business Rule

Object Name: B0000004

Parent DLL: CALLBSFN

Location: Client/Server

Language: C

Functional Description

Purpose


Setup Notes and Prerequisites


Special Logic




Technical Specification



Functional Description


Purpose


Setup Notes and Prerequisites


Special Logic




Technical Specification




Functional Description


Purpose

This function is used to open a batch.


Technical Specification


• Fetch F0011 Batch Header
• If F0011 record does not exist
• 

Set Flag to Add Mode
• Else
• 
Set Flag to Change Mode
• Set Batch in Use
• Endif
• Determine constants for Batch Processing
• If Cancel was pressed
• 
Reset Batch Status and Exit
• Else
• 
If batch exists
• 
Update Batch
• 
Else
• 
Add record
• 
Endif
• Endif

Data Structure

D0000004 - Batch - Open On Initialization


^

Parameter NameData ItemData TypeReq/OptI/O/Both
szBatchTypeICUTcharNONENONE

Special Input Expected
This function requires a non-blank Batch Type.

^

mnBatchNumberICUMATH_NUMERICNONENONE

Special Input Expected
If creating a new batch, pass a "0" in this parameter.  If you want to open an existing batch, pass 

the specific Batch Number in this parameter.  If the batch exists, the batch will be set "In Use".  If 

the batch does not exist, the batch will be created, and then set "In Use".


Special Output Returned

The Batch Number used to open/create the batch will be passed back in this parameter.

^

cPreviousBatchStatusISTcharNONENONE

Special Output Returned
This parameter will be blank if the batch is being created.  If the batch already existed, the Batch 

Status when it was opened will be passed back.  Save off this value in your ER or function and use it 

with the other Batches functions if you wish to reset the Batch Status back to the original Batch 

Status.

^

cPostOutOfBalancePOBcharNONENONE

Special Output Returned
This parameter will have the value stored in the batch when opened if the batch already existed.  If 

the batch is being created the value will be "N".

^

cFLAGSuppressBatchControlEV01charNONENONE


^

jdBatchDateDICJJDEDATENONENONE

Special Input Expected
If you want to force a specific Batch Date pass it in this parameter.  If left blank, the current 

System Date will be defaulted.


Special Output Returned

This parameter will have the Batch Date used.

^

cBatchControlCancelFlagEV01charNONENONE

Special Output Returned
This parameter will have a "1" in it if the user clicked the "Cancel" button or a "0" if the user 

clicked the "OK" button on the Batch Control form.  If the value is a "1", this should be acted upon by 

the calling program to click it's own "Cancel" button.

^

Related Functions

None

Related Tables

F0011 Batch Control Records
F41001 Inventory Constants