GetUDCBySecondDescription

Get UDC By Second Description

Minor Business Rule

Object Name: N3700020

Parent DLL: CMFG

Location: Client/Server

Language: NER

Functional Description

Purpose


The purpose of this business function is to retrieve the User Defined Code from the User Defined 

Codes File (F0005) using SY, RT, DSC2 (Second Description).


Setup Notes and Prerequisites


None.



Special Logic


None.  



Technical Specification


Select  F0005 

BF szSystemCode=SystemCode   BF 

szUserDefinedCodes=UserDefinedCodes

UserDefinedCode

Description001

BF szDescriptionLine1=Description01002

SpecialHandlingCode

UDCOwnershipFlag

HardCodedYN

UserID

ProgramID

DateUpdated

WorkStationID

TimeLastUpdated


IF File IO Status NESuccess

Fetch Next  F0005

SystemCode  

UserDefinedCodes

BF szUserDefinedCode<UserDefinedCode

Description001

Description01002

SpecialHandlingCode

UDCOwnershipFlag

HardCodedYN

UserID

ProgramID

DateUpdated

WorkStationID

TimeLastUpdated


ELSE

BFcErrorCode='1'

IFBF cSuppressErrorMessageNE'1'

BF szErrorMessageID='0027'

ENDIF

ENDIF





Data Structure

D3700020 - Get UDC by Second Description

Parameter NameData ItemData TypeReq/OptI/O/Both
szSystemCodeSYcharOPTINPUT

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

szUserDefinedCodesRTcharOPTINPUT

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

szUserDefinedCodeKYcharOPTOUTPUT

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

szDescriptionLine2DSC1charOPTINPUT

Brief information about an item; a remark or an explanation.

cSuppressErrorMessageEV01charOPTBOTH

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

cErrorCodeERRCcharOPTOUTPUT

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).

szErrorMessageIDDTAIcharOPTOUTPUT

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.

Related Functions

None

Related Tables

None