‎2007 Dec 28 5:49 PM
1)in alvs hw to get the default values in the selection screen?
2)what is the difference between list,grid , block display?
3)what is bloc display? why is it differnt from other displays?
4)i have created one program in alvs, in that internal table contains 2fields.while in my structure contains 5 fields.
when output is displayed it showing all the fields of structure instead of internal table fields. hw to get only those two fields of intenal table?
‎2007 Dec 28 7:37 PM
Hi,
To put default values to parameters or select-options use this..
parameter: p_matnr like mara-matnr default 'test1'..
select-options: s_matnr for mara-matnr default 'test1' to 'test2'.
or u can do it in INITIALIZATION event assigning values to it.
INITIALIZATION.
p_matnr = 'test3'.
s_matnr-low = 'test4'.
s_matnr-high = 'test5'.
s_matnr-sign = 'I'.
s_matnr-option = 'BT'.
append s_matnr.
if you want to display those 2 fields only, create your own fieldcatalog. and pass it to it_fieldcat export parameter in the reuse...... FMs.
Reward if useful.
Regards
ANUPAM
‎2007 Dec 28 5:57 PM
Hi,
Don't make your thread with Multiple Questions.
BLOCK ALV is used for Multiple Lists.
Difference Between Alv grid and List Display :
Some differences:
a) from abap coding point of view,
alv list is done with Function modules,
alv gris can also be done with FM,
but can also be done using OO concepts.
b) Alv grid (using oo concept) requires
designing the screen layout .
Hence, in one screen, we can show more
then one alv grid
(we cannot show more than
one alv list on one screen)
c) ALV grid uses ActiveX controls
present on the Presentation Server.
Hence, it consumes More Memory
on the presentation server.
d) ALV LIST is Display Only.
Whereas
ALV Grid Can Be made EDITABLE for entry purpose.
e) In alv grid, these options are possible,
but not in alv list.
without horizontal lines
without vertical lines
without cell merging during sorts
display total lines above the entries
ALV LIST Can be coded using only FMs
ALV GRID Can be coded using FMs and object oriented concepts
ALV LIST Can be displayed hieraicharlly
ALV GRID cannot be displayed hierarichally
Thanks.
‎2007 Dec 28 7:37 PM
Hi,
To put default values to parameters or select-options use this..
parameter: p_matnr like mara-matnr default 'test1'..
select-options: s_matnr for mara-matnr default 'test1' to 'test2'.
or u can do it in INITIALIZATION event assigning values to it.
INITIALIZATION.
p_matnr = 'test3'.
s_matnr-low = 'test4'.
s_matnr-high = 'test5'.
s_matnr-sign = 'I'.
s_matnr-option = 'BT'.
append s_matnr.
if you want to display those 2 fields only, create your own fieldcatalog. and pass it to it_fieldcat export parameter in the reuse...... FMs.
Reward if useful.
Regards
ANUPAM
‎2007 Dec 31 5:47 AM
Hi,
can u gv me ur mail id,so that i can send power point slides regarding ALV's.
Thank you,
chandu.
‎2007 Dec 31 6:41 AM
‎2008 Jan 10 10:42 AM
chandu my id is satishabap970@gmail.com
plz forward the ppts of alvs an other topics too.
‎2008 Jan 13 10:12 AM
Hi Chandu please send a copy to me @ chandraprakash.g@gmail.com
Regards,
Chandru
‎2007 Dec 31 6:49 AM
Hi,
1)In ALV list display it only display the list u can not drag and drop to ur output fileds , but where as in grid display in the out put u can drag & drop the list fields.
2)difference between list display & block display.
List display it display the list out put.
But block display it will display block wise output.
ex: in block display u have 2 internal table like kna1,mara.
O/P : 1) kunnar name1 land1
2) matnr mbrsh
where as in list display it will display.
kunnr name1 land1 matnr mbrsh
it display the contents like that.
3) ur getting 5 fileds instead of 2 fileds.
i think ur passing structure in list display function module .
try to use filed catalog and pass it to list display FM.
other wise i_output = just u pass internal table.
reward me a points if it is use full answer/
praveen