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

application log message change

Phillip_Morgan
Contributor
0 Likes
1,687

I'm using the following fm to change a message in a log:

BAL_LOG_MSG_CHANGE

but it is not changing it. Am I supposed to refresh or reload or something?

What I want to do is the following:

- show log for special tasks in error

- you can fix problem online from log (callback routine)

- when you return message is updated accordingly

not working...

Any ideas?

thanks,

Phillip

4 REPLIES 4
Read only

Former Member
0 Likes
969

Don't you get any sy-subrc errors ?

Regards,

Subramanian V.

Read only

Phillip_Morgan
Contributor
0 Likes
969

No sy-subrc, but I have an update.

I call BAL_DSP_LOG_DISPLAY again and it does display the modified message but with an unwanted effect.

Log screen is in two parts: header and detail (more or less)

Now I have two headers.

Still searching...

Read only

Former Member
0 Likes
969

The documentation says that these logs are in memory. You might need to use FM BAL_DB_SAVE. The documentation is at:

http://help.sap.com/saphelp_46c/helpdata/EN/d6/5d7f38f52f923ae10000009b38f8cf/frameset.htm

Brian

Read only

Former Member
0 Likes
969

Hi, Phillip!

Try to set "refresh" flag for the changing parameter of callback routine:

FORM log_callback_ucomm

CHANGING c_s_user_command_data TYPE bal_s_cbuc.

CASE c_s_user_command_data-ucomm.

WHEN 'UCOMM1'.

  • BAL_LOG_MSG_CHANGE call

c_s_user_command_data-refresh = 'X'.

c_s_user_command_data-ucomm_exec = 'X'.

ENDCASE.

ENDFORM.

Regards,

Maxim.