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 Reports using Class Methods

Former Member
0 Likes
4,243

Hi Experts,

How can we generate ALV report using class and in that How can we define SLIS_EVENTS.

Can I provide all the that functionality the way I used to by calling FM

SLIS_ALV_REUSE_LIST_DISPLAY ?

- Like Header comment, event, data grouping , sort etc.

You may please send any url or document or any example.

Thanks in advance.

Regards,

Tushar Choksi

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,472

Have a look at below PDF:

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

http://help.sap.com/saphelp_nw2004s/helpdata/en/5e/88d440e14f8431e10000000a1550b0/frameset.htm

For the functions that you have specified, have a look at below link.

[Basic ALV Functions|http://help.sap.com/saphelp_nw2004s/helpdata/en/bc/e5eb40c4f8712ae10000000a155106/frameset.htm]

I hope it will give you all the details.

Thanks,

Vibha

Please mark all the useful answers

4 REPLIES 4
Read only

Former Member
0 Likes
2,473

Have a look at below PDF:

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

http://help.sap.com/saphelp_nw2004s/helpdata/en/5e/88d440e14f8431e10000000a1550b0/frameset.htm

For the functions that you have specified, have a look at below link.

[Basic ALV Functions|http://help.sap.com/saphelp_nw2004s/helpdata/en/bc/e5eb40c4f8712ae10000000a155106/frameset.htm]

I hope it will give you all the details.

Thanks,

Vibha

Please mark all the useful answers

Read only

Former Member
0 Likes
2,472

Hi,

The class you need to make ALV in ABAP OO is CL_GUI_ALV_GRID. Main method is SET_TABLE_FOR_FIRST_DISPLAY.

To define events, you have to define a local class (i.e. lcl_event_handler) in your program and one method per event you want to handle. Events available for ALV in ABAP OO are visible in SE24.

An example program useful for your requirements is BCALV_TEST_GRID_EVENTS.

Regards,

Florian

Read only

Former Member
0 Likes
2,472
Read only

Former Member
0 Likes
2,472

Hi,

The ALV object Grid methods allow the same functionality as ALV grid report function modules but are displayed within

a screen (dialog program). SAP has provided a suit of programs which demonstrate how to For examples see standard SAP

programs as detailed below:

BCALV_EDIT_01 This report illustrates the simplest case of using an editable/noneditable ALV Grid Control.

BCALV_EDIT_02 This report illustrates how to set chosen cells of an ALV Grid Control editable.

BCALV_EDIT_03 In this example the user may change values of fields SEATSOCC (occupied seats) and/or PLANETYPE.

The report checks the input value(s) semantically and provides protocol messages in case of error

BCALV_EDIT_04 This report illustrates how to add and remove lines to a table using the ALV Grid Control and how to

implement the saving of the new data.

BCALV_EDIT_05 This example shows how to use checkboxes within an ALV Grid Control. You learn:

(1) how to define a column for editable checkboxes for an attribute of your list

(2) how to evaluate the checked checkboxes

(3) how to switch between editable and non-editable checkboxes

BCALV_EDIT_06 This example shows how to define a dropdown listbox for all cells of one column in an editable ALV

Grid Control.

BCALV_EDIT_07 This example shows how to define dropdown listboxes for particular cells of your output table.

BCALV_EDIT_08 This report implements an ALV Grid Control with an application specific F4 help. The following aspects

are dealt with:

(1) how to replace the standard f4 help

(2) how to pass the selected value to the ALV Grid Control

(3) how to build an f4 help, whose value range depend on a value of another cell.

some links.

www.sapgenie.com

www.abap4u.com

http://help.sap.com/saphelp_nw2004s/helpdata/en/5e/88d440e14f8431e10000000a1550b0/frameset.htm

download the PDF from following link.

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

Regards,

Satish