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

Is there such a statement LOG_WRITE

Former Member
0 Likes
2,323

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,231

Are you looking for something like FM LC_WRITE_SYSLOG?

Rob

5 REPLIES 5
Read only

Former Member
0 Likes
1,231

Hi,

Please explain your problem in detail. Are you trying to give an Error message ?

Regards,

Mukul

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,231

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

Read only

Former Member
0 Likes
1,232

Are you looking for something like FM LC_WRITE_SYSLOG?

Rob

Read only

ferry_lianto
Active Contributor
0 Likes
1,231

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

Read only

Former Member
0 Likes
1,231

You have to put in (on the top or inside TOP-Includes) the include LRSAXD01

INCLUDE LRSAXD01.