Application Development 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: 

write to application log in user exit

Former Member
0 Kudos

Hi all,

I want to write a collection messages to the application log in user exit EBIA0003, user exit for transaction EA00, but I only can write one if I just use

message eYYY(x) with lv_msgv1

lv_msgv2

lv_msgv3

lv_msgv4.

It will be placed in the log after the exit.

I've already tried with the BAL functions, but it doesn't seem to work or maybe I'm doing something wrong. Is there a way to write a collection of messages in to the application log in this user exit?

greetz Pieter

2 REPLIES 2

Former Member
0 Kudos

Hi

Use t-code SE62

Clemenss
Active Contributor
0 Kudos

Hi Pieter,

you can do using BAL functions if the lop is already opened. Try to find out what parameters the transaction uses for LOG access (handle!). Do the calls in the exit accordingly.

We append messages to the current log using FUNCTION 'BAL_LOG_MSG_ADD'. If the log handle is not available, you might access it using dynamic assign like

ASSIGN ('(<program>)<field>') TO <field> .

Regards,

Clemens