DeleteTextMessages

Delete Text Messages

Major Business Rule

Object Name: B4001070

Parent DLL: COPBASE

Location: Client/Server

Language: C

Functional Description

Purpose

This function will perform all of the deletes associated with the deletion of a print message.  If 

the message deleted is for the base language all other languages that the message is set up for will 

also be deleted.  The Generic Text containing the message will be deleted.  The print message will also 

be removed from the UDC table 40/OR.


Technical Specification


2.4Processing 



1.If the language preference field is blank then
delete all records in the Print Message file (F4016) using IMNG and ITM as the key

Else

delete records in the Print Message file (F4016) using INMG, ITM and LNGP as the key

2.If F4017 Flag is equal to '1' and Language Preference is blank

Delete the Report Default records (F4017) using two keys INMG and ITM

  If PrintMessage passed in is blank, load ITM with "-9999999" .

  If PrintMessage passed in is not blank,  load ITM with "0".   

   Else

  Do nothing


3.If DeleteUDCFlag = '1' and Language Preference is blank, delete print message value out of the 
user defined code F0005.


4.If Language Preference is not blank, delete print message value out of the user defined code 
F0005D.






Data Structure

D4001070 - Delete Text Messages

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

szLanguagePreferenceLNGPcharNONENONE

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.

cDeleteUDCFlagEV01charNONENONE

Special Input Expected
'1' = Delete Print Message out of F0005 (UDC)  table.ab 


^

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.

cDeleteF4017FlagEV02charNONENONE

Special Input Expected
'1' = Delete the record from the F4017 file. 

If blank, don't delete the record from the F4017 file.

^

Related Functions

None

Related Tables

F0005 User Defined Codes
F0005D User Defined Codes - Alternate Language Descriptions
F4016 Print Messages
F4017 Print Message Report Defaults