You are here: Development Standards > Routines > Application-SpecificRoutines > APBLDQTY.PUB

# APBLDQTY.PUB

APBLDQTY.PUB is a public program that creates a scratch file from AP Material Requisitions for use by the Inventory Rebuild Item Quantities function.

`0060 ENTER FILE[ALL],PASS$,INQT$,INSN$,INVE$,INLD$,INLS$,MSG$,TASK,OPTION$`

Variable | Description
FILE[ALL] | Standard file array used for the data file channel number
PASS$ | Template array used for the data file channel number
INQT$ | INQTxxx file template (Quantity Totals file)
INSN$ | INSNxxx file template (Serial Numbers file)
INVE$ | INVExxx file template (Item Master file)
INLD$ | INLDxxx file template (Location Detail file)
INLS$ | INLSxxx file template (Transaction Lot/Serial Number file)
MSG$ | Error messages returned to calling program
TASK | 0 = Open Files and prepare scratch file; 1 = Open Files only
OPTION$ | Application specific options and interfaces string

Exit Points | Explanation
EXIT | APBLDQTY.PUB does not return any errors.

The following chart breaks down the PASS$ template.

Field | Description
INVE:N(2*) | Channel number on which the INVEx file is open
INLD:N(2*) | Channel number on which the INLDx file is open
QTSCR:N(2*) | Channel on which the INQTxxx scratch file is open (Quantity Totals file).
SNSCR:N(2*) | Channel on which the INSNxxx scratch file is open (Serial Number file)
ERRSCR:N(2*) | Channel on which the SCRT3.zzz error scratch file is open