ALV stands for ABAP List Viewer. ALV provides a standard grid format and user interface to all ABAP reports. ALV is created by a set of standard function modules and classes provided by SAP.
Questions tagged [alv]
208 questions
7
votes
1 answer
Create dynamic ABAP internal table
On selection screen, the user needs to insert a table name, and I need to get first 3 fields from that table and display them in an ALV for the output. What I understand from reading tutorials is that I need to call method…

usesser
- 191
- 3
- 21
6
votes
4 answers
ALV Grid toolbar is missing in fullscreen
I've created a simple ALV grid and populated the grid with data, now the grid is displayed after the selection screen. I'm not using custom container and display the grid in full screen.
Is there a property of ALV grid object that enables toolbar…

JordinB
- 306
- 1
- 2
- 13
5
votes
1 answer
Is there a way to prevent CL_SALV_TABLE from removing leading spaces?
Is there a way to prevent an instance of CL_SALV_TABLE from removing leading spaces in the display?
I have the following piece of code in which I put a single space in front of Master text and two spaces in front of Slave text.
REPORT zzy.
CLASS…

Jagger
- 10,350
- 9
- 51
- 93
5
votes
1 answer
Is it possible to add a user defined function to CL_SALV_TREE without copying GUI status?
Is it possible to add a user defined function to an instance of CL_SALV_TREE without copying GUI status to the report where this instance is used?
What I am trying to do is to add a custom function with add_function method.
REPORT zzy.
CLASS…

Jagger
- 10,350
- 9
- 51
- 93
4
votes
2 answers
Unexpected database commit when displaying data using cl_salv_table
In an ABAP program I have noticed unexpected persistence of data when displaying a local table using the class cl_salv_table.
To reproduce I have created a minimal code sample. The program does an insert, displays data in an ALV, then does a…

founderio
- 407
- 1
- 3
- 15
4
votes
1 answer
Object is still in inactive version
I have created a basic application to get company details in SAP ABAP with following details.
Package Name : ZSPT_930AM_PKG_1
Application Name : ZSPT_930AM_CMPNY_INFO_1
Transaction Code : Z39CD
Transport Request Number : EC6K900010
Sub Request…

Yavvari Pradeep
- 301
- 5
- 19
4
votes
1 answer
Mark checkboxes in ALV output grid as selected
I am creating an ALV output grid using class cl_gui_alv_grid. One of the columns of the output table is defined as a checkbox by using the corresponding record of the fieldcatalog:
ls_fcat-checkbox = 'X'.
ls_fcat-edit = 'X'.
For all the records of…

E. Meco
- 53
- 1
- 1
- 5
4
votes
1 answer
Retrieve filtered data from ALV
Is there an easy way of retrieving the ALV data that is displayed when there are also filters used on that ALV?
The ALV used is an object of CL_GUI_ALV_GRID. When showing it to the user, there is a filter placed on it by default. The user also has a…

Erik
- 361
- 5
- 16
4
votes
1 answer
Add/Change Column Name on Internal Table ALV
What I need is to add titles to these two columns (highlighted in yellow) and I don't know how to do that.
FORM display_alv.
DATA: gr_functions TYPE REF TO cl_salv_functions.
DATA: gr_display TYPE REF TO cl_salv_display_settings.
…

André Gomes
- 59
- 1
- 9
4
votes
2 answers
Getting a level of an ALV tree node?
I created an ALV TREE report, using cl_gui_alv_tree, that has 3 levels. I'm also implementing an event handler for when he double clicks a node.
My problem is that I want to take some actions only when he double clicks a node that is a root node.…

Laloski
- 71
- 1
- 2
- 3
3
votes
2 answers
Displaying retrieved value in excel file into ALV
Good Day Everyone,
There is this something i've been trying to exercise in abap and that is the Displaying of column datas in ALV by retrieving the values from excel file into an internal table. I've been trying to debug my program for quite some…

Kid
- 100
- 1
- 3
- 16
3
votes
1 answer
Create Fieldcatalog for INCLUDE STRUCTURE types?
I created a structure with "Types":
TYPES: BEGIN OF ty_pers_bst.
INCLUDE STRUCTURE zieb_pers_bst.
TYPES: lifname TYPE zieb_lieferant-lifname,
END OF ty_pers_bst.
data: i_structure_bst_add TYPE ty_pers_bst.
I now want to use…

Ventior
- 207
- 1
- 10
3
votes
1 answer
Display two tables on one screen with CL_SALV_TABLE
I would like to ask if it is possible to display two related tables (e.g., by PO number) on one screen by using the class CL_SALV_TABLE.
If not, what other class would work?
Thank you in advance!

user_unknown007
- 57
- 2
- 7
3
votes
3 answers
Generic solution for F4 search help in OO ALV grid
I have an easy to use function module to create an ALV grid for almost any type of table, especially without a DDIC type. Editing is supported as well.
Basically it creates a field catalog by RTTI and instantiates the standard CL_GUI_ALV_GRID class…

Marcel
- 1,688
- 1
- 14
- 25
3
votes
3 answers
Two-level column headings in ALV or any other grid layout?
To illustrate what I want:
| Category A | Category B | C |
| A.A | A.B | A.A | A.B | |
| A.A.A | A.A.B | A.B.A | A.B.B | B.A.A | B.A.B | B.B.A | B.B.B | |
I…

Mike
- 61
- 2
- 3