cancel
Showing results for 
Search instead for 
Did you mean: 

Hierarchical Sequential report

Former Member
0 Kudos

Please explain with a small example of using REUSE_ALV_HIER_SEQ function module?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi khadeer,

In Hierarchical display we will display the output in the Header and item level.

While building the field catalogue we will build at header and item level i.e. we will call the function module REUSE_ALV_FIELD_CATELOGE_MERGE twice one for header and the other for item.

We will use the function module REUSE_ALV_HIERSEQ_LIST_DISPLAY.

This also have the similar attributes but some extra things we have to pass in this are key information i.e. the relation between the header and item table under the parameter is_keyinfo .We need to pass two tables under tables parameter in hierarchical display i.e. header and item tables instead of a single table in the list and grid display. Data should also be selected into these tables accordingly.

pls reward points if helpful,

shylaja

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

refer these links:

hierarchial alv:

/people/sap.user72/blog/2005/09/14/a-new-approach-to-alv-programming

Former Member
0 Kudos

Hi Khadeer.

You can go through the program BALVHD01

And if you need some other programs just click on where used list on this FM in SE37 then you can see the list of Programs in which it is used

Regards Rk

Former Member
0 Kudos

in continuation to that,

i have the small example for list display...

The following FM is used to display the data in the internal table in the form of ALV

LIST. The Event table is only required if event handling is being done.

CALL FUNCTION 'RESUSE_ALV_LIST_DISPLAY'

EXPORTING

I_CALLBACK_PROGRAM = W_REPID "of TYPE SY-REPID and

" value SY-REPID

IS_LAYOUT = W_LAYOUT "of TYPE SLIS_LAYOUT_ALV

IT_FIELDCAT = IN_FCAT "of TYPE SLIS_T_FIELDCAT_ALV

I_SAVE = W_SAVE "of TYPE C ,values A ,U ,' '

IT_EVENTS = IN_EVENTS " of TYPE SLIS_T_EVENT

TABLES

T_OUTTAB = IN_DATA "internal table conatining data

"corresponding to IN_FCAT

EXCEPTIONS

PROGRAM_ERROR = 1

OTHERS = 2

IF SY-SUBRC NE 0.

MESSAGE ENNN .

ENDIF.

pls reward points if helpful,

shylaja