Sunday, 9 October 2011

My Experience with ABAP

Here I would like to post one of my experience with SAP ABAP,

This happened in one of the Implementation project project where I have worked.
After all the unit testing done in the Development we have moved the custom developments in to the testing system and started our testing there.

One of the program which was developed by a Junior Abaper started giving an unexpected Error message.

Its actually a report program. It hardly uses some error messages and the funny part here is that we Can't able to find out from where the error is coming and the particular error message is no where user in the program.

After doing some investigation I got little suspicious with the message statement that was written in the program, the junior Abaper has given the message statement without mentioning the message class and message number.



As he haven't mentioned the message class and the message number, the system taken the default message class 00 and the message number 001 and used the same to display the error message. As in the testing system the default message class and the message numbers are different, you have got a unexpected error message.

The default message class will usually have all '&' symbols to facilitate the message without the message class and the message numbers, but in some cases, the default message class might look different.

So as a Best practice, always use the recommended syntax/Standards for any statement that you are writing in the code.

No comments:

Post a Comment