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 display

Former Member
0 Kudos

Hi friends,

Please tell me how to display 2 ALV list one above the other on the same report o/p.

7 REPLIES 7

Former Member
0 Kudos

Hi,

Use the Blocked ALV report fromat for your requirement.

Hope this resolves your query.

Reward all the helpful answers.

Regards

0 Kudos

Can you please elaborate Blocked ALV report format, which function module?

Former Member
0 Kudos

HI

abaper

try this type

type pool-slis

initialization

at-selection-screen

perform ALV1

perform ALV2

form ALV1

form ALV2

Former Member
0 Kudos

Former Member
0 Kudos

Hi,

U can make use of following modules:

SALV SAP List Viewer

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

Also,

refer program BCALV_TEST_BLOCK_LIST.

Hope this will help you, revert back if you want any more clarification.

Former Member
0 Kudos

Hi,

this is the structure of block alv display.

you can have separte header for each report. you can use pf-status & alv user command if interactive or dril down type of reqrment is thr.

you need to give layout and events for each LIST APPEND

-


CLEAR gt_events1.

gt_events1-form = 'TOP-OF-PAGE5'.

gt_events1-name = slis_ev_top_of_list.

APPEND gt_events1 TO gt_eventsop5.

gs_layout1-info_fieldname = ''.

-


CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'

EXPORTING

i_callback_program = 'ZRB'.

  • i_callback_pf_status_set = 'PF_STATUS_SET_SUM'

  • i_callback_user_command = 'ALV_USER_COMMAND'.

  • IT_EXCLUDING =

CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'

EXPORTING

is_layout = gs_layout1

it_fieldcat = itfld1[]

i_tabname = 'ITTEST'

it_events = gt_eventsop

TABLES

t_outtab = ittest.

CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'.

  • EXPORTING

  • IS_PRINT = GT_PRINT.

Former Member
0 Kudos

Hi vish,

U can try container for ur requirement of displaying both the ALV's.