WriteTextMessage

Write Text Message

Major Business Rule

Object Name: B4100680

Parent DLL: COPBASE

Location: Client/Server

Language: C

Functional Description

Purpose

This function writes records to the Print Messages Table (F4016) for the Item and Print Message 
passed in, if one does not exist.


Setup Notes and Prerequisites

The Item Number (ITM), Print Message (INMG), Effective Date (EFTJ) and Expired Date (EXDJ) are 

required input parameters.


Technical Specification


This function fetches a record in the Print Message Table for the Item and Print Message passed in.  

If the record does not exist, the record is added.



^

Data Structure

D4100680 - Write Text Message

Parameter NameData ItemData TypeReq/OptI/O/Both
szPrintMessageINMGcharNONENONE

A user defined code that you assign to each print message. Examples of text used in messages are engineering specifications, hours of 
operation during holiday periods, and special delivery instructions.

mnShortItemNumberITMMATH_NUMERICNONENONE

An inventory item number. The system provides three separate item numbers plus an extensive cross-reference capability to other item 
numbers (see data item XRT) to accommodate substitute item numbers, replacements, bar codes, customer numbers, supplier numbers, and 
so forth. The item numbers are as follows:   o Item Number (short) - An eight-digit, computer-assigned item number     o 2nd Item Number - The 
25-digit, free-form, user defined alphanumeric item number     o 3rd Item Number - Another 25-digit, free-form, user defined alphanumeric item 
number

jdEffectiveDateEFTJJDEDATENONENONE

The date when a transaction, contract, obligation, preference, or policy rule becomes effective.

jdExpiredDateEXDJJDEDATENONENONE

The date on which a transaction, text message, agreement, obligation, or preference has expired or been completed.

szProgramIDPIDcharNONENONE

The number that identifies the batch or interactive program (batch or interactive object). For example, the number of the Sales Order Entry 
interactive program is P4210, and the number of the Print Invoices batch process report is R42565. The program ID is a variable length value. 
It is assigned according to a structured syntax in the form TSSXXX, where: T The first character of the number is alphabetic and identifies the 
type, such as P for Program, R for Report, and so on. For example, the value P in the number P4210 indicates that the object is a 
program. SS The second and third characters of the number are numeric and identify the system code. For example, the value 42 in the number P4210 
indicates that this program belongs to system 42, which is the Sales Order Processing system. XXX The remaining characters of the numer are 
numeric and identify a unique program or report. For example, the value 10 in the number P4210 indicates that this is the Sales Order Entry 
program.

szLanguagePreferenceLNGPcharOPTNONE

A user defined code (01/LP) that specifies the language to use on forms and printed reports. Before you specify a language, a code for that 
language must exist at either the system level or in your user preferences.

Related Functions

B9800100 Get Audit Information

Related Tables

F4016 Print Messages