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 sample..plz.

Former Member
0 Likes
1,029

hi..

I want ALV sample..

thank.

Edited by: yongseok jung on Apr 10, 2008 4:53 AM

hi..

I want ALV sample..

thank.

Edited by: yongseok jung on Apr 10, 2008 4:53 AM

8 REPLIES 8
Read only

ak_upadhyay
Contributor
0 Likes
984

Hi,

Check This....


Report ZHELLO. 

Tables: 
        MAKT, 
        MARA. 

data: begin of itab_alv1 occurs 10, 
          MAKTX like MAKT-MAKTX , 
          MATFI like MARA-MATFI , 
          MATNR like MARA-MATNR , 
          MFRPN like MARA-MFRPN , 
      END OF ITAB_ALV1. 

type-pools: slis. 

data: afield type slis_fieldcat_alv. 

DATA: fieldcat type slis_t_fieldcat_alv. 

clear afield. 

afield-col_pos = 1 . 
afield-fieldname = 'MAKTX'. 
afield-seltext = ''. 
append afield to fieldcat. 
afield-col_pos = 2 . 
afield-fieldname = 'MATFI'. 
afield-seltext = ''. 
append afield to fieldcat. 

select * from mara. 
   select * from makt where 
         matnr = mara-matnr. 
       itab_alv1-matnr = mara-matnr. 
       itab_alv1-maktx = makt-maktx. 
       append itab_alv1. 
   endselect. 
endselect. 

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' 
    EXPORTING 
       IT_FIELDCAT = fieldcat 
    Tables 
       t_outtab = itab_alv1. 

Or u can check the Package SLIS, there r so many sample ALV programs.

Reward points if useful....

Regards

AK

Read only

Former Member
0 Likes
984

Hi,

In se38 type BCALV* you will get lots of demo programs on ALV.

You can also do...se38->Environment->examples->ABAP Program->Lists to get demo programs on ALV.

Thanks,

Arun

Read only

Former Member
0 Likes
984

This message was moderated.

Read only

Former Member
0 Likes
984

This message was moderated.

Read only

uwe_schieferstein
Active Contributor
0 Likes
984

Hello

I have posted several simplified ALV report showing various aspects of ALV programming. Simply search the SDN for ZUS_SDN_...

...

Regards

Uwe

Read only

Former Member
0 Likes
984

Hi

see this link you can find some sample ALV with diff fetures

http://www.sapdev.co.uk/reporting/alvhome.htm

Read only

Former Member
0 Likes
984

There are different types of ALV reports like ALV with Field Catelogue, ALV with Events, ALV Interactive, ALV using field Catelogue Merge.....

I think the below web page will get you all....

[http://www.the18news.com/index.php/sap-abap/interactive-alv-real-time-report/|http://www.the18news.com/index.php/sap-abap/interactive-alv-real-time-report/]

ALL THE BEST.