Skip to Content
Author's profile photo Former Member

Enhancement toolbar on View3 and View5 for ‘Monitoring and Error Handling’ in AIF – Series Ⅱ

I`d like to continue last bloghttp://scn.sap.com/community/aif/blog/2014/11/03/enhancement-toolbar-for-monitoring-and-error-handling-in-aif

Today i will write something about toolbar enhancement on View3 and View5 in ‘Monitoring and Error Handing’, TCode: /AIF/ERR.

What is View3 and View5, Maybe some new developers to AIF will have this question, here it is:

View1 is Data message view.

View2 is Data structure view.

View3 is Data view.

View4 is a technical view, you need tick ‘technical mode’ check box on selection screen, then it will display.

View5 is log message view.

13.PNG

First, let`s enhance View3. In ‘/AIF/ERROR’ package, enhancement spots ‘/AIF/ERROR_HANDLING’.

1, To create a BADI Implementation:

1.PNG

2.PNG

2, To create a Implementing Class:

3.PNG

4.PNG

  4,  Write your logic in this two method:

         ‘GET_FUNC_LIST’ is used to set the function code,

         ‘DO_ACTION’ is do action when you click button on toolbar.

5.PNG

6.PNG

5, Activate class and BADI, the result on View3:

     7.PNG

Second, go to enhance View5.

1, To create BADI Implementation and Implementation class:

8.PNG

2,  Write your own code in below method, GET_ACT_LIST and DO_ACTION is same with View5, used to set  a button on toolbar and response it:

14.PNG

15.PNG

3, Activate Class and BADI, result like below, the new added button on toolbar of View5,

/wp-content/uploads/2014/12/11_615087.png

  When you double click the line item:

  12.PNG

Actually, each BADI have it`s own example implementation,  it`s very easy if you take a look at it 🙂 .

I will soon back for other enhancement. see u.

regards,

Archer

Assigned Tags

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