CreateAuditLogAndGetOriginalInfo

Create Audit Log And Get Original Info

Minor Business Rule

Object Name: B4202300

Parent DLL: CDIST

Location: Client/Server

Language: C

Data Structure

D4202300 - Create Audit Log And Get Original Info

Parameter NameData ItemData TypeReq/OptI/O/Both
cSuppressErrorMessageSUPPScharOPTINPUT

A flag indicating whether or not runtime error messaging will occur when an error message is issued from a business function.        0 = allow 
runtime error message handling.        1 = suppress runtime error message handling.

szErrorMessageIDDTAIcharOPTOUTPUT

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.

idF42UI11PointerGENLNGIDREQINPUT

General purpose ID variable.

mnUnitsTransactionQtyUORGMATH_NUMERICOPTBOTH

The quantity of units affected by this transaction.

mnAmtPricePerUnit2UPRCMATH_NUMERICOPTBOTH

The list or base price to be charged for one unit of this item. In sales order entry, all prices must be set up in the Item Base Price File table 
(F4106).

mnAmountExtendedPriceAEXPMATH_NUMERICOPTBOTH

The number of units multiplied by the unit price.

mnAmtForPricePerUnitFUPMATH_NUMERICOPTBOTH

The foreign price per unit.

mnAmountForeignExtPriceFEAMATH_NUMERICOPTBOTH

The product of the foreign price times the number of units.

jdDateRequestedJulianDRQJJDEDATEOPTBOTH

The date that an item is scheduled to arrive or that an action is scheduled for completion.

jdDateReleaseJulianRSDJJDEDATEOPTBOTH

The date an item will be delivered to the customer.

szPaymentTermsCode01PTCcharOPTBOTH

A code that specifies the terms of payment, including the percentage of discount available if the invoice is paid by the discount due date. 
Use a blank code to indicate the most frequently-used payment term. You define each type of payment term on the Payment Terms Revisions 
form. Examples of payment terms include: Blank Net 15 001      1/10 net 30 002      2/10 net 30 003      Due on the 10th day of every month 006     
Due upon receipt  This code prints on customer invoices.

idF42UI12PointerGENLNGIDREQINPUT

General purpose ID variable.

szGlClassGLPTcharOPTBOTH

A user defined code (41/9) that identifies the G/L offset that system uses when it searches for the account to which it posts the transaction. If 
you do not want to specify a class code, you can enter **** (four asterisks) in this field. You can use automatic accounting instructions (AAIs) to 
predefine classes of automatic offset accounts for the Inventory Management, Procurement, and Sales Order Management systems. You 
might assign G/L class codes as follows:    IN20   Direct Ship Orders    IN60   Transfer Orders    IN80   Stock Sales  The system can generate 
accounting entries based upon a single transaction. For example, a single sale of a stock item can trigger the generation of accounting entries 
similar to the following:         Sales-Stock (Debit) xxxxx.xx     A/R Stock Sales (Credit) xxxxx.xx     Posting Category: IN80             Stock Inventory 
(Debit) xxxxx.xx     Stock COGS (Credit) xxxxx.xx The system uses the class code and the document type to find the AAI.

mnUnitsQuanBackorHeldSOBKMATH_NUMERICOPTNONE

The number of units backordered in Sales Order Management or in Work Order Processing, using either the entered or the primary unit of 
measure defined for this item.

mnUnitsQuantityShippedSOQSMATH_NUMERICOPTNONE

The number of units committed for shipment in Sales Order Entry, using either the entered or the primary unit of measure defined for this 
item. In the Manufacturing system and Work Order Time Entry, this field can indicate completed or scrapped quantities. The quantity type is 
determined by the type code entered.

mnUnitsQuantityCanceledSOCNMATH_NUMERICOPTNONE

The number of units canceled in Sales Order or Work Order Processing, using either the entered or the primary unit of measure defined for 
this item. In manufacturing, this can also be the number of units scrapped to date.

mnUnitsPrimaryQtyOrderPQORMATH_NUMERICOPTNONE

The quantity ordered by the customer expressed in the primary stocking unit of measure.

mnUnitsSecondaryQtyOrSQORMATH_NUMERICOPTNONE

If the secondary unit of measure option in Inventory Constants is selected,this field will display on data entry screens.

mnUnitsQuantityFutureSONEMATH_NUMERICOPTNONE

The number of inventory units tentatively committed to this order line. Such tentative commitment may occur through the use of Blanket 
Orders, where you have agreed to sell a specified quantity of an item but the delivery date or dates are unknown at the time of the order.  The 
contents of this field will typically have an impact, not on the Committed or On Sales Order fields shown on various screens, but more likely on 
such fields as Quantity 1 or Quantity 2  as shown on the Availability screen (exit from Branch Inventory).

mnUnitsOpenQuantityUOPNMATH_NUMERICOPTNONE

The original quantity for the order detail line, plus or minus any changes to that quantity, minus all quantities shipped, received, and 
vouchered to date.

mnAmountUnitWeightITWTMATH_NUMERICOPTNONE

The weight of one unit of an item, expressed in the primary unit of measure.

mnAmountUnitVolumeITVLMATH_NUMERICOPTNONE

The cubic units occupied by one inventory item. The definition of the unit itself (cubic feet, yards, meters, and so on) is defined in the volume 
unit of measure.

mnGrossWeightGRWTMATH_NUMERICOPTNONE

Essentially a memo field at present, this value is intended to reflect the fact that many inventory items are always packaged in the same 
way for shipment to the customer.  This packaging in turn effectively adds to the shipment weight for the item.  Since much of the mainstream 
freight calculations depend upon a weight basis for their accuracy, the ability to store a gross weight which reflects the estimated additional 
weight of standard packaging was deemed to be a worthwhile enhancement. (Future Use)

szTransactionUOMUOMcharOPTNONE

A user defined code (00/UM) that indicates the quantity in which to express an inventory item, for example, CS (case) or BX (box).

szSecondaryUOMUOM2charOPTNONE

A user defined code (00/UM) that indicates an alternate unit of measure for the item.

mnUnitsSecondaryQtySQORMATH_NUMERICOPTNONE

If the secondary unit of measure option in Inventory Constants is selected,this field will display on data entry screens.

mnAmountUnitCostUNCSMATH_NUMERICOPTNONE

The amount per unit, derived by dividing the total cost by the unit quantity.

mnAmountForeignUnitCostFUCMATH_NUMERICOPTNONE

Amount - Foreign Unit Cost

mnAmountExtendedCostECSTMATH_NUMERICOPTNONE

For accounts receivable and accounts payable, the invoice (gross) amount. For sales orders and purchase orders, the unit cost times the 
number of units.

mnAmountForeignExtCostFECMATH_NUMERICOPTNONE

The product of the cost of an item, expressed in foreign currency according to the orders exchange rate, times the number of units.

Related Functions

None

Related Tables

F4211 Sales Order Detail File
F42420 Audit Log Transaction