Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
MichalKrawczyk
Active Contributor
0 Kudos

Everyone who ever tired the abap mappings most probably

also used the traces
to see how the tags are getting populated with values. But are those popular traces
easy to monitor via transaction SXBM_MONI in the XML format? If you'd like to try something else
have a look below. I will try to show an alternative way - standard application log on the ABAP stack.
You can use this log to create log entires which will be visible in a very nice format via transaction SGL1.





The procedure to create this log is quite simple:



Step 1




At first you need to create an object and a subobject
via transaction SGL0 (remember about the Z-prefix).







As you see the application log is very well structured
and provides a nice alternative to mapping traces.








Some of the most common issues with this logs
and it's use with the ABAP mappings:



Problem




How to turn if ON/OFF dynamically?



Solution




You can create a configuration table in which you
can store the ON/OFF indicator
along with the message
mapping name. This way the logging will be only turned ON

when you need it (no unnecessary logs)
and you can control it via this table.





Problem




How to select only one messageID?



Solution




Just populate logheader-extnumber field
with the messageID
and then you'll be able to
use the messageID in SGL1.





more info:




Application log - help.sap.com



[SAP Developer Network Blog: Message handling in BSP | Message handling in BSP
]



4 Comments
Labels in this area