KanbanCacheProcessWorkCache

Kanban Cache Process - Work Cache

Minor Business Rule

Object Name: B3101820

Parent DLL: CMFGBASE

Location: Client/Server

Language: C

Functional Description
Purpose


Cache Kanban Check In Work Cache function performs the cache handling activity related to 

maintaining a work cache that is used by the Kanban Check In Business Functions (Begin Doc, Edit Line, End 

Doc). This cache stores one record per job number and is used to pass information between the 

business functions that comprise Kanban Check In processing.  The parameter Cache Action Code contains 

the value that determines what cache operation(s) are to be performed during the specific call.


Processing 

• CacheKanbanCheckInWorkCache (LPBHVRCOM lpBhvrCom, LPVOID lpVoid, LPDSD3101820A lpDS)

Declare variables:

HUSER hUser = (HUSER) NULL;
HCACHE       idCacheHandle = (HCACHE) NULL;

int iNumberKeys = 0;

short      nSizeOfDataStructure; 

DSD3101820AdsCacheData;

DSD3101820AdsCacheKey;void

void*GenericLPDS;


Save the Suppress Error Message flag.

Save the Action Code.

Save the Number of Keys.


Set the keys for the D3101820A cache.

Get the size of the DSD3101820A.

Call jdeCacheInit


Set nSizeOfDataStructure to the size of the DSD3101820A.

Set iNumberKeys to LpDS->mnNumberKeys;


Call IB3101820_ProcessCacheRequest (lpDS->szCacheActionCode,

  (HUSER) hUser,

  (HCACHE) idCacheHandle,

  &lpDS->idCacheCursor,

  (JDECMINDEXSTRUCT *) Index,

  (void *) lpDS,

  (void *) &dsCacheData,

  (void *) &dsCacheKey,

  (short) iSizeOfDataStructure,

  (int) iNumberKeys,

  (char *) szErrorID);


Restore the Suppress Error Message flag to the Saved Suppress Error Message flag .

Restore the Action Code to the Saved Action Code.

Restore the Number of Keys to the Saved Number of Keys.



Data Structure

D3101820A - Kanban Cache Process - Work Cache

Parameters:
Data Item  Description        I/O   Required  Notes

CACTN         Cache Action Code     I  Yes         '1' - Get '2' - Add '3' - Update '4' - 
Delete

                                                               '5' - Delete All '6' - Get Next 

                                                               '7' - Add/Update '8' - End Cache 

                                                               '9' - Close Cursor

NKEYS         Number of Keys           I  Depends   See Setup Notes and Prerequisites

EV01         Suppress Error Message    I  No         '1' suppresses error messages

DTAI         Error Message ID     O

GENLNG   Cache Cursor              I/O  Depends      Required for Cache Action Code '6'

JOBS         Job Number           I/O  Yes         Index field

VERS         cKanbanVersion           I/O               The version of the Kanban 

                                                               Processing Options (P3157) retrieved.

EV01         cKanbanProcessingMode     I/O

MATH01   mnHoursPerDay           I/O

SRST         szClosedWOStatus     I/O

EV01         cExecuteWOProcessing     I/O

EV01         cPerformBlindHrsQtys     I/O

EV01         cPerformBlindIssues     I/O

EV01         cPerformBlindCompletions  I/O

EV01         cPerformBlindInvTransfers I/O

EV01         cCreatePurchaseOrder     I/O

EV01         cAutoBlanketOrderRelease  I/O

EV01         cCreateEDI862           I/O

ROTP         cDefaultRouteType     I/O

NROU         szDefaultRouteCode     I/O

VERS         szVersionRateHeaderMaint  I/O

VERS         szVersionPartAvailability I/O

VERS         szVersionWOEntry     I/O

VERS         szVersionWOProcessing     I/O

VERS         szVersionOpenOrdersInquiryI/O

VERS         szVersionPOEntry     I/O

VERS         szVersionPOPrint     I/O

VERS         szVersionPOReceipts     I/O

VERS         szVersionSuperBackflush   I/O

VERS         szVersionHoursQtys     I/O

VERS         szVersionIssues     I/O

VERS         szVersionCompletions     I/O

VERS         szVersionSOEntry     I/O

VERS         szVersionInvTransfers     I/O

KID1         mnKanbanID           I/O

CDN         mnDepositNumber     I/O

REPT         cSourceType           I/O

KBTM         cTransferMethod     I/O

TRQT         mnOriginalTransactionQty  I/O         The container's original 

                                                               transaction qty from the Kanban 

                                                               Detail table (KDTRQT)

