2010 Apr 20 8:15 AM
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 ..
2010 Apr 20 9:50 AM
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
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 ..
2010 Apr 20 8:25 AM
2010 Apr 20 9:39 AM
2010 Apr 20 8:39 AM
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
2010 Apr 20 9:50 AM
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
2010 Apr 20 11:14 AM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |