Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Error Message problem

Former Member
0 Likes
569

Hi

I have a message class for which all the message numbers have been used ,from 000 to 999.

I would like to have more err message numbers for my project .

Can anyone give me a sugegstion on how can I do this change without altering the message class and I need to give err codes to the calling/external systems too and they can take 4 CHAR field.

I would like to move from a 3 character field for mssg number to 4/5 character field so that I can cross the 999 mark .

Please give me your valuable suggestions.

Thanks

4 REPLIES 4
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
527

Not possible, create another message class and start from 001, or you could use an existing message in your message class. If there is a generic message like....

001    & & & &

You could simply use this message and enter your own text.

message e001(ZZZ) with 'This is the error'.

Regards,

Rich Heilman

Read only

0 Likes
527

Thanks Rich Heilman

But the problem is that I dont want the same error numbers to be passed ie the range from 000 to 999.I want the numbers to be different possibky say 100 or more.

Is there any way I can go to a 4 char varaible for message numbers ?

Thanks

Read only

0 Likes
527

No, there is no way to have 4 digit message numbers.

Regards,

Rich Heilman

Read only

rajasekhar_matukumalli3
Active Participant
0 Likes
527

Hi Ameet,

I really did not understand on why you are interested in using only one message class. The domain MSGNR is defined as Char(3), so there is no way you can store more than 999.

Try using another message class or create a generic message as suggested above.

Hope this solves ur problem

Rajasekhar