TRQT         mnEnteredTransactionQty   I/O         The container's original 

                                                               transaction qty passed in by the 

                                                               application which starts out the 

                                                               same as KDTRQT, but the user is 

                                                               allowed to override.

TRQT         mnKanbanTransactionQty    I/O         The Kanban's cumulative transaction 

qty; 

                                                               a sum of all conatiner (F30161) 

transaction 

                                                               quantities.

DCTO         szRateDocumentType     I/O

DOCO         mnKanbanDocumentNo     I/O

DCTO         szKanbanDocumentType

STKT         cStockingType           I/O         From Item Branch (F4102)

TBM         szBillType           I/O

OPC         cOrderPolicyCode     I/O          From Item Branch (F4102)

EV01         cReadyForCheckIn     I/O               Values are: ' ' = not ready 

                                                               '1'= check in container only 

                                                               '2' = check in Kanban

EV01         cExecuteInvTransfers     I/O         Values are: ' ' = don't execute 

                                                               '1' = execute This flag tells the 

                                                               application that inventory transfers 

                                                               must be called (non-blind)

EV01         cCloseRate           I/O         Values are: ' ' = Don't close 

                                                               '1' = Update status to closed

EV01         cKanbanReceipts     I/O         Values are: ' ' = Don't execute 

receipts 

                                                               '1' = Execute receipts


^

Parameter NameData ItemData TypeReq/OptI/O/Both
szCacheActionCodeCACTNcharOPTNONE

A code that indicates the activity you want to perform. Valid codes:     o Get - Retrieve the cache element     o Add - Add a cache element     o 
Update - Update a cache element     o Delete - Delete a cache element     o Delete All - Delete all cache elements     o Get Next - Retrieve the 
next cache element     o Add/Update - Add a cache element if it does not exist; Update a cache element if it does exist     o Terminate - 
Terminate Cache

mnNumberKeysNKEYSMATH_NUMERICOPTNONE

The number of keys in an index that will be used to retrieve, delete, or update a record.

cSuppressErrorMessageEV01charOPTNONE

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

szErrorMessageIDDTAIcharOPTNONE

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.

idCacheCursorGENLNGIDOPTNONE

General purpose ID variable.

mnJobNumberJOBSMATH_NUMERICOPTNONE

The job number (work station ID) which executed the particular job.

szKanbanVersionVERScharOPTNONE

A user-defined set of specifications that control how applications and reports run. You use versions to group and save a set of user-defined 
processing option values and data selection and sequencing options. Interactive versions are associated with applications (usually as a 
menu selection). Batch versions are associated with batch jobs or reports. To run a batch process, you must choose a version.

cKanbanProcessingModeEV01charOPTNONE

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

mnHoursPerDayMATH01MATH_NUMERICOPTNONE

- - - Good Performance Low Value. 

szClosedWOStatusSRSTcharOPTNONE

A user defined code (00/SS) that describes the status of a work order, rate schedule, or engineering change order. Any status change from 
90 through 99  triggers the system to automatically update the completion date.

cCreatePurchaseOrderEV01charOPTNONE

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

cCreateEDI862EV01charOPTNONE

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

cPerformBlindInvTransfersEV01charOPTNONE

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

cExecuteWOProcessingEV01charOPTNONE

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

cPerformBlindCompletionsEV01charOPTNONE

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

cPerformBlindHrsQtysEV01charOPTNONE

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

cPerformBlindIssuesEV01charOPTNONE

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

szVersionRateHeaderMaintVERScharOPTNONE

A user-defined set of specifications that control how applications and reports run. You use versions to group and save a set of user-defined 
processing option values and data selection and sequencing options. Interactive versions are associated with applications (usually as a 
menu selection). Batch versions are associated with batch jobs or reports. To run a batch process, you must choose a version.

szVersionPartAvailabilityVERScharOPTNONE

A user-defined set of specifications that control how applications and reports run. You use versions to group and save a set of user-defined 
processing option values and data selection and sequencing options. Interactive versions are associated with applications (usually as a 
menu selection). Batch versions are associated with batch jobs or reports. To run a batch process, you must choose a version.

szVersionWOEntryVERScharOPTNONE

A user-defined set of specifications that control how applications and reports run. You use versions to group and save a set of user-defined 
processing option values and data selection and sequencing options. Interactive versions are associated with applications (usually as a 
menu selection). Batch versions are associated with batch jobs or reports. To run a batch process, you must choose a version.

szVersionWOProcessingVERScharOPTNONE

