Functional Description
Purpose
This function reads the all records available in UDC Table (F0005) with System Code and Code Type.
It will return UDC Value left justify and the UDC Description. If the last record is read for,
LastRecordFlag will be set to a '1'. An ErrorMessageID will return a value only if no records exist in UDC
Table.
Setup Notes and Prerequisites
Special Logic
Technical Specification
Parameters
Data Item Data Structure Description I/O Required Notes
RT Record Type I Y
SY System Code I Y
KY Code Value O Y
DL01 Description O Y
EV02 Suppress Error Message I N
DTAI Error Message ID O N Error will be set as '3143' only if
hUser or hRequest fails; or '0002'
the first fetch fails (no records
exist in F0005)
GENLNG User Handle I Y Will be released and set back to
NULL if the Last Record Flag is set
to '1'.
GENLNG Hrequest I Y Will be relased and set back to
NULL if the Last Record Flag is set
to '1'.
EV01 Last Record Flag O Y The Last Record Flag will be set to
'1' if no more records are found
in F0005.
Related Tables
F0005 - UDC Table
Related Business Functions
Processing
Read the UDC table (F0005) equal to the record type and system code passed in sending out the code
and it's description.
When no more records sent back a '1' will be in the Last Record Flag.
D4100450 - Return User Defined Codes Records
Parameters
Data Item Data Structure Description I/O Required Notes
RT Record Type I Y
SY System Code I Y
KY Code Value O Y
DL01 Description O Y
EV02 Suppress Error Message I N
DTAI Error Message ID O N Error will be set as '3143' only if
hUser or hRequest fails; or '0002'
the first fetch fails (no records
exist in F0005)
GENLNG User Handle I Y Will be released and set back to
NULL if the Last Record Flag is set
to '1'.
GENLNG Hrequest I Y Will be relased and set back to
NULL if the Last Record Flag is set
to '1'.
EV01 Last Record Flag O Y The Last Record Flag will be set to
'1' if no more records are found
in F0005.
^
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
szSystemCode | SY | char | NONE | NONE |
A user defined code (98/SY) that identifies a system. Valid values include:
01
Address Book
03B
Accounts Receivable
04
Accounts
| ||||
szCodeType | RT | char | NONE | NONE |
A code that identifies the table that contains user defined codes. The table is also referred to as a UDC type. | ||||
szUDCValue | KY | char | NONE | NONE |
A list of valid codes for a specific user defined code list. | ||||
szUDCDescription1 | DL01 | char | NONE | NONE |
A user defined name or remark. | ||||
cLastRecordFlag | EV01 | char | NONE | NONE |
Parameters
| ||||
cSuppressErrorMessage | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
szErrorMessageID | DTAI | char | NONE | NONE |
Parameters
| ||||
idHrequestHandle | GENLNG | ID | NONE | NONE |
Parameters
| ||||
idHuserHandle | GENLNG | ID | NONE | NONE |
Parameters
|
None |
F0005 User Defined Codes |