Application Development 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: 

ALV Reports

Former Member
0 Kudos

Hai,

I am new to ALV reports,i want to practice on ALV reports.

So please tell me how to approach and give the useful links.

Thanks in advance.

Points will be rewarded.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

If you want to know about ALV reports, First get some knowledge in function modules like 'reuse_alv_grid_display" and 'reuse_alv_list_display' .. ALV is nothing but displaying your results in a standard manner. You can set your own colours to the desired fields. U can sum the value of any desired field. U will get the output format in a table view. There are many advantages in ALV when compared with the standard format..

please go through this links.. it will be of good use to you..

www.sap-img.com/abap/what-is-alv-programming.htm

help.sap.com/printdocu/core/Print46c/en/data/pdf/CAGTFLV/CAGTFLV.pdf

help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVALV/BCSRVALV.pdf -

Award points if helpful..

Thanks and regards,

Karthi.

5 REPLIES 5

Former Member
0 Kudos

Hi,

for basic ALV report u need two things....

1) the internal table which has to be displayed(itab6 in below example).

2) A structure/an int table which helps in making the column header of the display(is_fieldcat in below code...i hav used an int tab).

  • For more clarification see the FM 'REUSE_ALV_GRID_DISPLAY's documentation in SE37...

  • also see demo programs in se38( search for pgms starting with BALV*)

See this sample code....

type-pools: slis.

DATA: begin of itab6 occurs 0,
chk type c,
a type p decimals 2,
b type p decimals 2,
c type c,
end of itab6.

data: ls_fieldcat TYPE slis_t_fieldcat_alv WITH HEADER LINE,
        wa_layout TYPE slis_layout_alv.

itab6-a = '1.12'.
itab6-b = '2.25'.
itab6-c = '+'.

append itab6.
append itab6.
append itab6.
append itab6.


ls_fieldcat-fieldname = 'A'.
ls_fieldcat-seltext_m = 'A'.
append ls_fieldcat.

ls_fieldcat-fieldname = 'B'.
ls_fieldcat-seltext_m = 'B'.
ls_fieldcat-decimals_out = 0.
append ls_fieldcat.

ls_fieldcat-fieldname = 'C'.
ls_fieldcat-seltext_m = 'C'.
append ls_fieldcat.

wa_layout-box_tabname = 'ITAB6'.
wa_layout-box_fieldname = 'CHK'.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
it_fieldcat = ls_fieldcat[]
IS_LAYOUT = wa_layout

TABLES
t_outtab = itab6[].

.

Cheers,

Will.

Former Member
0 Kudos

Hi,

If you want to know about ALV reports, First get some knowledge in function modules like 'reuse_alv_grid_display" and 'reuse_alv_list_display' .. ALV is nothing but displaying your results in a standard manner. You can set your own colours to the desired fields. U can sum the value of any desired field. U will get the output format in a table view. There are many advantages in ALV when compared with the standard format..

please go through this links.. it will be of good use to you..

www.sap-img.com/abap/what-is-alv-programming.htm

help.sap.com/printdocu/core/Print46c/en/data/pdf/CAGTFLV/CAGTFLV.pdf

help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVALV/BCSRVALV.pdf -

Award points if helpful..

Thanks and regards,

Karthi.

Former Member
0 Kudos

Hi,

Refer These standard Demo Programs.

BALVSD02_GRID

BALVST02_GRID

BALVST03_GRID

BCALV_FULLSCREEN_GRID_EDIT

BCALV_GRID_01

BCALV_GRID_02

BCALV_GRID_03

BCALV_GRID_04

BCALV_GRID_05

BCALV_GRID_06

BCALV_GRID_07

BCALV_GRID_08

BCALV_GRID_09

BCALV_GRID_10

BCALV_GRID_11

BCALV_GRID_AND_POPUP

BCALV_GRID_DEMO

BCALV_GRID_DND_TREE

BCALV_GRID_DND_TREE_SIMPLE

BCALV_GRID_EDIT

BCALV_GRID_EDIT_DELTA

BCALV_GRID_EDIT_DELTAM01

BCALV_GRID_EDIT_DELTA_APPL

BCALV_GRID_EDIT_DELTA_EVENT

BCALV_GRID_EDIT_VERIFY

BCALV_GRID_EDIT_VERIFY_C01

BCALV_GRID_EDIT_VERIFY_CLASSES

BCALV_GRID_EDIT_VERIFY_E01

BCALV_GRID_EDIT_VERIFY_F01

BCALV_GRID_EDIT_VERIFY_M01

BCALV_GRID_EDIT_VERIFY_TOP

BCALV_GRID_EDIT_VERIFY_TOP2

BCALV_GRID_F4_HELPM01

BCALV_GRID_F4_HELP_APPLICATION

BCALV_GRID_VERIFY

BCALV_GRID_VERIFY_CLDEF

BCALV_GRID_VERIFY_CLIMP

BCALV_GRID_VERIFY_DATA

BCALV_GRID_VERIFY_OLD

BCALV_GRID_VERIFY_OLD_TOP

BCALV_GRID_VERIFY_TOP

BCALV_TEST_GRID

BCALV_TEST_GRID_DRAG_DROP

BCALV_TEST_GRID_EDIT

BCALV_TEST_GRID_EDITABLE

BCALV_TEST_GRID_EDIT_01

BCALV_TEST_GRID_EDIT_02

BCALV_TEST_GRID_EDIT_04_FORMS

BCALV_TEST_GRID_EVENTS

BCALV_TEST_GRID_F4_HELP

BCALV_TEST_GRID_FIELDS

BCALV_TEST_GRID_INDEX.

Former Member
0 Kudos

Hi,

Pls Go Though This Link To Practice On ALvs

goto Se38 BCALV* -


f4 Help you will get lot of programs on ALV's

Simple Alv Tree Report Demo Programhttp://saptechnical.com/Tutorials/ALV/ALVTreeDemo/demo.htm

Here you will get lot programs with screen shots

http://saptechnical.com/Tutorials/ALV/ALVMainPage.htm

Alv Editable f4 help

http://saptechnical.com/Tutorials/ALV/Edit/F4.htm

intractive alv using OOPs

http://saptechnical.com/Tutorials/ALV/Interactive/oops.htm

Alv in Style field catalogs

http://saptechnical.com/Tutorials/ALV/Styles/demo.htm

http://abapcode.blogspot.com/

Reward Points if Usefull

Regards

Fareedas