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: 

Adding new columns to an ALV list

former_member367551
Participant
0 Kudos
498

Dear forumers,

I have a scenario as follows, and I would appreciate any inputs here:-

A BADI would be created and inserted at a point in a report program where an ALV list will be displayed.

If the BADI is implemented, its purpose is to 'customize' / 'enhance' the ALV list by adding two new columns to the ALV list (the logic in populating the two new columns in the ALV list will be defined in the BADI implementation). Is this possible to be done, without changing the original structure of the ALV list?

And if this can be achieved, how can this be done? Just a general idea would be sufficient.

Many thanks in advance for any advice.

2 REPLIES 2

Former Member
0 Kudos
214

HI,

Yes this can be done.

You can add extra column by enhancing the structure of field catalog. There are FM like REUSE_ALV_FIELDCATALOG_MERGE which takes a structure and creates the field catalog table. You can look for such FM and then directly enhance the structure. or you can always do implicit enhancement and add you extra columns.

But again you will have to make sure these columns are populated in the corresponding value table. Otherwise new columns will be created and will have blank values.

For this again you will have to enhance the structure of value table and in some way either implicit or explicit enhancement you will have to populate the value in the table.

Regards,

Pranav.

madhu_vadlamani
Active Contributor
0 Kudos
214

Hi Deborah,

Yes it is possible.Lets see directly an example va05n sales order report.In this case we can add new columns in existing report.We need to add new fields for that structure and moved the fields from header or item level.

Regards,

Madhu.