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

ALVS

Former Member
0 Likes
887

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?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
860

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

7 REPLIES 7
Read only

Former Member
0 Likes
860

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.

Read only

Former Member
0 Likes
861

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

Read only

Former Member
0 Likes
860

Hi,

can u gv me ur mail id,so that i can send power point slides regarding ALV's.

Thank you,

chandu.

Read only

0 Likes
860

Hi Chandu,

Plz send the PPTs to me also

mnpss@rediffmail.com

Read only

0 Likes
860

chandu my id is satishabap970@gmail.com

plz forward the ppts of alvs an other topics too.

Read only

0 Likes
860

Hi Chandu please send a copy to me @ chandraprakash.g@gmail.com

Regards,

Chandru

Read only

Former Member
0 Likes
860

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