Skip to Content

Prerequisites:

  • 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.

      /wp-content/uploads/2014/11/2_576425.png

      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’.

       /wp-content/uploads/2014/11/3_576437.png

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

       /wp-content/uploads/2014/11/1_576388.png

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

      /wp-content/uploads/2014/11/10_576438.png

Ⅱ. 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,

      /wp-content/uploads/2014/11/5_576449.png

     2, and create a BADI implementation under it.

      /wp-content/uploads/2014/11/6_576450.png

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

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

      /wp-content/uploads/2014/11/7_576451.png

      /wp-content/uploads/2014/11/8_576455.png

      9.PNG

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

      /wp-content/uploads/2014/11/11_576458.png

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,

Archer

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply