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's

Former Member
0 Kudos

hi gurus i need some information

1. In ALV how u can edit a field?

2. How can u get a checkbox in ALV ?

3.How many types of reports in ALV?

3.How many Function Modules are there in ALV what are they ?

4.What are the events in ALV ?

5.How can u get subtotals and total in alv list?

6.What are the main events that are used in an ALV report?

7.What are ALV reports? how they are different from normal reports?

4 REPLIES 4

Former Member
0 Kudos

<b>1. </b>

use reuse_ALV_grid_display.

<b>2.</b>

check the prog BCALV_TEST_GRID_EDITABLE and

Use parameters

Code:

is_layout = s_layout

of function REUSE_ALV_LIST_DISPLAY

where

Code:

*LAYOUT

CLEAR s_layout.

s_layout-box_fieldname = 'FLAG'.

s_layout-box_tabname = 'INTTAB'.

and

Code:

DATA : BEGIN OF inttab OCCURS 0,

flag(1),

...

end of inttab.

<b>3.</b>

simple, blocked and hierarchial

The commonly used ALV functions used for this purpose are;

1. REUSE_ALV_VARIANT_DEFAULT_GET

2. REUSE_ALV_VARIANT_F4

3. REUSE_ALV_VARIANT_EXISTENCE

4. REUSE_ALV_EVENTS_GET

5. REUSE_ALV_COMMENTARY_WRITE

6. REUSE_ALV_FIELDCATALOG_MERGE

7. REUSE_ALV_LIST_DISPLAY

8. REUSE_ALV_GRID_DISPLAY

9. REUSE_ALV_POPUP_TO_SELECT

<b>4. and 6.</b>

At selection-screen output.

Initialization.

At selection-screen on field

At selection-screen on end of field

At selection-screen on Radiobutton Group R1. (If you have any radio buttons)

At selection-screen on block b1. (If you have any blocks)

Start-of-selection.

Get node. (if the data is retreived from a logical database)

Get node late. (if the data is retreived from a logical database)

Top-of-page. (if the write statement is in the end-of-selection event or we can say that before the first write statement)

end-of-selection.

<b>5.</b>

use sigma button in the output list/use FM's

<b>7.</b>

Sap provides a set of ALV (ABAP LIST VIEWER) function modules which can be put into use to embellish the output of a report. This set of ALV functions is used to enhance the readability and functionality of any report output. Cases arise in sap when the output of a report contains columns extending more than 255 characters in length.

In such cases, this set of ALV functions can help choose selected columns and arrange the different columns from a report output and also save different variants for report display. This is a very efficient tool for dynamically sorting and arranging the columns from a report output.

regards,

srinivas

<b>*reward for useful answers*</b>

Former Member
0 Kudos

hi,

for ALV, Have a look at these links.

http://www.geocities.com/mpioud/Abap_programs.html

http://www.sapdevelopment.co.uk/reporting/reportinghome.htm

Simple ALV report

http://www.sapgenie.com/abap/controls/alvgrid.htm

http://wiki.ittoolbox.com/index.php/Code:Ultimate_ALV_table_toolbox

ALV

1. Please give me general info on ALV.

http://www.sapfans.com/forums/viewtopic.php?t=58286

http://www.sapfans.com/forums/viewtopic.php?t=76490

http://www.sapfans.com/forums/viewtopic.php?t=20591

http://www.sapfans.com/forums/viewtopic.php?t=66305 - this one discusses which way should you use - ABAP Objects calls or simple function modules.

2. How do I program double click in ALV?

http://www.sapfans.com/forums/viewtopic.php?t=11601

http://www.sapfans.com/forums/viewtopic.php?t=23010

3. How do I add subtotals (I have problem to add them)...

http://www.sapfans.com/forums/viewtopic.php?t=20386

http://www.sapfans.com/forums/viewtopic.php?t=85191

http://www.sapfans.com/forums/viewtopic.php?t=88401

http://www.sapfans.com/forums/viewtopic.php?t=17335

4. How to add list heading like top-of-page in ABAP lists?

http://www.sapfans.com/forums/viewtopic.php?t=58775

http://www.sapfans.com/forums/viewtopic.php?t=60550

http://www.sapfans.com/forums/viewtopic.php?t=16629

5. How to print page number / total number of pages X/XX in ALV?

http://www.sapfans.com/forums/viewtopic.php?t=29597 (no direct solution)

6. ALV printing problems. The favourite is: The first page shows the number of records selected but I don't need this.

http://www.sapfans.com/forums/viewtopic.php?t=64320

http://www.sapfans.com/forums/viewtopic.php?t=44477

7. How can I set the cell color in ALV?

http://www.sapfans.com/forums/viewtopic.php?t=52107

8. How do I print a logo/graphics in ALV?

http://www.sapfans.com/forums/viewtopic.php?t=81149

http://www.sapfans.com/forums/viewtopic.php?t=35498

http://www.sapfans.com/forums/viewtopic.php?t=5013

9. How do I create and use input-enabled fields in ALV?

http://www.sapfans.com/forums/viewtopic.php?t=84933

http://www.sapfans.com/forums/viewtopic.php?t=69878

10. How can I use ALV for reports that are going to be run in background?

http://www.sapfans.com/forums/viewtopic.php?t=83243

http://www.sapfans.com/forums/viewtopic.php?t=19224

11. How can I display an icon in ALV? (Common requirement is traffic light icon).

http://www.sapfans.com/forums/viewtopic.php?t=79424

http://www.sapfans.com/forums/viewtopic.php?t=24512

12. How can I display a checkbox in ALV?

http://www.sapfans.com/forums/viewtopic.php?t=88376

http://www.sapfans.com/forums/viewtopic.php?t=40968

http://www.sapfans.com/forums/viewtopic.php?t=6919

Go thru these programs they may help u to try on some hands on

ALV Demo program

BCALV_DEMO_HTML

BCALV_FULLSCREEN_DEMO ALV Demo: Fullscreen Mode

BCALV_FULLSCREEN_DEMO_CLASSIC ALV demo: Fullscreen mode

BCALV_GRID_DEMO Simple ALV Control Call Demo Program

BCALV_TREE_DEMO Demo for ALV tree control

BCALV_TREE_SIMPLE_DEMO

BC_ALV_DEMO_HTML_D0100

Regards

Kasinath Babu

Former Member
0 Kudos

Hi Babu,

Please try below links.These may help you.

ALV

1. Please give me general info on ALV.

http://www.sapfans.com/forums/viewtopic.php?t=58286

http://www.sapfans.com/forums/viewtopic.php?t=76490

http://www.sapfans.com/forums/viewtopic.php?t=20591

http://www.sapfans.com/forums/viewtopic.php?t=66305 - this one discusses which way should you use - ABAP Objects calls or simple function modules.

2. How do I program double click in ALV?

http://www.sapfans.com/forums/viewtopic.php?t=11601

http://www.sapfans.com/forums/viewtopic.php?t=23010

3. How do I add subtotals (I have problem to add them)...

http://www.sapfans.com/forums/viewtopic.php?t=20386

http://www.sapfans.com/forums/viewtopic.php?t=85191

http://www.sapfans.com/forums/viewtopic.php?t=88401

http://www.sapfans.com/forums/viewtopic.php?t=17335

4. How to add list heading like top-of-page in ABAP lists?

http://www.sapfans.com/forums/viewtopic.php?t=58775

http://www.sapfans.com/forums/viewtopic.php?t=60550

http://www.sapfans.com/forums/viewtopic.php?t=16629

5. How to print page number / total number of pages X/XX in ALV?

http://www.sapfans.com/forums/viewtopic.php?t=29597 (no direct solution)

6. ALV printing problems. The favourite is: The first page shows the number of records selected but I don't need this.

http://www.sapfans.com/forums/viewtopic.php?t=64320

http://www.sapfans.com/forums/viewtopic.php?t=44477

7. How can I set the cell color in ALV?

http://www.sapfans.com/forums/viewtopic.php?t=52107

8. How do I print a logo/graphics in ALV?

http://www.sapfans.com/forums/viewtopic.php?t=81149

http://www.sapfans.com/forums/viewtopic.php?t=35498

http://www.sapfans.com/forums/viewtopic.php?t=5013

9. How do I create and use input-enabled fields in ALV?

http://www.sapfans.com/forums/viewtopic.php?t=84933

http://www.sapfans.com/forums/viewtopic.php?t=69878

10. How can I use ALV for reports that are going to be run in background?

http://www.sapfans.com/forums/viewtopic.php?t=83243

http://www.sapfans.com/forums/viewtopic.php?t=19224

11. How can I display an icon in ALV? (Common requirement is traffic light icon).

http://www.sapfans.com/forums/viewtopic.php?t=79424

http://www.sapfans.com/forums/viewtopic.php?t=24512

12. How can I display a checkbox in ALV?

http://www.sapfans.com/forums/viewtopic.php?t=88376

http://www.sapfans.com/forums/viewtopic.php?t=40968

http://www.sapfans.com/forums/viewtopic.php?t=6919

Please reward points if helpful

Thanks,

Suma.

Former Member
0 Kudos

<b>1</b>.Program <b>BCALV_EDIT_01</b> will provide a simple ALV Grid editing example.

Additional examples can also be found in <b>BCALV_EDIT_02,3,4</b>...

<b>2</b>.For the check box in alv,

Use the parameters of Function Module REUSE_ALV_LIST_DISPLAY

and the code is

*LAYOUT

CLEAR s_layout.

s_layout-box_fieldname = 'FLAG'.

s_layout-box_tabname = 'INTTAB'.

DATA : BEGIN OF inttab OCCURS 0,

flag(1),

...

end of inttab

<b>3</b>.TYPES OF ALV REPORTS ARE

1. Simple Report, 2. Block Reprot and 3. Hierarchical Sequential Report.

Check these links

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

http://help.sap.com/saphelp_nw04/helpdata/en/8d/e994374c9cd355e10000009b38f8cf/frameset.htm

http://www.geocities.com/mpioud/Abap_programs.html

<b>4</b>.Function Modules in ALV

REUSE_ALV_BLOCK_LIST_APPEND Append Simple List in Block Mode

REUSE_ALV_BLOCK_LIST_DATA_GET Internal Use

REUSE_ALV_BLOCK_LIST_DATA_SET Internal Use

REUSE_ALV_BLOCK_LIST_DISPLAY Display a block table

REUSE_ALV_BLOCK_LIST_HS_APPEND

REUSE_ALV_BLOCK_LIST_INIT Initialization of Block List Output

REUSE_ALV_BLOCK_LIST_REFRESH

REUSE_ALV_BLOCK_STATUS_GET

REUSE_ALV_CHECKBOX_SET

REUSE_ALV_COMMENTARY_WRITE List body comment block output

REUSE_ALV_EVENTS_GET Returns table of possible events for a list type

REUSE_ALV_EVENTS_TRANSFER

REUSE_ALV_EVENT_NAMES_GET Returns table of constant names of possible events

REUSE_ALV_FIELDCATALOG_MERGE Create field catalog from dictionary structure or i

REUSE_ALV_HIERSEQ_LIST_DISPLAY Hierarchical sequential list output

REUSE_ALV_HS_LIST_WIDTH_GET Calculate list width

REUSE_ALV_HS_TABLES_GET

REUSE_ALV_LIST_DISPLAY Output a simple list (single line or several lines)

REUSE_ALV_LIST_LAYOUT_INFO_GET Read current ALV list information

REUSE_ALV_LIST_LAYOUT_INFO_SET Set current ALV list information

REUSE_ALV_LIST_SELECTIONS_GET

REUSE_ALV_LIST_SELECTIONS_SET

REUSE_ALV_LIST_WIDTH_GET Calculate list width

REUSE_ALV_POPUP_TO_SELECT List in dialog box to choose one or more entries (or display only)

REUSE_ALV_TABLES_GET

REUSE_ALV_TABLE_CREATE Internal Use

REUSE_ALV_TEXTPOOL_WRITE List body comment block output

REUSE_ALV_TRANSFER_DATA

REUSE_ALV_TRANSFER_DATA_BACK

REUSE_ALV_VARIANT_ALL_MAINTAIN Maintain all display variants for one object

REUSE_ALV_VARIANT_DEFAULT_GET Read default display variant (description only, w/o field catalog)

REUSE_ALV_VARIANT_EXISTENCE Checks whether a display variant exists

REUSE_ALV_VARIANT_F4 Display variant selection dialog box

REUSE_ALV_VARIANT_MAINTAIN Definition of a display variant outside the list context

REUSE_ALV_VARIANT_SAVE Save a display variant

REUSE_ALV_VARIANT_SELECT Read a display variant

<b>4</b>.1. SLIS_PRINT_ALV.

2. SLIS_T_LISTHEADER.

3. SLIS_T_EVENT.

4. SLIS_T_SORTINFO_ALV.

5. SLIS_T_LAYOUT_ALV.

6. SLIS_T_FIELDCAT_ALV.

these are events in ALV

Reward if helpful,

Imran