SWMAdvancedPriceHistoryCache

S/WM Price Adjustment History Cache

Minor Business Rule

Object Name: B1702540

Parent DLL: CCRIN

Location: Client/Server

Language: C

1.Functional Description

1.1Purpose

This Business function is a cache for the price adjustment history records processed in the Service and Warranty Management system.


This cache is used when creating service order invoice records (F4812).  The GL class code and the price of the adjustment line are needed for proper 

recording of the adjustment in the General Ledger.


Data Structure

D1702540 - S/WM Advanced Pricing Cache

Parameter NameData ItemData TypeReq/OptI/O/Both
mnCacheJobNumber_JOBSJOBSMATH_NUMERICREQNONE

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

cCacheActionCode_ACTNACTNcharREQNONE

1 = GET
2 = ADD

3 = UPDATE

4 = DELETE

5 = DELETE ALL

6 = GET NEXT

7 = ADD/UPDATE

8 = TERMINATE CACHE

9 = CLOSE CURSOR


cErrorCode_ERRCERRCcharOPTNONE

This error code indicates if any errors occurred during the creation of the Trip Document Detail (F4914) records by the Delivery Document 
Set Server program (XT4914).

nNumberOfCacheKeys_INT01INT01integerOPTNONE

Number of Days in Future to Query for Responses Due. 

cSuppressErrorMessage_SUPPSSUPPScharOPTNONE

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.

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.

idCachePointer_GENLNGGENLNGIDOPTNONE

General purpose ID variable.

nCacheLineNumber_INT01INT01integerREQNONE

Number of Days in Future to Query for Responses Due. 

nLastCacheLineUsed_INT01INT01integerOPTNONE

Number of Days in Future to Query for Responses Due. 

mnOrderNumber_DOCODOCOMATH_NUMERICREQNONE

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

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

szOrderSuffix_OSFXSFXOcharOPTNONE

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.

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

mnPriceHistoryAltKey_AKIDAKIDMATH_NUMERICOPTNONE

A value that specifies an alternate key in the Price Adjustment Ledger File table (F4074). 

szPriceHistAltKeySrce_SRCFDSRCFDcharOPTNONE

A user defined code that you enter to indicate the JD Edwards system,such as Service Warranty Management etc,that the price adjustment 
supports.

mnSequenceNumber_OSEQOSEQMATH_NUMERICOPTNONE

For OneWorld, the sequence by which users can set up the order in which their valid environments are displayed. For World, a sequence or 
sort number that the system uses to process records in a user defined order.

mnSubSequenceNumber_SUBSEQSUBSEQMATH_NUMERICOPTNONE

The number of the subadjustments (for example, a sliding rate adjustment) within an adjustment.

mnTier_TIERTIERMATH_NUMERICOPTNONE

A number that represents the tier level in the structure at and below which the system applies this adjustment. This number must be equal to 
or less than the value specified in the Accumulate at Tier field.  In a buying structure, a tier level value of 1 represents the top or highest level. 
A tier level with a greater numeric value than 1 represents a lower level in the buying structure.

szCurrencyCodeFrom_CRCDCRCDcharOPTNONE

A code that identifies the currency of a transaction. 

mnDomesticUnitPrice_UPRCUPRCMATH_NUMERICOPTNONE

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

mnForeignUnitPrice_FUPFUPMATH_NUMERICOPTNONE

The foreign price per unit.

cReturnPointer_EV01EV01charOPTNONE

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

szGlClass_GLCGLCcharOPTNONE

A code that determines the trade account that the system uses as the offset when you post invoices or vouchers. The system concatenates 
the value that you enter to the AAI item RC (for Accounts Receivable) or PC (for Accounts Payable) to locate the trade account. For 
example, if you enter TRAD, the system searches for the AAI item RCTRAD (for receivables) or PCTRAD (for payables).  You can assign up to four 
alphanumeric characters to represent the G/L offset or you can assign the three-character currency code (if you enter transactions in a 
multicurrency environment). You must, however, set up the corresponding AAI item for the system to use; otherwise, the system ignores the G/L 
offset and uses the account that is set up for PC or RC for the company specified.  If you set up a default value in the G/L Offset field of the 
customer or supplier record, the system uses the value during transaction entry unless you override it.  Note: Do not use code 9999. It is reserved for 
the post program and indicates that offsets should not be created.

cAdjustmentControlCode_ACNTACNTcharOPTNONE

