Month: October 2014

add extra custom fields to application log

Earlier I had written this post about application logging which can be used as a template, but it was written by obsolete function modules . This time i want to share new BAL versions of these function modules with an extra functionality.
Application log is a standard logging mechanism provided by SAP and could be implemented by ABAP developers to custom programs. A disadvantage of application log seems the lack of classifying logged data according to its content. For example your are logging a mass report which creates work orders from notifications. However some of the work orders can not be created because of inadequate data . The BAPI creating work orders would get errors and you have to write this notifications to application log. Unfortunately you can not log notification numbers as a separate column.

find BADI’s with debugging

As describes in earlier post , any customer-exit including BADI which is formerly implemented can be found by debugging standard SAP code. For unimplemented BADI’s there are other alternatives to find BADI implementation points. From this alternatives i mostly prefer debugging. Let me put in order the items required to determine places to implement BADI’s.

find implemented user-exits, BADI’s or enhancements with New Debugger Scripting

While dealing with standard code , you may want to know every custom code formerly implemented for a particular transaction. We know that custom code embedded in a standard code means a custom function or report called dynamically , a BADI or enhancement implementation or finally an user-exit implementation. To summarize a program or include or function module starting with Z letter is called.

convert smartforms into PDF format and download to your local

For print-outs many technologies has been put into service by SAP till today. ABAP’ers in my generation have mostly encountered with SmartForm technology. Before SmartForm there used to be SapScript technology. And nowadays the trend is AdobeForms. My aim in this post is to adapting old technologies to new ones with ABAP coding. Writing this post my real purpose was adding some metadata to PDF outputs while extracting them from SAP systems. For an introduction first i wanted to explain how a SmartForm output can be converted to Adobe’s PDF format.