1.Functional Description
1.1Purpose
cost component cost type belongs to. This function will be called in mode '1' to build the cost
bucket arrays, mode '2' to retrieve a specific array element (needed to write everest grid
lines), and mode '3' will tell the business function to destroy the contents in the arrays.
1.2Setup Notes and Prerequisites
The setup notes and prerequisites contains information that needs to be provided to the application
developer to successfully use attach the business function. Important prerequisite Business Functions
that need to be run and any additional relevant information (what event points, limitations, data
structure peculiarities) should be detailed.
Use bullet points
1.3Special Logic
This section should be used when additional logic is used in the Business Function for application
specific functionality or exceptional situations.
2.Technical Specifications
2.4Processing
Process steps 1.0,2.0,3.0 for MODE = '1'
1.0 You must have 6 character string arrays, each will only have a maximum of 20 elements.
2.0 Each array needs its own element counter.
for example array1[$1]
array2[$2]
3.0 Read F0005 table by DS SY, and DS RT.
loop for all F0005 records
Evaluate DL01
if EQ 1
load array 1[$1] with the cost type stored in KY
add 1 to $1
Evaluate DL01
if EQ 2
load array 2[$2] with the cost type stored in KY
add 1 to $2
Evaluate DL01
if EQ 3
load array 3[$3] with the cost type stored in KY
add 1 to $3
Evaluate DL01
if EQ 4
load array 4[$4] with the cost type stored in KY
add 1 to $4
Evaluate DL01
if EQ 5
load array 5[$5] with the cost type stored in KY
add 1 to $5
Evaluate DL01
if EQ 6
load array 6[$6] with the cost type stored in KY
add 1 to $6(new)
note- you must keep arrays loaded when the business function is exited.
Process step 4.0 for MODE = '2'
4.0 Process DS VC01A (array element to retrieve)
Return the appropriate array values according to the array
element requested.
for example if DS VC01A = 2
return array 1[2] into Cost Bucket 1 DSC1
return array 2[2] into Cost Bucket 2 DSC1
return array 3[2] into Cost Bucket 3 DSC1
return array 4[2] into Cost Bucket 4 DSC1
return array 5[2] into Cost Bucket 5 DSC1
return array 6[2] into Cost Bucket 6 DSC1(new)
note- you must keep arrays loaded when the business function is exited.
Process step 5.0 for MODE = '3'
5.0 Free all memory allocated for the arrays.
Retrievals:
1.) F0005
use key = DS SY, and DS RT
Returns:
1.) Returns only take place when called with MODE = '2' and this happens in step 4.0.
^
D3000590 - Get Costed Bill Cost Buckets
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
szUDCSystemCode | SY | char | NONE | NONE |
A user defined code (98/SY) that identifies a system. Valid values include:
01
Address Book
03B
Accounts Receivable
04
Accounts
| ||||
szUDCRecordType | RT | char | NONE | NONE |
A code that identifies the table that contains user defined codes. The table is also referred to as a UDC type. | ||||
cMode | VC01A | char | NONE | NONE |
This is a generic field used for video constants display. | ||||
szCostTypeBucket1 | DSC1 | char | NONE | NONE |
Brief information about an item; a remark or an explanation. | ||||
szCostTypeBucket2 | DSC1 | char | NONE | NONE |
Brief information about an item; a remark or an explanation. | ||||
szCostTypeBucket3 | DSC1 | char | NONE | NONE |
Brief information about an item; a remark or an explanation. | ||||
szCostTypeBucket4 | DSC1 | char | NONE | NONE |
Brief information about an item; a remark or an explanation. | ||||
szCostTypeBucket5 | DSC1 | char | NONE | NONE |
Brief information about an item; a remark or an explanation. | ||||
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
| ||||
cSuppressErrorMessage | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
szArrayElementToRetrieve | 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
| ||||
idCostBucket1 | GENLNG | ID | NONE | NONE |
General purpose ID variable. | ||||
idCostBucket2 | GENLNG | ID | NONE | NONE |
General purpose ID variable. | ||||
idCostBucket3 | GENLNG | ID | NONE | NONE |
General purpose ID variable. | ||||
idCostBucket4 | GENLNG | ID | NONE | NONE |
General purpose ID variable. | ||||
idCostBucket5 | GENLNG | ID | NONE | NONE |
General purpose ID variable. | ||||
szCostTypeBucket6 | DSC1 | char | NONE | NONE |
Brief information about an item; a remark or an explanation. | ||||
idCostBucket6 | GENLNG | ID | NONE | NONE |
General purpose ID variable. |
None |
F0005 User Defined Codes |