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: 

Disply different title in every ALV BLock

Former Member
0 Kudos

Dear All,

How can we displsy the different text for every different block ? current i use this menthod to display the text.

WA_EVENTS-FORM = 'TOP_PAGE'.

WA_EVENTS-NAME = 'TOP_OF_PAGE'.

APPEND WA_EVENTS TO IT_EVENTS.

FORM TOP_PAGE.

WRITE:/ 'THIS IS BLOCKED ALV REPORT PROGRAM BASED ON 3 BLOCKS' COLOR 5

.ENDFORM. "TOP_PAGE

I have 3 different block. i want each blok have 3 title ... but this menthod givimg th

3 REPLIES 3

Former Member
0 Kudos

Hi ,

u can pass in the exporting parameter --- I_TEXT for each block

0 Kudos

Hallo..

I tried to set some value thr , but it still come out the empty.. c my coding bellow .

CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'

EXPORTING

IT_FIELDCAT = YFIELD

IS_LAYOUT = Y_LAYOUT

I_TABNAME = P_tabname

IT_EVENTS = lt_events

I_TEXT = 'testing' <----


added the value.. but still show nothing

TABLES

T_OUTTAB = p_xdata1.

Any ideas ?

Thanks

0 Kudos

Hi,

have u define 3 different event for the BLOCK ALV define it like this

1st ALV

ALV_SLIS_ALV_EVENT-NAME = 'TOP_OF_PAGE'.

ALV_SLIS_ALV_EVENT-FORM = 'ALV_PAGE'.

APPEND ALV_SLIS_ALV_EVENT TO ALV_SLIS_T_EVENT.

CLEAR : ALV_SLIS_ALV_EVENT.

2 ALV

ALV_SLIS_ALV_EVENT-NAME = 'TOP_OF_PAGE'.

ALV_SLIS_ALV_EVENT-FORM = 'ALV_PAGE1'.

APPEND ALV_SLIS_ALV_EVENT TO ALV_T_EVENT.

CLEAR : ALV_SLIS_ALV_EVENT.

or TRY this remove the next line i.e / from the text

WRITE : 10 'THIS IS BLOCKED ALV REPORT PROGRAM BASED ON 3 BLOCKS' COLOR 5

Edited by: Madhukar Shetty on Jun 7, 2010 12:18 PM