A code that specifies additional processing features related to an adjustment. Valid values are: 1 Do not print the adjustment on the invoice 
or the purchase order print document. The system adds the adjustment amount to the unit price. 2 Print the adjustment on the invoice or the 
purchase order print document. The system adds the adjustment amount to the unit price. 3 Update the Sales Order Detail File table (F4211) with 
adjustment detail line information. The system will not include this type of adjustment when it calculates the current net price. Use this code for 
order-level adjustments only. 4 Create an accrual adjustment. The system updates the Price Adjustment Ledger File table (F4074) and 
posts the adjustment to the general ledger during the Sales Update process.  5 Create a rebate adjustment. The system updates the Rebate 
Transaction Summary table (F4078) with the quantity, weight, and amount of the order detail line.  6 Print the adjustment on the invoice. The 
system adds the adjustment to the order total, but does not include it in the unit price. The system will post separate G/L and A/R entries for this 
adjustment during Sales Update.  7 Create a supplier proof of sale rebate adjustment. The system updates the Rebate Transaction Summary 
table with the quantity, weight, and amount of the order detail line and posts the adjustment to the general ledger during Sales Update.  8 Create 
a rounding adjustment, based on the rounding rules set up in the Price Adjustment Detail Revisions program (P4072). The system adds the 
adjustment amount to the unit price. 

szAccountId_AIDAIDcharOPTNONE

A number that the system assigns to each general ledger account in the Account Master table (F0901) to uniquely identify it. 

szSubledger_SBLSBLcharOPTNONE

A code that identifies a detailed, auxiliary account within a general ledger account. A subledger can be an equipment item number or an 
address book number. If you enter a subledger, you must also specify the subledger type.

cSubledgerType_SBLTSBLTcharOPTNONE

A user defined code (00/ST) that is used with the Subledger field to identify the subledger type and how the system performs subledger 
editing. On the User Defined Codes form, the second line of the description controls how the system performs editing. This is either hard-coded 
or user defined. Valid values include: A Alphanumeric field, do not edit   N Numeric field, right justify and zero fill   C Alphanumeric field, right 
justify and blank fill  

szSubsidiary_SUBSUBcharOPTNONE

A subset of an object account. Subsidiary accounts include detailed records of the accounting activity for an object account.

szOffsetAccount_AID6AID6charOPTNONE

The short account id that is used to create the debit side of a journal entry for the Contract Billing and Service Billing modules. If this field is 
left blank, the Billing AAI's will be used to create the journal entry.

szOffsetSubledger_SBL6SBL6charOPTNONE

The subledger provides for detailed subsidiary accounting within any General Ledger account.  This provides an audit trail of the 
transactions posted to a General Ledger account by other related numbers.  These related numbers can be defined by Address Book, Business Unit 
Master, Equipment Master, Order Header,Work Order Master or Lease Master files.  See Subledger Type (SBLT) for how to define these 
different subledgers.  User defined subledgers are also available. Use discretion in using the subledger concept.  An extra record is added to 
the General Ledger Account Balances File - F0902 for each subledger,subledger type, ledger type, fiscal year, and account.

szOffsetSubsidiary_SUB6SUB6charOPTNONE

Used to record the Cost of Sales/Sales Tax journal entry.

cOffsetSubledgerType_SBLTSBLTcharOPTNONE

A user defined code (00/ST) that is used with the Subledger field to identify the subledger type and how the system performs subledger 
editing. On the User Defined Codes form, the second line of the description controls how the system performs editing. This is either hard-coded 
or user defined. Valid values include: A Alphanumeric field, do not edit   N Numeric field, right justify and zero fill   C Alphanumeric field, right 
justify and blank fill  

mnInvoiceTaxAmount_ITAMITAMMATH_NUMERICOPTNONE

The tax amount in the invoice.  This can be either the sales, use or VAT tax.

mnInvoiceTaxForeign_CITXCITXMATH_NUMERICOPTNONE

The tax amount on the invoice in foreign currency.  This can be either the sales, use or VAT tax.

mnAmountJournaledTax_JTAXJTAXMATH_NUMERICOPTNONE

The portion of the tax amount calculated for this entry that is not automatically generated by the post program.

mnAmountJournaledTaxFor_JTXFJTXFMATH_NUMERICOPTNONE

The portion of the tax amount calculated for this entry that is not automatically generated by the post program.

mnInvoiceDiscountAvail_IDSCIDSCMATH_NUMERICOPTNONE

The amount of the discount available, as opposed to the amount of the discount actually taken.  The discount calculated is based on the 
invoice amount rather than the revenue amount.

mnInvoiceDiscountForeign_CIDSCIDSMATH_NUMERICOPTNONE

The foreign currency amount of the discount available, as opposed to the amount of the discount actually taken.  The discount calculated is 
based on the foreign invoice amount.

mnTotalAmountInvoiced_ITOLITOLMATH_NUMERICOPTNONE

The invoice amount for a billing detail transaction.

mnForeignInvoiceAmount_CITLCITLMATH_NUMERICOPTNONE

The total amount of the invoice in foreign currency.

mnTotalAmountBilledFor_FTOLFTOLMATH_NUMERICOPTNONE

The total amount of the invoice or bill.  The total of the individual line items must match this amount.

Related Functions

None

Related Tables

None