CheckDuplicateDealerReference

Check Duplicate Dealer Reference For Warranty Claims

Minor Business Rule

Object Name: N1702400

Parent DLL: CCRIN

Location: Client/Server

Language: NER

Functional Description
This function will return 1 if a warranty claim other that sent as input existing for the dealer reference.


Purpose

This function will search F4801 table to see if another warranty claim is existing with the same dealer reference.


Technical Specification


Processing 


1.Select all the records from F4801 where F4801.VR02 = input Dealer reference and F4801.DOCO != input Order Number and F4801.ANSA = 
input Dealer number.

2.For each record selected, check the document type (call N4000039 bsfn) and verify if the order is a warranty claim.
3.If any of the selected orders is a warranty claim, assign 1 to DuplicateClaimExists parameter and break out of loop.

4.If no warranty claim exists for the dealer reference, assign 0 to DuplicateClaimExists.



Data Structure

D1702400 - Check Duplicate Dealer Reference For Warranty Claims

Parameter NameData ItemData TypeReq/OptI/O/Both
mnOrderNumberDOCOMATH_NUMERICOPTNONE

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.

szReferenceVR02charOPTNONE

A field available to record reference numbers, such as the supplier's bid document number, quote document, sales order, work order, or 
job number.

cDuplicateClaimExistsEV01charOPTNONE

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

mnDealerNumberANSAMATH_NUMERICOPTNONE

The address book number of a manager or planner.   Note:  A processing option for some forms allows you to enter a default value for this 
field based on values for category codes 1 (Phase), 2, and 3.  You set up the default values on the Default Managers and Supervisors form.  
After you set up the default values and the processing option, the default information displays automatically on any work orders that you 
create if the category code criterion is met.  You can either accept or override the default value. 

Related Functions

None

Related Tables

None