2015 Jun 15 7:07 AM
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
; -
2015 Jun 17 11:49 AM
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
2015 Jun 17 11:49 AM
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
2015 Jun 17 12:50 PM
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.
2015 Jun 17 12:58 PM
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.