Skip to Content
0
Former Member
Dec 03, 2009 at 06:00 PM

ALV - Automatic Adjustable Columns (based on selection criteria)

44 Views

Hi,

I am currently in the process of building a costing report for a number of materials.

For the output, the columns will be the months, while the rows will pertain to the specific materials (1 or 2 columns for the material text and info).

For example, the columns of the report will look something like:

Material January February March u2026.. December

In the selection-screen, I will have input fields, including posting period range (month) and fiscal year single value.

If the user enters year 2008 and period 10, I only want 1 column for October, with the other columns not present

If they enter year 2008 and period 10 to 11, then only columns October and November show be displayed.

Is this possible in abap ALV programming? If so, how? Are there FMu2019s and object-oriented routes that I can take & if so, what do I do? Please provide code samples if possible.

Please help.

Thanks,

John