A user-defined set of specifications that control how applications and reports run. You use versions to group and save a set of user-defined 
processing option values and data selection and sequencing options. Interactive versions are associated with applications (usually as a 
menu selection). Batch versions are associated with batch jobs or reports. To run a batch process, you must choose a version.

szVersionOpenOrdersInquiryVERScharOPTNONE

A user-defined set of specifications that control how applications and reports run. You use versions to group and save a set of user-defined 
processing option values and data selection and sequencing options. Interactive versions are associated with applications (usually as a 
menu selection). Batch versions are associated with batch jobs or reports. To run a batch process, you must choose a version.

szVersionPOEntryVERScharOPTNONE

A user-defined set of specifications that control how applications and reports run. You use versions to group and save a set of user-defined 
processing option values and data selection and sequencing options. Interactive versions are associated with applications (usually as a 
menu selection). Batch versions are associated with batch jobs or reports. To run a batch process, you must choose a version.

szVersionPOReceiptVERScharOPTNONE

A user-defined set of specifications that control how applications and reports run. You use versions to group and save a set of user-defined 
processing option values and data selection and sequencing options. Interactive versions are associated with applications (usually as a 
menu selection). Batch versions are associated with batch jobs or reports. To run a batch process, you must choose a version.

szVersionPOPrintVERScharOPTNONE

A user-defined set of specifications that control how applications and reports run. You use versions to group and save a set of user-defined 
processing option values and data selection and sequencing options. Interactive versions are associated with applications (usually as a 
menu selection). Batch versions are associated with batch jobs or reports. To run a batch process, you must choose a version.

szVersionSuperBackflushVERScharOPTNONE

A user-defined set of specifications that control how applications and reports run. You use versions to group and save a set of user-defined 
processing option values and data selection and sequencing options. Interactive versions are associated with applications (usually as a 
menu selection). Batch versions are associated with batch jobs or reports. To run a batch process, you must choose a version.

szVersionHoursQtysVERScharOPTNONE

A user-defined set of specifications that control how applications and reports run. You use versions to group and save a set of user-defined 
processing option values and data selection and sequencing options. Interactive versions are associated with applications (usually as a 
menu selection). Batch versions are associated with batch jobs or reports. To run a batch process, you must choose a version.

szVersionIssuesVERScharOPTNONE

A user-defined set of specifications that control how applications and reports run. You use versions to group and save a set of user-defined 
processing option values and data selection and sequencing options. Interactive versions are associated with applications (usually as a 
menu selection). Batch versions are associated with batch jobs or reports. To run a batch process, you must choose a version.

szVersionCompletionsVERScharOPTNONE

A user-defined set of specifications that control how applications and reports run. You use versions to group and save a set of user-defined 
processing option values and data selection and sequencing options. Interactive versions are associated with applications (usually as a 
menu selection). Batch versions are associated with batch jobs or reports. To run a batch process, you must choose a version.

szVersionInvTransfersVERScharOPTNONE

A user-defined set of specifications that control how applications and reports run. You use versions to group and save a set of user-defined 
processing option values and data selection and sequencing options. Interactive versions are associated with applications (usually as a 
menu selection). Batch versions are associated with batch jobs or reports. To run a batch process, you must choose a version.

mnKanbanIDKID1MATH_NUMERICOPTNONE

A unique identifier for the first kanban assigned to an item in a specified branch/plant, consuming location, or supplying location.

mnDepositNumberCDNMATH_NUMERICOPTNONE

A number that uniquely defines a Construction Deposit.

cSourceTypeREPTcharOPTNONE

A code that indicates the type of supplying location for a kanban. Valid values are:    0   DFM Raw and In Process (RIP)    1   Work center    2   
Inventory    3   Supplier     4   Outside Assembly    5   Transfer Order    6   DFM Dual Card

cTransferMethodKBTMcharOPTNONE

A code that indicates the method that the system uses to transfer completed units from the supplying location to the consuming location. 
Valid values are:    1   One-phase transfer. The completion of the kanban and transfer of inventory are performed simultaneously.    2   
Two-phase transfer. The kanban is completed and then the inventory is transferred.

mnOriginalTransactionQtyTRQTMATH_NUMERICOPTNONE

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

mnEnteredTransactionQtyTRQTMATH_NUMERICOPTNONE

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

mnKanbanTransactionQtyTRQTMATH_NUMERICOPTNONE

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

szRateDocumentTypeDCTOcharOPTNONE

