Functional Description
Purpose
To read/write the job #'s used when writing Landed Cost G/L records.
Setup Notes and Prerequisites
Special Logic
Called from named ER Landed Cost Selection.
Technical Specification
If mode = blank, clear the cache for ctid, LC jobs.
If mode = 1, write record to the cache.
If mode = 2, update record to the cache.
If mode = 3, read record from the cache.
To the above processing add BaseCurrency to the cache and cache index and use it throughout to add,
update, and read.
To the above also add F4111JobNumber to the cache and use it throughout to update or add to the cache
(just like the G/L JobNumber)
As implied in the parm list above, change the required parameters to not be required any more
Cache process
B.If add fails set error "032E"(Error Processing Cache) and return failure.
B.Retrieve the first element on the cache matching the key values passed as input; the
number of keys to be used is passed in the input parameters, If "0" fetch first element in the
list.
the calling program. If get fails return failure.
I.If Process Mode is "3" - UPDATE:
cursor should have been set through a previous "Get" action, i.e. process mode "4", if number of
keys is "0" then fetch next record with out using any key).
2.Load the values from the retrieved element into the data structure to be passed back to
the calling program.
3.If there are no more elements close cursor and return failure.
I.If Process Mode is "5" - DELETE:
B.If the number of keys is not 0, Delete the first cache elememt matching the the key
values passed as input.
C.If delete fails, return failure.
I.If Process Mode is "6" - DELETE ALL:
B.If delete fails, return failure;
I.If Process Mode is "7" - ADD/UPDATE:
B.Insert a new cache element with values from data structure.
^
D4301050 - F41291 Read/Write Landed Cost Job Numbers
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
szCurrencyCode | CRCD | char | NONE | NONE |
A code that identifies the currency of a transaction. | ||||
mnExchangeRate | CRR | MATH_NUMERIC | NONE | NONE |
A number (exchange rate) that a foreign currency amount is multiplied by to calculate a domestic currency amount.
The number in this field
| ||||
mnJobNumber | JOBS | MATH_NUMERIC | NONE | NONE |
The job number (work station ID) which executed the particular job. | ||||
mnDocumentNumber | DOC | MATH_NUMERIC | NONE | NONE |
A number that identifies the original document, such as a voucher, invoice, or journal entry. On entry forms, you can assign the document
| ||||
szDocumentType | DCT | char | NONE | NONE |
A user defined code (00/DT) that identifies the origin and purpose of the transaction. PeopleSoft reserves several prefixes for document
| ||||
szKeyCompany | KCO | char | NONE | NONE |
A number that, with the document number, document type and G/L date, uniquely identifies an original document, such as invoice, voucher,
| ||||
szComputerID | CTID | char | NONE | NONE |
mnLCJobNumber | JOBS | MATH_NUMERIC | NONE | NONE |
The job number (work station ID) which executed the particular job. | ||||
szBaseCurrency | CRDC | char | NONE | NONE |
A code that identifies the domestic (base) currency of the company on a transaction. | ||||
mnF4111JobNumber | JOBS | MATH_NUMERIC | OPT | NONE |
The job number (work station ID) which executed the particular job. | ||||
szCacheActionCode | CACTN | char | NONE | NONE |
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
| ||||
cSuppressErrorMessage | SUPPS | char | NONE | NONE |
A flag indicating whether or not runtime error messaging will occur when an error message is issued from a business function.
0 = allow
| ||||
szErrorMessageID | DTAI | char | NONE | NONE |
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
| ||||
idhCursor | GENLNG | ID | NONE | NONE |
General purpose ID variable. | ||||
szOrderSuffix | SFXO | char | OPT | NONE |
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
| ||||
mnLastJournalEntryLineNo | JELN | MATH_NUMERIC | OPT | NONE |
A number that designates a line within a journal entry. The system uses this field to sequence the journal entry lines for inquiry purposes. | ||||
mnTriangulationRateFrom | TRR1 | MATH_NUMERIC | OPT | NONE |
The triangulation currency rate used to convert the From currency code to the Triangulation currency code. | ||||
mnTriangulationRateTo | TRR2 | MATH_NUMERIC | OPT | NONE |
The triangulation currency rate that used to convert from the Triangulation currency code to the To currency code. | ||||
mnTransportationJobNumber | JOBS | MATH_NUMERIC | OPT | NONE |
The job number (work station ID) which executed the particular job. |
None |
None |