GetUpdateUDCDescription

Get/Update UDC Description

Major Business Rule

Object Name: B4002070

Parent DLL: COPBASE

Location: Client/Server

Language: C

Functional Description

Purpose

This business function will retrieve and update the Preference Type (PRFR) Description in the UDC.


Special Logic

The function should operate in two modes - 1) Retrieve Preference Type Description 2) Update 

Preference Type Desciption.


Technical Specification

2.4Processing 

The preference type will be the third key (right justified) for the UDC table (F0005).

When the business function is called in (R)-Retrieval mode, get the description from the F0005 file 

for the Preference type passed.

When the business funstion is called in (U)-Update mode, update the description in the F0005 file for 

the preference type passed.


Return a 1 in ERRC if the record is not found, 0 if the record is found.




Data Structure

D4002070 - Get Update UDC Description

Parameter NameData ItemData TypeReq/OptI/O/Both
cModeMODEcharNONENONE

Special Input Expected
'R' - Retrieve

'U' -  Updateab 


^

szDescriptionDL01charNONENONE

A user defined name or remark.

szSystemCodeSYcharNONENONE

Special Input Expected
1st key field for  F0005ab 


^

szUserDefinedCodesRTcharNONENONE

Special Input Expected
2nd key field for  F0005ab 



^

mnCodeLengthCDLMATH_NUMERICNONENONE

The length of the user defined code. It cannot be greater than 10 characters.

cErrorCodeERRCcharNONENONE

Special Input Expected
return 0 if record found

return 1 if record not  foundab 



^

szErrorMessageIDDTAIcharNONENONE

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.

cSuppressErrorMessageEV01charNONENONE

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

szUDCCodeKYcharNONENONE

A list of valid codes for a specific user defined code list.

Related Functions

None

Related Tables

F0005 User Defined Codes