GetLaborRechargeAAI

Get Labor Recharge AAI

Minor Business Rule

Object Name: N0500039

Parent DLL: CFND

Location: Client/Server

Language: NER

Functional Description

Purpose

This function will retrieve the account  AAI information for work orders.  It will use this NER to retrieve the object portion of the account, base on 
timecard information and information retrieved from work order master.   It will also retrieve the account number for all defaults, within the master business 

function for Time Entry (B0500002).  Follows logic from world subroutine C06904.


Technical Specifications


Parameters:
Data Item      Date Field Description  I/ORequiredNotes
COCompany from Cost Center F0006IN

MCUH                                           IN

UNTimecard Union                           IN

JBCDTimecard Job Type                         IN

JBSTTimecard Job Step                IN

PDBA Timecard PDBA                         N

FRTYTimecard Fringe Type               N

MCUAAI Cost CenterON

OBJAAI Object Account               ON

SUBAAI SubsidiaryON

EV01Error Flag                                    ON0 = No Error, 1 = Error


Related Tables 
Table Table Description

F06904 Accounting Distribution  Rules



Special Logic


• Read F06904 with key of :      
Y#CO       = Timecard Home Company
Y#MCUH  = Timecard 

Y#UN       = Timecard Union

Y#JBCD   = Timecard Job Type

Y#JBST    = Timecard Job Step

Y#PDBA   = Timecard DBA Code

Y#FRTY  = 'LD' or 'RD'


• If read unsuccessful, then use key of : 
Y#CO       = Timecard Home Company
Y#MCUH  = Timecard 

Y#UN       = Timecard Union

Y#JBCD   = Timecard Job Type

Y#JBST    = Timecard Job Step

Y#PDBA   =  No DBA Code

Y#FRTY  = 'LD' or 'RD'


• While read is unsuccessful, continue to alternate between the 2 keys above, while following the 
below logic until a hit is found.  When value is blanked out, save value to be loaded back into key at 

later time.  Once a key has been blanked out, continue to fetch with that blank key until value is loaded 

back into the key.

• Blank out Y#JBST.
• Blank out Y#JBCD.
• Blank out Y#UN, while moving values back into Y#JBST and Y#JBCD.
• Blank out Y#JBST.
• Blank out Y#JBCD.
• Blank out Y#MCUH, while moving values back into Y#UN, Y#JBCD and Y#JBST.
• Blank out Y#JBST.
• Blank out Y#JBCD.
• Blank out Y#UN, while moving values back into Y#JBCD and Y#JBST.
• Blank out Y#JBST.
• Blank out Y#JBCD.

• If still no hit for company, find AAI in default company '00000'.
• Load value of '00000' in Y#CO, while moving back values into Y#UN, Y#JBCD and Y#JBST.
• Blank out Y#JBST.
• Blank out Y#JBCD.
• Blank out Y#UN, while moving values back into Y#JBCD and Y#JBST.
• Blank out Y#JBST.
• Blank out Y#JBCD.



Data Structure

D0500039 - Get Labor Recharge AAI

Parameter NameData ItemData TypeReq/OptI/O/Both
szCompanyCOcharOPTINPUT

A code that identifies a specific organization, fund, or other reporting entity. The company code must already exist in the Company 
Constants table (F0010) and must identify a reporting entity that has a complete balance sheet. At this level, you can have intercompany 
transactions. Note: You can use company 00000 for default values such as dates and automatic accounting instructions. You cannot use company 00000 
for transaction entries.

szCostCenterNoSearchMCUHcharOPTINPUT

Identifies the Business Unit the system searches to determine the accounting distribution. When defining the default rules (Company 00000), 
leave the Business Unit blank for the system to retrieve the Business Unit number entered on the Employee timecard, or from the 
Employee's Home Business Unit. You can use the Skip to Business Unit field in the header part of the screen to specify the Business Unit to be 
displayed first in the lower part of the screen.

szUnionCodeUNcharOPTINPUT

A user defined code (06/UN) that represents the union or plan in which the employee or group of employees work or participate.

szJobCategoryJBCDcharOPTINPUT

A user defined code (07/G) that defines the jobs within your organization. You can associate pay and benefit information with a job type and 
apply that information to the employees who are linked to that job type.

szJobStepJBSTcharOPTINPUT

A user defined code (07/GS) that designates a specific level within a particular job type. The system uses this code in conjunction with job 
type to determine pay rates by job in the Pay Rates table.

mnPayDeductBenAccTypePDBAMATH_NUMERICOPTINPUT

A code that defines the type of pay, deduction, benefit, or accrual. Pay types are numbered from 1 to 999. Deductions and benefits are 
numbered from 1000 to 9999.

szFringeTypeFRTYcharOPTINPUT

A code that represents the type of transaction for which an account is to be derived.

szCostCenterMCUcharOPTOUTPUT

An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit 
might be a warehouse location, job, project, work center, branch, or plant. You can assign a business unit to a document, entity, or person for 
purposes of responsibility reporting. For example, the system provides reports of open accounts payable and accounts receivable by 
business unit to track equipment by responsible department. Business unit security might prevent you from viewing information about business units 
for which you have no authority.

szObjectAccountOBJcharOPTOUTPUT

The portion of a general ledger account that refers to the division of the Cost Code (for example, labor, materials, and equipment) into 
subcategories. For example, you can divide the Cost Code for labor into regular time, premium time, and burden. Note: If you use a flexible chart of 
accounts and the object account is set to 6 digits, J.D. Edwards recommends that you use all 6 digits. For example, entering 000456 is not 
the same as entering 456 because if you enter 456 the system enters three blank spaces to fill a 6-digit object.

szSubsidiarySUBcharOPTOUTPUT

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

mnJobnumberJOBSMATH_NUMERICOPTINPUT

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

Related Functions

None

Related Tables

None