Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

AIAB report Enhacement

former_member218424
Participant
0 Kudos
618

TCODE - AIAB

The requirement is to add two columns (cost center and its description), please guide me how to achieve this.

But first thing, is it possible ??

Below is screenshot

; -

1 ACCEPTED SOLUTION

Ankit_Maskara
Product and Topic Expert
Product and Topic Expert
0 Kudos
347

Hello Kunal,

You can try this.

The T-code AIAB uses program SAPMA15B. On doing a search on the FM REUSE_ALV_GRID_DISPLAY, we find include MA15BF01 which is calling the FM to display the ALV passing data in POSTAB whose type is in include MA15BTOP.

Now to achieve your requirement you would need to enhance the declaration of type POSTAB (in include MA15BTOP) with two additional fields and then populate their values in the table POSTAB(in include MA15BXFA). Then you need to modify the field catalog to show these two additional columns which is in include MA15BF01. Now the problem is it uses structure AIMTV so you need to enhance the data dictionary structure AIMTV and the two fields. This is a standard structure and would be used elsewhere too.


So, my advice would be to copy the program SAPMA15B   to a Z program and then use your Zstructures. Then create ZAIAB and use it.


BR

3 REPLIES 3

Ankit_Maskara
Product and Topic Expert
Product and Topic Expert
0 Kudos
348

Hello Kunal,

You can try this.

The T-code AIAB uses program SAPMA15B. On doing a search on the FM REUSE_ALV_GRID_DISPLAY, we find include MA15BF01 which is calling the FM to display the ALV passing data in POSTAB whose type is in include MA15BTOP.

Now to achieve your requirement you would need to enhance the declaration of type POSTAB (in include MA15BTOP) with two additional fields and then populate their values in the table POSTAB(in include MA15BXFA). Then you need to modify the field catalog to show these two additional columns which is in include MA15BF01. Now the problem is it uses structure AIMTV so you need to enhance the data dictionary structure AIMTV and the two fields. This is a standard structure and would be used elsewhere too.


So, my advice would be to copy the program SAPMA15B   to a Z program and then use your Zstructures. Then create ZAIAB and use it.


BR

0 Kudos
347

Hi Ankit,

Thanks for the reply,

I did the same study as you mentioned above,

Structure AIMTV is used for this program only, but then also it would be tedious work to do.

Implicit enhancement are available.

Ankit_Maskara
Product and Topic Expert
Product and Topic Expert
0 Kudos
347

Even if you find an implicit enhancement then also you need to populate the details mentioned by me and it would require you to enhance the standard structure AIMTV.

Also it not much tedious because you know all the places where you will do code changes. Its just not advisable to change the standard code if you can achieve it via custom build.

BR.