RetrieveDefaultLaborFromRTS

Retrieve Default Labor From RTS

Minor Business Rule

Object Name: N1702260

Parent DLL: CCRIN

Location: Client/Server

Language: NER

1.Functional Description

1.1Purpose

The purpose of this function is to retrieve the default labor hours from the F1771 table with a direct match of input fields specified by the user.


1.2Setup Notes and Prerequisites

Setup will include 2 steps.

1.  Setting S/WM sequences in the F1750 with ITYPE 'T' by using the form exit from P1771.  

2.  Adding valid data to the F1771 that will correlate with sequences added in step 1 by using the application P1771.


1.3Special Logic



See Section 2.4.

2.Technical Specifications


2.1Parameters:

Data Item Data Structure DescriptionI/ORequiredNotes ITYPEcInformationType1INITYPE of 

'T' PRODMszProductModelIN PRODFszProductFamilyIN ITMmnIdentifierShortItemIN VMRS31szSystemIN VMRS32szAssemblyIN VMRS33szPartsIN DFLBRmnDefaultlaborHoursON

2.2Related Tables 

Table Table Description F1771Standard Repair Time Entry F1750S/WM Sequences

2.3Related Business Functions

Source NameFunction Name


2.4Processing 


Listing of ER for Named ER: N1702260



=======================================================================

NAMED ER: Retrieve Default Labor From RTS

=======================================================================

evt_cProdFamily_YN02

evt_cProdModel_YN01

evt_cInvItemNo_YN03

evt_cSystem_YN04

evt_cAssembly_YN05

evt_cPart_YN06

evt_cDefaultFound_EV01

evt_szProductFamily_PRODF

evt_szProductModel_PRODM

evt_mnIdentifierShortItem_ITM

evt_szSystem_VMRS31

evt_szAssembly_VMRS32

evt_szPart_VMRS33

BF mnDefaultLaborHours = ""

VA evt_cDefaultFound_EV01 = "0"

F1750.Select

   BF cInformationType1 =  TK Information Type

F1750.Fetch Next

   VA evt_cProdModel_YN01 <- TK Yes or No Entry 01

   VA evt_cProdFamily_YN02 <- TK Yes or No Entry 02

   VA evt_cInvItemNo_YN03 <- TK Yes or No Entry 03

   VA evt_cSystem_YN04 <- TK Yes or No Entry 04

   VA evt_cAssembly_YN05 <- TK Yes or No Entry 05

   VA evt_cPart_YN06 <- TK Yes or No Entry 06

While SV File_IO_Status is equal to CO SUCCESS

And VA evt_cDefaultFound_EV01 is equal to 

   // Set Default Keys based on F1750

   If VA evt_cProdModel_YN01 is equal to "1,Y"

      VA evt_szProductModel_PRODM = BF szProductModel

   Else

      VA evt_szProductModel_PRODM = " "

   End If

   If VA evt_cProdFamily_YN02 is equal to "1,Y"

      VA evt_szProductFamily_PRODF = BF szProductFamily

   Else

      VA evt_szProductFamily_PRODF = " "

   End If

   If VA evt_cInvItemNo_YN03 is equal to "1,Y"

      VA evt_mnIdentifierShortItem_ITM = BF mnIdentifierShortItem

   Else

      VA evt_mnIdentifierShortItem_ITM = "0"

   End If

   If VA evt_cSystem_YN04 is equal to "1,Y"

      VA evt_szSystem_VMRS31 = BF szSystem

   Else

      VA evt_szSystem_VMRS31 = " "

   End If

   If VA evt_cAssembly_YN05 is equal to "1,Y"

      VA evt_szAssembly_VMRS32 = BF szAssembly

   Else

      VA evt_szAssembly_VMRS32 = " "

   End If

   If VA evt_cPart_YN06 is equal to "1,Y"

      VA evt_szPart_VMRS33 = BF szParts

   Else

      VA evt_szPart_VMRS33 = " "

   End If

   F1771.Fetch Single

      VA evt_szProductFamily_PRODF =  TK Product Family

      VA evt_szProductModel_PRODM =  TK Product Model

      VA evt_mnIdentifierShortItem_ITM =  TK Item Number - Short

      VA evt_szSystem_VMRS31 =  TK Component Code - Group/System

      VA evt_szAssembly_VMRS32 =  TK Component Code - System/Assembly

      VA evt_szPart_VMRS33 =  TK Component Code - Systems/Assembly/Parts

      BF mnDefaultLaborHours <- TK Default Labor Hours

   If SV File_IO_Status is equal to CO SUCCESS

      VA evt_cDefaultFound_EV01 = "1"

   Else

      F1750.Fetch Next

         VA evt_cProdModel_YN01 <- TK Yes or No Entry 01

         VA evt_cProdFamily_YN02 <- TK Yes or No Entry 02

         VA evt_cInvItemNo_YN03 <- TK Yes or No Entry 03

         VA evt_cSystem_YN04 <- TK Yes or No Entry 04

         VA evt_cAssembly_YN05 <- TK Yes or No Entry 05

         VA evt_cPart_YN06 <- TK Yes or No Entry 06

   End If

End While


Data Structure

D1702260 - Retrieve Default Labor From RTS

Parameter NameData ItemData TypeReq/OptI/O/Both
cInformationType1ITYPEcharOPTINPUT

A code that indicates specific record types when records of different types are stored within the same table. For internal use only.

szProductFamilyPRODFcharOPTINPUT

A code that classifies an inventory item into a group for customer service. Some examples include: Laser Printer, Inkjet, or Fax.

szProductModelPRODMcharOPTINPUT

A code that classifies an inventory item into a model for customer service. Some examples include: Laser Printer, Inkjet or Fax.

mnIdentifierShortItemITMMATH_NUMERICOPTINPUT

An inventory item number. The system provides three separate item numbers plus an extensive cross-reference capability to other item 
numbers (see data item XRT) to accommodate substitute item numbers, replacements, bar codes, customer numbers, supplier numbers, and 
so forth. The item numbers are as follows:   o Item Number (short) - An eight-digit, computer-assigned item number     o 2nd Item Number - The 
25-digit, free-form, user defined alphanumeric item number     o 3rd Item Number - Another 25-digit, free-form, user defined alphanumeric item 
number

mnDefaultLaborHoursDEFLBRMATH_NUMERICOPTOUTPUT

The standard number of hours that are required to complete a repair on an item.

szSystemVMRS31charOPTINPUT

A user defined code (17/C6) that indicates a specific system, such as the air conditioning system, that is associated with a piece of 
equipment. The system uses the UDCs for the system, the assembly, and the part to identify a particular position within the equipment.

szAssemblyVMRS32charOPTINPUT

A user defined code (17/C7) that indicates the location of a specific assembly, such as the air conditioning compressor, within a piece of 
equipment. The system uses the UDCs for the system, the assembly, and the part to identify a particular position within the equipment.

szPartsVMRS33charOPTINPUT

A user defined code (17/C8) that indicates the location of a specific part, such as the fuse to the air conditioning compressor clutch,  within a 
piece of equipment. The system uses the UDCs for the system, the assembly, and the part to identify a particular position within the 
equipment.

Related Functions

None

Related Tables

None