Skip to Content
Author's profile photo Former Member

Enhancement toolbar for ‘Monitoring and Error Handling’ in AIF – Series Ⅰ


  • You have some basic knowledge of AIF
  • You would like to implement your custom functionality in toolbar
  • You are a ABAPer.

There are two alternative approaches to achieve this:

Ⅰ. Through the custom configure,

      1, To copy the standard status ‘/AIF/ERROR_HANDLING_TRANS/0300’ to your ‘Z’ status, add your custom function code.


      2, To copy the standard ‘Action handler’ class ‘/AIF/CL_AIF_ACTION_HANDLER’ to your ‘Z’ class.

          Add a method, keep name with ‘ON_[FunctionCode]_[Number]’ format, number means the view number,

          you can find similar method in this class. For my example, the method name is ‘ON_SIMU_0’.


      3, To open the ‘Define Applications’ in /n/AIF/CUST. To replace ‘Action handler’ with your ‘Z’ class, type your custom status here.


     4, When you click the button on toolbar in /n/AIF/ERR, Result will be like this:


Ⅱ. Through BADI.

     1, You can easily find there are some useful enhancement spots in ‘/AIF/ERROR’ package,

         what we wanted is ‘/AIF/V1_ACT’ BADI. Also you can implement other BADI which works for other view.

         To create a enhancement implementation,


     2, and create a BADI implementation under it.


     3, ‘GET_FUNC_LIST’ is used to set the function code,

         ‘DO_ACTION’ is do action when you click button, 🙂




     4, When you click the button on toolbar in /n/AIF/ERR, Result will be like this:


You will find it is more flexible using BADI to achieve same functionality, due to you can according values in ‘AIF KEYS’

to decide this interface whether have this toolbar button.

This is my first blog, hope it`s useful, Please feel free give me suggestion or comments.

Best regards,


Assigned Tags

      Be the first to leave a comment
      You must be Logged on to comment or reply to a post.