GetCostedBillCostBuckets

Get Costed Bill Cost Buckets

Major Business Rule

Object Name: B3000590

Parent DLL: CMFGBASE

Location: Client/Server

Language: C

1.Functional Description

1.1Purpose

This business function will read the UDC table F0005 and determine the cost buckets that  each 
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.


^

Data Structure

D3000590 - Get Costed Bill Cost Buckets

Parameter NameData ItemData TypeReq/OptI/O/Both
szUDCSystemCodeSYcharNONENONE

A user defined code (98/SY) that identifies a system. Valid values include: 01 Address Book 03B Accounts Receivable 04 Accounts 
Payable 09 General Accounting 11 Multicurrency

szUDCRecordTypeRTcharNONENONE

A code that identifies the table that contains user defined codes. The table is also referred to as a UDC type.

cModeVC01AcharNONENONE

This is a generic field used for video constants display.

szCostTypeBucket1DSC1charNONENONE

Brief information about an item; a remark or an explanation.

szCostTypeBucket2DSC1charNONENONE

Brief information about an item; a remark or an explanation.

szCostTypeBucket3DSC1charNONENONE

Brief information about an item; a remark or an explanation.

szCostTypeBucket4DSC1charNONENONE

Brief information about an item; a remark or an explanation.

szCostTypeBucket5DSC1charNONENONE

Brief information about an item; a remark or an explanation.

szErrorMessageIDDTAIcharNONENONE

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.

cSuppressErrorMessageEV01charNONENONE

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

szArrayElementToRetrieveDTAIcharNONENONE

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.

idCostBucket1GENLNGIDNONENONE

General purpose ID variable.

idCostBucket2GENLNGIDNONENONE

General purpose ID variable.

idCostBucket3GENLNGIDNONENONE

General purpose ID variable.

idCostBucket4GENLNGIDNONENONE

General purpose ID variable.

idCostBucket5GENLNGIDNONENONE

General purpose ID variable.

szCostTypeBucket6DSC1charNONENONE

Brief information about an item; a remark or an explanation.

idCostBucket6GENLNGIDNONENONE

General purpose ID variable.

Related Functions

None

Related Tables

F0005 User Defined Codes