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

message should be logged

former_member217546
Participant
0 Likes
810

Hai i am enhancing one transaction code ,i need to raise an exception which should not be displayed in online.that message should be logged.How can i do this ? and Where can i see this message after running the transaction code.any one help me by explain the procedure ..

1 ACCEPTED SOLUTION
Read only

Maciej_DomagaBa
Contributor
0 Likes
777

Use function module BAL_LOG_CREATE to initiate log header data in memory. Then use fm BAL_LOG_MSG_ADD to append messages to the log. Finally use fm BAL_DB_SAVE to save the log in the database. Then u can use tcode SLG1 to view the log.

See online documentation for these modules - it's pretty good and explains the concept of application log programming. See also other modules from function group SBAL.

regards

Use function module BAL_LOG_CREATE to initiate log header data in memory. Then use fm BAL_LOG_MSG_ADD to append messages to the log. Finally use fm BAL_DB_SAVE to save the log in the database. Then u can use tcode SLG1 to view the log.

See online documentation for these modules - it's pretty good and explains the concept of application log programming. See also other modules from function group SBAL.

regards

5 REPLIES 5
Read only

Former Member
0 Likes
777

Use the aplication log. Have a look at transaction SLG1.

Read only

0 Likes
777

could u plz tell me how can i maintain application log.

Read only

Former Member
0 Likes
777

Hi,

I do not have much idea how can this be achived in standard but if I am asked to do this

I can achive this using custome codes steps are as follows.

1. Design a ztable with userid date time t-code as primary key

2. write an enhancemnt which gets called when exception is raised.

3. Populate data in z table inside the enhancement.

Now I have data in a ztable if required a zreport can be designed.

Regards

Bikas

Read only

Maciej_DomagaBa
Contributor
0 Likes
778

Use function module BAL_LOG_CREATE to initiate log header data in memory. Then use fm BAL_LOG_MSG_ADD to append messages to the log. Finally use fm BAL_DB_SAVE to save the log in the database. Then u can use tcode SLG1 to view the log.

See online documentation for these modules - it's pretty good and explains the concept of application log programming. See also other modules from function group SBAL.

regards

Read only

0 Likes
777

Thank u very much...its working ..