Skip to Content
0
Former Member
Jan 09, 2008 at 09:04 AM

Error in function module

472 Views

Hi,

I am writing the code for generic extractor. In function module, I am writing

  • Check DataSource validity

CASE i_dsource.

WHEN 'Z_PRE_POST'.

WHEN OTHERS.

IF 1 = 2. MESSAGE e009(r3). ENDIF.

  • this is a typical log call. Please write every error message like this

log_write 'E' "message type

'R3' "message class

'009' "message number

i_dsource "message variable 1

' '. "message variable 2

raise error_passed_to_mess_handler

endcase.

While activating this function module, I am getting an error which is:-

The statement "LOG_WRITE" is not expected. A correct similar statement is "WRITE"...

I have used it in many codes but on different servers. This is a new system. Can anyone tell me why this is happening?

Thanks!