Sunday, July 6, 2008

Is it a Bug?

By Joyjit Ghosh,
Kolkata
, India
.

I don't know whether any body faced this problem or not but I have seen that whenever I give "!" (Exclamation mark) as value in any input field which is defined as mandatory in the selection screen, SAP totally ignores it and gives error message. Whereas if you provide any other special character as input SAP recognizes it.

For example check this program:


REPORT Z_CHAR_DEMO .

parameters: p_char(1) type c obligatory lower case.

start-of-selection.

write: /'Your have entered: ', p_char.

Here I have a mandatory parameter of character type with length 1. If you give any value except "!"/ " " it will display output.





But for "!", it will display error message.



I have been told by an R/2 guy that this problem has a historical reason, in R/2 exclamation mark ("!") is considered as space and R/3 is inherited from R/2 so R/3 still considers "!" as space though it recognizes blank as well. But I don't get any chance to validate his version.
But from R/3 perspective whether we should consider it as a bug? Or it has some other reason(s) other than the historical one? It would be great if some of you can throw some light on it.






1 comment:

JeePeeBee said...

An exclamtion mark in SAP is interpreted as a clear field an a reset to the initial value.

The strange thing is that when you let SAP propose a password in SU01 it sometimes starts with an exclamation mark.. This will ofcourse not work.