UpdateCustomerInfo

Update Customer Information - Parts & Routings

Minor Business Rule

Object Name: N1701590

Parent DLL: CCRIN

Location: Client/Server

Language: NER

Functional Description

Purpose


In some situations a end user may need to update the customer number on the Service Work Order and 

have this change reflected on the Parts List and Routing Instructions. Often the pricing of a Service 

Work Order is dependent on the Customer number, this update includes a call to Advance Pricing based on 

the change in Customer Number.


The purpose of this NER is to allow the user to update the Customer related information on the 

following tables. Work Order Routings (F3112), Work Order parts Lists(F3111), Routing Instructions - 

Extension(F31172), Parts List - Extension(F31171).


The calling program will input the Service Work Order Number and Calling Program ID.


This NER will determine if a parts list and/or Routing exist for the Service Work Order entered.


If Parts and / or Routing exist, the program will retrieve the following information from Work Order 

Master/ Service Work Order Extension: 


Type Of service(TYPS), Company(CO), Branch Plant(MMCU), Customer Number(AN8), Service address(SAID), 

Start date(PEFJ), catagory codes 1-4(WR01 - WR04), Parent Item Number(KIT), Method of Pricing(MTHPR), 

Entitlement Check(ENTCK), Country(CTR), GL Catagory code covered(GLCCV), GL Catagory code non 

covered(GLCNC), Coverage group(COVGR) and the Price Adjustment Schedule(ASN2). The program will then obtain 

the following from F0301: 

Payment terms(PTC) and Customer Pricing group(CGPC). The currency code associated with the company is 

obtained from F0010. The above information will be used to determine the billing rates from Advanced 

pricing.


If a Parts list exists, the program will fetch all parts associated with the work order number input. 

The program will then determine the percentage covered and Bill Pay default flags. A call is then 

made to "Calculate Parts Labor Pricing" to retreive the Estimated Billable Unit, Estimated Billable 

Amount, Actual Billable Unit and Actual Billable Amount. Following this calculation, the program updates 

the Work Order Routings and the Routing instructions - Extension.


Special Logic


The Program will only update parts and/or Routings that have not been billed.

Data Structure

D1701590 - Update Customer Information Parts & Routings

Parameter NameData ItemData TypeReq/OptI/O/Both
mnDocumentOrderInvoiceEDOCOMATH_NUMERICREQINPUT

A number that identifies an original document. This document can be a voucher, a sales order, an invoice, unapplied cash, a journal entry, 
and so on.

szProgramIdPIDcharREQINPUT

The number that identifies the batch or interactive program (batch or interactive object). For example, the number of the Sales Order Entry 
interactive program is P4210, and the number of the Print Invoices batch process report is R42565. The program ID is a variable length value. 
It is assigned according to a structured syntax in the form TSSXXX, where: T The first character of the number is alphabetic and identifies the 
type, such as P for Program, R for Report, and so on. For example, the value P in the number P4210 indicates that the object is a 
program. SS The second and third characters of the number are numeric and identify the system code. For example, the value 42 in the number P4210 
indicates that this program belongs to system 42, which is the Sales Order Processing system. XXX The remaining characters of the numer are 
numeric and identify a unique program or report. For example, the value 10 in the number P4210 indicates that this is the Sales Order Entry 
program.

cErrorCodeERRCcharOPTNONE

This error code indicates if any errors occurred during the creation of the Trip Document Detail (F4914) records by the Delivery Document 
Set Server program (XT4914).

szErrorMessageIDDTAIcharOPTNONE

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.

cSuppressErrorMessageSUPPScharOPTNONE

A flag indicating whether or not runtime error messaging will occur when an error message is issued from a business function.        0 = allow 
runtime error message handling.        1 = suppress runtime error message handling.

Related Functions

None

Related Tables

None