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: 

What are the diffrence between ALV Block Report and ALV Hirerachical Report

Former Member
0 Kudos

Hi All,

What are the diffrence between ALV Block Report and ALV Hirerachical Report.

My mail id is pankaj.sinhas@gmail.com.

Thanks

Pankaj.

3 REPLIES 3

Former Member
0 Kudos

Hi,

ALV BLOCks: in this field list differ per block. many different itabs can be used.

ALV Hireachical: In This data is display in hirerarchy like parent and child . it requreuire two itabs one for header and other for details and relationship between them.

Jogdand M B

0 Kudos

Hi

Thanks for instant reply...If u have more document plz send me once more to my mail id

pankaj.sinhas@gmail.com

Regards

Pankaj.

0 Kudos

Hi,

<b>1. BLOCK REPORT</b>

This is used to have multiple lists continuously.

The important functions used in this report are:

A. REUSE_ALV_BLOCK_LIST_INIT

B. REUSE_ALV_BLOCK_LIST_APPEND

C. REUSE_ALV_BLOCK_LIST_HS_APPEND

D. REUSE_ALV_BLOCK_LIST_DISPLAY

A. REUSE_ALV_BLOCK_LIST_INIT

Parameters:

I. I_CALLBACK_PROGRAM

II. I_CALLBACK_PF_STATUS_SET

III. I_CALLBACK_USER_COMMAND

This function module is used to set the default gui

status etc.

B. REUSE_ALV_BLOCK_LIST_APPEND

Parameters :

Export :

I. is_layout : layout settings for block

II. it_fieldcat : field catalog

III. i_tabname : internal table name with output data

IV. it_events : internal table with all possible events

Tables :

i. t_outtab : internal table with output data.

This function module adds the data to the block.

Repeat this function for all the different blocks to be

displayed one after the other.

C. REUSE_ALV_BLOCK_LIST_HS_APPEND

This function module is used for hierarchical sequential

blocks.

D. REUSE_ALV_BLOCK_LIST_DISPLAY

Parameters : All the parameters are optional.

This function module display the list with data appended

by the above function.

Here the functions

REUSE_ALV_FIELDCATALOG_MERGE,

REUSE_ALV_EVENTS_GET,

REUSE_ALV_COMMENTARY_WRITE can be used.

<b>2. Hierarchical reports :</b>

Hierarchical sequential list output.

The function module is

A. REUSE_ALV_HIERSEQ_LIST_DISPLAY

Parameters:

I. Export:

i. I_CALLBACK_PROGRAM

ii. I_CALLBACK_PF_STATUS_SET

iii. I_CALLBACK_USER_COMMAND

iv. IS_LAYOUT

v. IT_FIELDCAT

vi. IT_EVENTS

vii. i_tabname_header : Name of the internal table in

the program containing the

output data of the highest hierarchy level.

viii. i_tabname_item : Name of the internal table in the

program containing the

output data of the lowest hierarchy level.

ix. is_keyinfo : This structure contains the header and

item table field

names which link the two tables (shared key).

II. Tables

i. t_outtab_header : Header table with data to be output

ii. t_outtab_item : Name of the internal table in the

program containing the

output data of the lowest hierarchy level.

slis_t_fieldcat_alv : This internal table contains the field

attributes. This internal table can be populated

automatically by using

‘REUSE_ALV_FIELDCATALOG_MERGE’.

Important Attributes :

A. col_pos : position of the column

B. fieldname : internal fieldname

C. tabname : internal table name

D. ref_fieldname : fieldname (dictionary)

E. ref_tabname : table (dictionary)

F. key(1) : column with key-color

G. icon(1) : icon

H. symbol(1) : symbol

I. checkbox(1) : checkbox

J. just(1) : (R)ight (L)eft (C)ent.

K. do_sum(1) : sum up

L. no_out(1) : (O)blig.(X)no out

M. outputlen : output length

N. seltext_l : long key word

O. seltext_m : middle key word

P. seltext_s : short key word

Q. reptext_ddic : heading (ddic)

R. ddictxt(1) : (S)hort (M)iddle (L)ong

S. datatype : datatype

T. hotspot(1) : hotspot

The important function modules are

a. Reuse_alv_list_display:This is the function module which prints the data.

b. Reuse_alv_fieldcatalog_merge:his function module is used to

populate a fieldcatalog which is essential to display the data in ALV.

c. Reuse_alv_events_get:Returns table of possible events for a list type

d. Reuse_alv_commentary_write:This is used in the Top-of-page event to print the headings and other comments for the list.

e. Reuse_alv_grid_display:A new function in 4.6 version, to display the results in grid rather than as a preview.

blocked list: :

This is used to have multiple lists continuously.

The important functions used in this report are:

A. REUSE_ALV_BLOCK_LIST_INIT

B. REUSE_ALV_BLOCK_LIST_APPEND

C. REUSE_ALV_BLOCK_LIST_HS_APPEND

D. REUSE_ALV_BLOCK_LIST_DISPLAY

Hirarcial list :

if u want to display daat hirarchialy we use this.

for example if u want tp print header data and corresponding items we use this

Reward if it helps..

Regards,

Omkar.