A user defined code (00/DT) that identifies the type of document. This code also indicates the origin of the transaction. J.D. Edwards has 
reserved document type codes for vouchers, invoices, receipts, and time sheets, which create automatic offset entries during the post 
program. (These entries are not self-balancing when you originally enter them.) The following document types are defined by J.D. Edwards and 
should not be changed: P Accounts Payable documents   R Accounts Receivable documents   T Payroll documents   I Inventory documents  
O Purchase Order Processing documents   J General Accounting/Joint Interest Billing documents   S Sales Order Processing documents

mnKanbanDocumentNoDOCOMATH_NUMERICOPTNONE

A number that identifies an original document. This document can be a voucher, a sales order, an invoice, unapplied cash, a journal entry, 
and so on.

szKanbanDocumentTypeDCTOcharOPTNONE

A user defined code (00/DT) that identifies the type of document. This code also indicates the origin of the transaction. J.D. Edwards has 
reserved document type codes for vouchers, invoices, receipts, and time sheets, which create automatic offset entries during the post 
program. (These entries are not self-balancing when you originally enter them.) The following document types are defined by J.D. Edwards and 
should not be changed: P Accounts Payable documents   R Accounts Receivable documents   T Payroll documents   I Inventory documents  
O Purchase Order Processing documents   J General Accounting/Joint Interest Billing documents   S Sales Order Processing documents

cStockingTypeSTKTcharOPTNONE

A user defined code (41/I) that indicates how you stock an item, for example, as finished goods or as raw materials. The following stocking 
types are hard-coded and you should not change them:    0   Phantom item    B Bulk floor stock    C Configured item    E Emergency/corrective 
maintenance    F Feature    K Kit parent item    N Nonstock  The first character of Description 2 in the user defined code table indicates if the item 
is purchased (P) or manufactured (M).

cOrderPolicyCodeOPCcharOPTNONE

A code that specifies the rules for inventory reordering in the Requirements Planning and Procurement systems. Valid values are: 0 Reorder 
point (Not planned by MPS/MRP/DRP) 1    Lot-for-lot or as required 2    Fixed order quantity 3 Economic order quantity (EOQ) 4 Periods of 
supply 5 Rate scheduled item Note: These values are hard-coded.

cReadyForCheckInEV01charOPTNONE

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

cExecuteInvTransfersEV01charOPTNONE

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

cCloseRateEV01charOPTNONE

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

cKanbanReceiptsEV01charOPTNONE

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

cExecuteSBFProcessEV01charOPTNONE

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

cExecutePOReceiptsEV01charOPTNONE

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

cExecutePOPrintEV01charOPTNONE

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

cExecutePOEntryEV01charOPTNONE

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

mnP311221BatchNumberICUMATH_NUMERICOPTNONE

A number that identifies a group of transactions that the system processes and balances as a unit. When you enter a batch, you can either 
assign a batch number or let the system assign it using the Next Numbers program.

mnInvTransBatchNumberICUMATH_NUMERICOPTNONE

A number that identifies a group of transactions that the system processes and balances as a unit. When you enter a batch, you can either 
assign a batch number or let the system assign it using the Next Numbers program.

cInvTransBatchStatusEV01charOPTNONE

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

cExecuteWOEntryEV01charOPTNONE

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

mnF4111BatchNumberICUMATH_NUMERICOPTNONE

A number that identifies a group of transactions that the system processes and balances as a unit. When you enter a batch, you can either 
assign a batch number or let the system assign it using the Next Numbers program.

mnF4312BatchNumberICUMATH_NUMERICOPTNONE

A number that identifies a group of transactions that the system processes and balances as a unit. When you enter a batch, you can either 
assign a batch number or let the system assign it using the Next Numbers program.

mnF0911BatchNumberICUMATH_NUMERICOPTNONE

A number that identifies a group of transactions that the system processes and balances as a unit. When you enter a batch, you can either 
assign a batch number or let the system assign it using the Next Numbers program.

cF4312BatchStatusEV01charOPTNONE

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

mnWOPOLineNumberLNIDMATH_NUMERICOPTNONE

A number that identifies multiple occurrences, such as line numbers on a purchase order or other document. Generally, the system assigns 
this number,but in some cases you can override it.

szVersionSOEntryVERScharOPTNONE

A user-defined set of specifications that control how applications and reports run. You use versions to group and save a set of user-defined 
processing option values and data selection and sequencing options. Interactive versions are associated with applications (usually as a 
menu selection). Batch versions are associated with batch jobs or reports. To run a batch process, you must choose a version.

szBillTypeTBMcharOPTNONE

