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
0
votes
1 answer
NULL object reference while creating ALV via static constructor. Why?
I was trying run this program copied from a tutorial.
But I am getting Null exception I this line
CALL METHOD list->SET_TABLE_FOR_FIRST_DISPLAY.
form My understanding the list object should be created in the class-constructor.
Method…

Philip Puthenvila
- 512
- 1
- 8
- 19
0
votes
1 answer
Hide adjacent duplicates comparing visible fields in SALV
Consider the heading (ABAP) pseudo code on a SALV-Grid.
I need something like this, or, some way to remove the visual vertical bloating of rows in the grid when the columns that differentiate them are hidden.
After a lot of reasearch, I doubt that…

user462982
- 1,635
- 1
- 16
- 26
0
votes
2 answers
Native SQL Program and ALV Layout
I created a program using from tCode = SE38
I am using Native SQL.
Here is my code:
DATA: BEGIN OF GetData OCCURS 0,
AUFNR Type COAS-AUFNR,
AUART Type COAS-AUART,
END OF GetData.
EXEC SQL PERFORMING loop_output.
SELECT…

Ramzy Nashaat
- 11
- 3
0
votes
1 answer
Grouping unsorted rows in an ALV
Is it possible to automatically group rows on unsorted fields in an ALV? Suppose for instance that I have the following output:
1 T_PM1 0271 6025984 1271 602721
1 T_PM1 0271 6025984 1765 602721
1 T_PM1 0271 6025984…

Lilienthal
- 4,327
- 13
- 52
- 88
0
votes
1 answer
Change layout of ALV tree programmatically
I want to change the layout of a cl_gui_alv_tree programmatically. My current approach is not working. This is my code so far, executed in screen's PBO:
CALL METHOD gs_0700-s_tree-r_tree->delete_all_nodes
EXCEPTIONS
failed =…
user212926
0
votes
1 answer
Overwrite functions in ALV
I want to overwrite some function in an ALV grid. But I can't manage to do it with a callback usercommand. this is just for non-standard functions. any idea? should I use a event exit? I tried something with it but couldn't do it either :P
FORM…

kookies
- 61
- 2
- 3
- 8
-1
votes
1 answer
Using confirmation prompt with cl_salv_table
I need dynamically (at runtime) set or unset confirmation prompt for ALV GRID created by cl_salv_table->display( ).
I set breakpoint before CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY', manually assign 'X' to is_layo-CONFIRMATION_PROMPT, and ALV GRID…

Вася Килобайтов
- 11
- 2
-1
votes
1 answer
not getting LIKP-LFART & VBAK-AUART in output table. Read Table lt_vbap is showing sy-subrc 4. getting dump with error"Field Symbol not assigned yet"
Create an ALV report
with select option VBRK-VBELN
with output :
VBRK-VBELN
VBRP-POSNR
VBRK-FKART
LIPS-VBELN
LIPS-POSNR
LIKP-LFART
VBAK-VBELN
VBAP-POSNR
VBAK-AUART
I am not getting LFART field from LIKP table and not getting AUART field…

Nitesh Bakshi
- 1
- 3
-1
votes
1 answer
Call transaction when double clicked on ALV line
I currently displaying a table as an ALV as follows:
DATA: alv TYPE REF TO cl_salv_table,
output_table TYPE TABLE OF output_table.
TRY.
cl_salv_table=>factory(
IMPORTING
r_salv_table = alv
CHANGING
…

schmelto
- 427
- 5
- 18
-1
votes
1 answer
How to use cl_salv_bs_runtime_info
I'm trying to retrieve the ALV table that is generated by the program RFKSLD00, but I cannot get cl_salv_bs_runtime_info to work. Here is what I have:
REPORT ZSAM3.
TYPES: BEGIN OF ty_report,
rec_acc TYPE skont,
vendor TYPE…

mj1261829
- 1,200
- 3
- 26
- 53
-1
votes
1 answer
Sum of Two Fields in Alv Report and Display Total in Third Field
How to sum the fields amount and tax and display total in third field in alv report?
Table and fields are:
vbak-netwr
vbap-mwsbp

saga
- 1
- 1
- 1
-1
votes
1 answer
Refresh screen data (START-OF-SELECTION)
I'm developing a report with multiple ALVs.
In START-OF-SELECTION I have:
1) data selection
2) ALV display cl_salv_hierseq_table
The lines can be selected through checkbox. When a button is pressed, some tables in DB are updated. After this…

Saros Begh
- 35
- 2
- 9
-1
votes
3 answers
Coloring ALV row where field value > n
How can I display the row where the sum of ls_out is 1900? How can I improve below code?
TABLES: mara, marc.
"marc is N 181
"mara is 1 157
DATA: lt_mara TYPE TABLE OF mara,
ls_mara TYPE mara,
lt_marc TYPE TABLE OF…

Demotivated
- 117
- 3
- 13
-1
votes
2 answers
Dirty assign of cl_gui_alv_grid object is possible in ABAP?
The new requirement which MIGHT be easily solved by the trick mentioned in the topic needs to be verified.
Besides the dirty kind of realization the consultant said, that he allows us to use dirty assigns.
So I started, inside a BADI method, and got…

icbytes
- 1,831
- 1
- 17
- 27
-1
votes
3 answers
Change field length afterwards
TABLES: VBRK.
DATA: BEGIN OF it_test,
BUKRS LIKE VBRK-BUKRS,
FKDAT LIKE VBRK-FKDAT,
END OF it_test.
DATA: wa_test LIKE it_test.
SELECT * FROM VBRK INTO CORRESPONDING FIELD OF wa_test.
IF wa_test-BUKRS = 'xxxx'.
wa_test-BUKRS =…

RamonC
- 31
- 7