Use these methods to provide error messages on a display file.
Specify the text directly as a constant on the DDS keyword. When you want to have more than one language, you must duplicate the DDS source code and translate constants within the DDS specifications. You can then create a separate display file object for each language.
When using predefined messages instead of constants, you need to have multiple display files.
Instead of using different display files, exchange only the used message file by setting the library according to the language that you want to use.
For example:
A field-name length type usage EDTCDE(x) A 61 ERRMSGID(USR3456 [*libl/]APPMSGF [&MSGFLD2]) A MSGFLD2 length type P TEXT('Message data field') and ADDMSGD MSGID(USR3456) MSGF(APPTXDENU/APPMSGF) MSG('Delivery date &1; is earlier than production end date &2') and ADDMSGD MSGID(USR3456) MSGF(APPTXDDEU/APPMSGF) MSG('Lieferdatum &1; ist . . .') . . .