A user defined code (40/TB) that designates the type of bill of material. You can define different types of bills of material for different uses. 
For example:    M     Standard manufacturing bill    RWK   Rework bill    SPR   Spare parts bill  The system enters bill type M in the work order 
header when you create a work order, unless you specify another bill type. The system reads the bill type code on the work order header to 
know which bill of material to use to create the work order parts list. MRP uses the bill type code to identify the bill of material to use when it 
attaches MRP messages. Batch bills of material must be type M for shop floor management, product costing, and MRP processing.

szWOPOCompanyKeyKCOOcharOPTNONE

A number that, along with order number and order type, uniquely identifies an order document (such as a purchase order, a contract, a 
sales order, and so on). If you use the Next Numbers by Company/Fiscal Year facility, the Automatic Next Numbers program (X0010) uses the 
order company to retrieve the correct next number for that company. If two or more order documents have the same order number and order 
type, the order company lets you locate the desired document. If you use the regular Next Numbers facility, the order company is not used to 
assign a next number. In this case, you probably would not use the order company to locate the document.

szOrderSuffixSFXOcharOPTNONE

In the A/R and A/P systems, a code that corresponds to the pay item. In the Sales Order and Procurement systems, this code identifies 
multiple transactions for an original order. For purchase orders, the code is always 000. For sales orders with multiple partial receipts against an 
order, the first receiver used to record receipt has a suffix of 000, the next has a suffix of 001, the next 002, and so on.

mnF4311JobnumberJOBSMATH_NUMERICOPTNONE

The job number (work station ID) which executed the particular job.

mnF0911InvTransBatchNumICUMATH_NUMERICOPTNONE

A number that identifies a group of transactions that the system processes and balances as a unit. When you enter a batch, you can either 
assign a batch number or let the system assign it using the Next Numbers program.

mnF4211JobnumberJOBSMATH_NUMERICOPTNONE

The job number (work station ID) which executed the particular job.

mnF4211DocumentOrderInvoiceDOCOMATH_NUMERICOPTNONE

A number that identifies an original document. This document can be a voucher, a sales order, an invoice, unapplied cash, a journal entry, 
and so on.

szF4211OrderTypeDCTOcharOPTNONE

A user defined code (00/DT) that identifies the type of document. This code also indicates the origin of the transaction. J.D. Edwards has 
reserved document type codes for vouchers, invoices, receipts, and time sheets, which create automatic offset entries during the post 
program. (These entries are not self-balancing when you originally enter them.) The following document types are defined by J.D. Edwards and 
should not be changed: P Accounts Payable documents   R Accounts Receivable documents   T Payroll documents   I Inventory documents  
O Purchase Order Processing documents   J General Accounting/Joint Interest Billing documents   S Sales Order Processing documents

szF4211CompanyKeyOrderNoKCOOcharOPTNONE

A number that, along with order number and order type, uniquely identifies an order document (such as a purchase order, a contract, a 
sales order, and so on). If you use the Next Numbers by Company/Fiscal Year facility, the Automatic Next Numbers program (X0010) uses the 
order company to retrieve the correct next number for that company. If two or more order documents have the same order number and order 
type, the order company lets you locate the desired document. If you use the regular Next Numbers facility, the order company is not used to 
assign a next number. In this case, you probably would not use the order company to locate the document.

cExecuteSalesOrderEntryEV01charOPTNONE

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

cExecuteShipmentConfirmationEV01charOPTNONE

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

szShipConfirmVersionVERScharOPTNONE

A user-defined set of specifications that control how applications and reports run. You use versions to group and save a set of user-defined 
processing option values and data selection and sequencing options. Interactive versions are associated with applications (usually as a 
menu selection). Batch versions are associated with batch jobs or reports. To run a batch process, you must choose a version.

mnShipConfirmJobnumberJOBSMATH_NUMERICOPTNONE

The job number (work station ID) which executed the particular job.

cKanbanReadyEV01charOPTNONE

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

cPerformBlindShipConfirmEV01charOPTNONE

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

mnProcessIDPEIDMATH_NUMERICOPTNONE

A code that identifies the Inter-Process Communication ID.

mnTransactionIDTCIDMATH_NUMERICOPTNONE

szReceivingLocationLOCNcharOPTNONE

The storage location from which goods will be moved.

cAdHocCardExistsEV01charOPTNONE

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

szVersionItemCompletionVERScharOPTNONE

A user-defined set of specifications that control how applications and reports run. You use versions to group and save a set of user-defined 
processing option values and data selection and sequencing options. Interactive versions are associated with applications (usually as a 
menu selection). Batch versions are associated with batch jobs or reports. To run a batch process, you must choose a version.

Related Functions

None

Related Tables

None