1.Functional Description
1.1Purpose
This function will perform Get, Add, Update, Delete, Delete All, Get Next, Add/Update, and Terminate
functions on the Segment Values cache used in Configurator Order Processing (P3294, X3294, P32943).
The calling application is responsible for loading all appropriate key values to the data structure
and identifying the number of keys to use in retrieval/update processes.
'2' Add - add a cache element.
'3' Update - update a cache element.
'4' Delete - delete a cache element.
'5' Delete All - delete all cache elements
'6' Get Next - retrieve the next cache element
'7' Add/Update - will add if element does not exist, will change if it does exist.
'8' Terminate - terminate cache
'9' Close Cursor- closes cache cursor
Number of Keys
key values for a Get, Update, Delete, Get Next, and Add/Update.
A zero may be passed to retrieve or update the first record.
1.3Special Logic
There is no special logic within this function.
2.Technical Specifications
2.4Processing
I. Perform setup functions
B. Set DS Cache Error Code = '0';
C. If not successful Set error "032E," "Error Processing Cache".
II. Processing Based on Mode.
2.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.
3.Load the values from the retrieved element into the data structure to be passed back to
the calling program.
4.If get fails DS Cache Error Code = '6'.
B. If Process Mode is "2" - ADD (same logic as mode "7").
2.Insert a new cache element with values from data structure.
3.If add fails set error "032E" and set DS Cache Error Code = '4'.
2.Insert a new cache element with values from data structure.
3.If add fails set error "032E" and set DS Cache Error Code = '4'.
2.If delete fails DS Cache Error Code = '5'.
E. If Process Mode is "5" - DELETE ALL:
2.If delete fails DS Cache Error Code = '5'.
cursor should have been set through a previous "Get" action, i.e. process mode "1", 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 set DS Cache Error Code = '1'.
G. If Process Mode is "7" - ADD/UPDATE:
2.Insert a new cache element with values from data structure.
3.If add fails set error "032E" and set DS Cache Error Code = '4'.
D3200350 - Cache Process Segment Values
^
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
cCacheActionCode | EV01 | char | OPT | NONE |
An option that specifies the type of processing for an event. | ||||
nIndexNumber | INT01 | integer | OPT | NONE |
Number of Days in Future to Query for Responses Due. | ||||
nNumberOfKeys | INT01 | integer | OPT | NONE |
Number of Days in Future to Query for Responses Due. | ||||
cReturnCursor | EV01 | char | OPT | NONE |
An option that specifies the type of processing for an event. | ||||
idCursor | GENLNG | ID | OPT | NONE |
General purpose ID variable. | ||||
cCacheCodeError | EV01 | char | OPT | NONE |
An option that specifies the type of processing for an event. | ||||
cSuppressErrorMessage | SUPPS | char | OPT | 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 | OPT | 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
| ||||
mnJobNumber | JOBS | MATH_NUMERIC | OPT | NONE |
The job number (work station ID) which executed the particular job. | ||||
mnConfigurationIDNumber | CFGID | MATH_NUMERIC | OPT | NONE |
An identifier that represents a unique configuration. It is generated by a next number value and is the key to the configuration tables. | ||||
mnComponentIDNumber | CFGCID | MATH_NUMERIC | OPT | NONE |
A number that represents a component in a configuration. This number, which is generated by next numbers, always restarts at 1 and
| ||||
mnSegmentNumber | PEL | MATH_NUMERIC | OPT | NONE |
A number that establishes the sequence in which the segments were defined in the system. Segment numbers are user
| ||||
szSegmentValue | SGVL | char | OPT | NONE |
An answer to the configurator feature and option questions that appear during order entry.
When you define cross-segment editing rules,
| ||||
szDescriptionLine1 | DSC1 | char | OPT | NONE |
Brief information about an item; a remark or an explanation. | ||||
szDataItem | DTAI | char | OPT | 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
| ||||
cRequiredToBe | ATRQ | char | OPT | NONE |
A code that specifies whether a segment is required or optional in a configuration, or whether the system must calculate it to specification
| ||||
szSystemCode | SY | char | OPT | NONE |
A user defined code (98/SY) that identifies a system. Valid values include:
01
Address Book
03B
Accounts Receivable
04
Accounts
| ||||
szUserDefinedCodes | RT | char | OPT | NONE |
A code that identifies the table that contains user defined codes. The table is also referred to as a UDC type. | ||||
szValueForEntryDefault | DVAL | char | OPT | NONE |
Used as the initial value on the data entry screen for the associated data item. The value entered must be the exact same length as the
| ||||
szLowerAllowedValue | LVAL | char | OPT | NONE |
The lower allowed value of this specific segment. If you enter a value here,then you must also enter an upper allowed value. | ||||
szUpperAllowedValue | UVAL | char | OPT | NONE |
The upper allowed value of this specific segment. If you enter a value here,then you must also enter an lower allowed value. | ||||
cNumericYN | CNUM | char | OPT | NONE |
Determines whether a user defined code is numeric or alphanumeric.
Valid values are:
Y Indicates that the code is numeric and should be
| ||||
mnSegmentDisplaySequence | DTAS | MATH_NUMERIC | OPT | NONE |
The field size of the data item.
Note: All amount fields should be entered as 15 bytes, 0 decimals, and the data item type should be P
| ||||
cDataDisplayDecimals | CDEC | char | OPT | NONE |
A value that designates the number of decimals in the currency, amount, or quantity fields the system displays. For example, U.S. Dollars
| ||||
cSaveSegment | ATSA | char | OPT | NONE |
A user defined code (32/YN) that specifices whether the segment value is significant enough to make the configuration unique. Valid values
| ||||
mnSpacesBeforeSegmentInfor | SPBN | MATH_NUMERIC | OPT | NONE |
The number of spaces that should print before the segment information in the user defined format. | ||||
mnSpacesAfterSegmentInform | SPAN | MATH_NUMERIC | OPT | NONE |
The number of spaces that should print after the segment information in the user defined format. | ||||
cPrintSegmentNumber | ATSN | char | OPT | NONE |
A user defined code (32/YN) that specifies whether the system prints the segment number on the order paperwork. Valid values are:
0
Do
| ||||
cPrintSegmentDescription | ATSD | char | OPT | NONE |
A user defined code (32/YN) that specifies whether the system prints the segment description on the order paperwork. Valid values
| ||||
cPrintSegmentValue | ATSV | char | OPT | NONE |
A user defined code (32/YN) that specifies whether the system prints the segment value on the order paperwork. Valid values are:
0
Do not
| ||||
cPrintSegmentValueDescription | ATVD | char | OPT | NONE |
A user defined code (32/YN) that specifies whether the system prints the segment value description on the order paperwork. Valid values
| ||||
cReturnandStartNewLine | RTNL | char | OPT | NONE |
A user defined code (32/YN) that indicates whether the system starts a new line after it prints the segment nformation. Valid values
| ||||
cDerivedCalculationRound | RNDC | char | OPT | NONE |
This field will be used to indicate how many positions to the right of the decimal a derived calculation should be rounded.
For example,
o If
| ||||
szUpdateCategoryCode | UPCC | char | OPT | NONE |
A code that specifies which work order category code that the system populates with the segment value during order entry. | ||||
cValidFlag | EV01 | char | OPT | NONE |
An option that specifies the type of processing for an event. | ||||
szCode | URCD | char | OPT | NONE |
This is a 2 position code that is reserved for the user. JDE does not currently use this field and will not utilize this field in the future. | ||||
mnAmount | URAT | MATH_NUMERIC | OPT | NONE |
This is a 15 position code that is reserved for the user. JDE does not currently use this field and will not utilize this field in the future. | ||||
szSegmentErrorMessageID | DTAI | char | OPT | 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
|
None |
None |