CommitMultiplesAuditHistory

Insert Purchase Ledger

Minor Business Rule

Object Name: X43199

Parent DLL: CDIST

Location: Client/Server

Language: C

Data Structure

DX43199B - Commit Multiple Accounts Audit History Records

Parameter NameData ItemData TypeReq/OptI/O/Both
szErrorMessageID_DTAIDTAIcharOPTNONE

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.

idF4311Pointer_GENLNGGENLNGIDOPTNONE

General purpose ID variable.

szOrderCompany_KCOOKCOOcharOPTNONE

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.

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

szOrderType_DCTODCTOcharOPTNONE

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

szOrderSuffix_SFXOSFXOcharOPTNONE

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.

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

mnCacheJobnumber_JOBSJOBSMATH_NUMERICOPTNONE

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

szCacheComputerID_CTIDCTIDcharOPTNONE

mnCacheProcessID_PEIDPEIDMATH_NUMERICOPTNONE

A code that identifies the Inter-Process Communication ID.

mnCacheTransactionID_TCIDTCIDMATH_NUMERICOPTNONE

cMode_EV01EV01charOPTNONE

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

cSuppressError_EV01EV01charOPTNONE

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

cWriteLedger_EV01EV01charOPTNONE

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

cF4316Mode_EV01EV01charOPTNONE

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

szCallingApplicationPIDcharOPTNONE

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

None

Related Tables

F43199 P.O. Detail Ledger File - Flexible Version
InsertPurchaseLedger

InsertPurchaseLedger

Insert Purchase Ledger

Major Business Rule

Object Name: X43199

Parent DLL: CDIST

Location: Client/Server

Language: C

Functional Description

Purpose


Insert a row into the Purchase Ledger Table (F43199).  A pointer to a data structure is used to 

access the information to be inserted into the table.


Technical Specification



Edits:

Genlng is not equal to NULL. If yes then exit.

F43199 Table request successful.  If not, then error 3143 and exit.


Request for all columns of the table.


Move the following information into the table columns just before update

CallingApplication into PID

UserID into USER

WorkstationIDinto JOBN

CurrentDateinto UPMJ

CurrentTimeinto TDAY

LedgerTypeinto LT



Copy input structure into the F43199 data structure and insert the record.



Data Structure

DX43199 - Insert Purchase Ledger

Parameter NameData ItemData TypeReq/OptI/O/Both
szCallingApplicationPIDcharNONENONE

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.

szUserIDUSERcharNONENONE

The code that identifies a user profile.

szWorkstationIDJOBNcharNONENONE

The code that identifies the work station ID that executed a particular job.

jdCurrentDateUPMJJDEDATENONENONE

The date that specifies the last update to the file record.

mnCurrentTimeUPMTMATH_NUMERICNONENONE

The time that specifies when the program executed the last update to this record.

idPointerToF43199DSGENLNGIDNONENONE

General purpose ID variable.

szLedgerTypeLTcharNONENONE

A user defined code (09/LT) that specifies the type of ledger, such as AA (Actual Amounts), BA (Budget Amount), or AU (Actual Units). You 
can set up multiple, concurrent accounting ledgers within the general ledger to establish an audit trail for all transactions.

cActionCodeACTNcharOPTNONE

A code that specifies the action that is performed. Valid values are: A Add C Change

Related Functions

None

Related Tables

F43199 P.O. Detail Ledger File - Flexible Version
PopulateF43199FromF4311AndF4316

PopulateF43199FromF4311AndF4316

Insert Purchase Ledger

Minor Business Rule

Object Name: X43199

Parent DLL: CDIST

Location: Client/Server

Language: C

Data Structure

DX43199C - Populate F43199 Structure From F4311 and F4316 Structures

Parameter NameData ItemData TypeReq/OptI/O/Both
szErrorMessageID_DTAIDTAIcharOPTNONE

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.

idF4311PointerGENLNGIDOPTNONE

General purpose ID variable.

idF4316PointerGENLNGIDOPTNONE

General purpose ID variable.

idF43199PointerGENLNGIDOPTNONE

General purpose ID variable.

cMode_EV01EV01charOPTNONE

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

cSuppressError_EV01EV01charOPTNONE

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

Related Functions

None

Related Tables

F43199 P.O. Detail Ledger File - Flexible Version
StoreF4316ToAuditHistoryCache

StoreF4316ToAuditHistoryCache

Insert Purchase Ledger

Minor Business Rule

Object Name: X43199

Parent DLL: CDIST

Location: Client/Server

Language: C

Data Structure

DX43199A - StoreF4316ToAuditHistoryCache

Parameter NameData ItemData TypeReq/OptI/O/Both
cMode_EV01EV01charOPTNONE

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

cSuppressError_EV01EV01charOPTNONE

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

szErrorMessageID_DTAIDTAIcharOPTNONE

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.

idF4316TableStructurePointerGENLNGIDOPTNONE

General purpose ID variable.

mnJobnumber_JOBSJOBSMATH_NUMERICOPTNONE

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

szComputerID_CTIDCTIDcharOPTNONE

mnProcessID_PEIDPEIDMATH_NUMERICOPTNONE

A code that identifies the Inter-Process Communication ID.

mnTransactionID_TCIDTCIDMATH_NUMERICOPTNONE

Related Functions

None

Related Tables

F43199 P.O. Detail Ledger File - Flexible Version