You are here: File Descriptions > Accounts Payable > APCMxxx - Requisition Control File

# APCMxxx - Requisition Control File

The Requisition Control file stores one record for each terminal ID that has material requisitions being entered or edited on it. When the material requisition being worked on is exited, the entry for it is removed from this file.

The control record contains the next available material requisition number. It is accessed with a "TKEY" key.

| Template: | DIM APCM:"USRID:C(12*), SRTSQ:C(3*), OTYPE:C(1), TRANS:C(8*), BATCH:C(6*)"
| IOLIST: | 0999 APCMXXX: IOLIST CMKEY$, CMSEQ$, CMORD$, CMBAT$
| String Sizes: | DIM CMKEY$(12), CMSEQ$(3), CMORD$(9), CMBAT$(6)

Key Definitions

| Key Number | Field | Description
| 0 | [1:1:12] + | User ID +
|  | [2:1:3] | Sort Sequence Number
| 1 | [3:1:1] + | Order Type +
|  | [3:2:8] + | Material Requisition Number +
|  | [1:1:12] + | User ID +
|  | [2:1:3] | Sort Sequence Number
| 2 | [4:1:6] + | Batch ID +
|  | [1:1:12] + | User ID +
|  | [2:1:3] | Sort Sequence Number
|  | __________ |
|  | 9 segments |

Requisition Control File

| File Name: | APCMxxx | Record Size: | 34(64)
| File Type: | Mkeyed - Dynamic | Number of Keys: | 3

| Field | Field Name | Variable | Description | A/N | Length | Note
| 1 | USRID | CMKEY$ | User ID | A | 12 |
| 2 | SRTSQ | CMSEQ$ | Sort Sequence Number | A | 3 |
| 3(1,1) | OTYPE | CMORD$(1,1) | Order Type | A | 1 | M = Materal Req.
| 3(2,8) | TRANS | CMORD$(2,8) | Material Requisition Number | A | 8 |
| 4 | BATCH | CMBAT$ | Batch ID | A | 6 |