‎2007 Jan 11 7:02 PM
Hi,
Are the following statements possible?
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.
I would get an error saying that "The statement "LOG_WRITE" is not expected. A correct similar statement is "WRITE". statements is "WRITE".
Thanks
Will
‎2007 Jan 11 7:13 PM
‎2007 Jan 11 7:03 PM
Hi,
Please explain your problem in detail. Are you trying to give an Error message ?
Regards,
Mukul
‎2007 Jan 11 7:12 PM
Hi Will, I think that what you may be seeing is a Macro. The LOG_WRITE is the name of the macro. But it seems that the definition is not local to your program. Maybe it is in a an INCLUDE which you are not including into your program.
Here is an example of what I mean.
report zrich_0001.
data: i_dsource type sy-msgv1 value 'Some Value'.
define log_write.
write:/ &1, &2, &3, &4, &5.
end-of-definition.
log_write 'E' "message type
'R3' "message class
'009' "message number
i_dsource "message variable 1
' '. "message variable 2
log_write 'S' "message type
'R1' "message class
'007' "message number
i_dsource "message variable 1
' '. "message variable 2
log_write 'W' "message type
'R2' "message class
'003' "message number
i_dsource "message variable 1
' '. "message variable 2
Regards,
Rich Heilman
Message was edited by:
Rich Heilman
‎2007 Jan 11 7:13 PM
‎2007 Jan 11 7:26 PM
Hi Will,
I think LOG_WRITE is standard macro for BIW extraction.
Please check this links perhaps they may help.
http://www.bwexpertonline.com/downloads/Extractor_Source_Code.doc
Regards,
Ferry Lianto
‎2010 Jun 16 4:26 PM
You have to put in (on the top or inside TOP-Includes) the include LRSAXD01
INCLUDE LRSAXD01.