VerifyUserCodes

Verify User Codes

Minor Business Rule

Object Name: B4800010

Parent DLL: CMFG

Location: Client/Server

Language: C

Functional Description

Purpose

This business function will verify the existence of an F48092 record for a given WODB / TYWO or WODB 
/ TYWO / DOCO key,  or will get the associated description from F0004 for a given SY and RT


Setup Notes and Prerequisites


Special Logic




Technical Specification




if Mode = 1
1. Open F48092 and fetch using WODB and TYWO as keys  if key index = 1

    else fetch using WODB, TYWO and DOCO as keys if key index = 2.

2. If record is found 

RecordFound = 1

    else

     RecordFound = 0


if Mode = 2
1. Open F0004 and fetch using SY and RT as keys

2. If record is found, assign DL01 from table to DS DL01



^

Data Structure

D4800010 - Verify User Codes

Parameter NameData ItemData TypeReq/OptI/O/Both
cWorkOrderSupplementalWODBcharNONENONE

The code representing what Work Order Data Base is to be used.

szTypeDataTYWOcharNONENONE

A user defined code (00/WT) that indicates the type of data being entered within the supplemental database. The code is often an 
abbreviation for the data that it represents. For example, EC might represent Engineering Change.

cRecordExistsEV01charNONENONE

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

szRecordTypeRTcharNONENONE

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

szSystemCodeSYcharNONENONE

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

szDescriptionDL01charNONENONE

A user defined name or remark.

cModeEV01charNONENONE

1 = Find in F48092
2 = Find in F0004

^

mnOrderNumberDOCOMATH_NUMERICNONENONE

Required if Index = 2 in Mode 1
^

cKeyIndexEV01charNONENONE

1 = WODB / TYWO  key
2 = WODB / TYWO / DOCO key

^

Related Functions

None

Related Tables

F0004 User Defined Code Types
F48092 WO Supplemental DB User Defined