2006 Nov 17 8:59 AM
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.
2006 Nov 17 9:05 AM
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.
2006 Nov 17 9:05 AM
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.
2006 Nov 17 9:11 AM
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
2006 Nov 17 9:11 AM
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