Application Development and Automation 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: 
Read only

ALV Events,Difference ?

Former Member
0 Likes
603

Dear friends,

Can U please tell me the difference between

REUSE_ALV_GRID_DISPLAY

REUSE_ALV_LIST_DISPLAY

And also the difference between

select single <fieldname> & select single *

than Q.

1 ACCEPTED SOLUTION
Read only

former_member69765
Contributor
0 Likes
580

Wow... Looks like you are new to ABAP....

There are 2 types of ALV Displays..

one is List.. the look is more like a normal ABAP list..

the 2nd is... the Grid Dispaly... the look is like a Excel .. it has cells.. where you can select a particular cell..

this is the main diffrence in the 2 FMs.

select single <fieldname> will select that particular field .. a single record will be selected..

select single * will select the entire row (only 1 row)

the single key word is for how many rows are to be selected...

if you specify * all the fields that is the entire row is selected...

If you specify the field name then only that field is selected.

3 REPLIES 3
Read only

former_member69765
Contributor
0 Likes
581

Wow... Looks like you are new to ABAP....

There are 2 types of ALV Displays..

one is List.. the look is more like a normal ABAP list..

the 2nd is... the Grid Dispaly... the look is like a Excel .. it has cells.. where you can select a particular cell..

this is the main diffrence in the 2 FMs.

select single <fieldname> will select that particular field .. a single record will be selected..

select single * will select the entire row (only 1 row)

the single key word is for how many rows are to be selected...

if you specify * all the fields that is the entire row is selected...

If you specify the field name then only that field is selected.

Read only

0 Likes
580

hi,

REUSE_ALV_GRID_DISPLAY- is for ALV Grid. this more or less looks like a grid like in Excel.

REUSE_ALV_LIST_DISPLAY - is for ALV List. this is normal ABAP list(like normal report)

select single fieldname.... will select just a single field

while select single * will select the entire single row. Suppose your table has some 100 fields and if you use select single * the structure will contain all the fields. However, if you need just a single field(as per your requirement) then go for select single fieldname.

If you need more than 1 field then you can specify the field names and select only field names that you want. This is more efficient.

select single field1 field2 field3....

Hope this helps.

Regards,

Richa

Read only

Former Member
0 Likes
580

Annapurna,

Grid display : shows your output with boxes( columns separated by lines.)

List display : shows your output with simple list( columns separated by space)

select single field name gets a single<b> field</b> with satisfying conditions.

select single * gets a single<b> row</b> with satisfying conditions.

-Anu