We have added search box. Key in SAP issue keyword to search
TopBottom

Announcement: wanna exchange links? contact me at sapchatroom@gmail.com.

RE:[sap-abap] TOP_OF_PAGE not working in REUSE_ALV_HIERSEQ_LIST_DISPLAY

Posted by Admin at
Share this post:
Ma.gnolia DiggIt! Del.icio.us Yahoo Furl Technorati Reddit

Posted by Latha
on Aug 22 at 10:53 AM
Thanks Kalyani for quick reply .I am using the same approach as you said with 4.6C version so i am not if that is issue . Here is the code.


CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
i_list_type = 0
IMPORTING
et_events = in_events[].

READ TABLE in_events INTO w_event WITH KEY name =
slis_ev_top_of_page .

IF sy-subrc EQ 0.

MOVE slis_ev_top_of_page TO w_event-form.
APPEND w_event TO in_events.

ENDIF.

FORM TOP_OF_PAGE.

DATA: wrk_filler(255) TYPE c.
DATA: line1(40) TYPE c,
line2(50) TYPE c.

line1 = 'Report'.
line2 = sy-title.


middle_column = ( sy-linsz / 2 ) - 19.

right_column = sy-linsz - 16.

* FORMAT COLOR COL_HEADING.

WRITE: /01 wrk_filler(sy-linsz),
01 'Report:',
08 sy-repid,
AT middle_column line1 CENTERED,
AT right_column 'Date:', sy-datum.
ENDFORM.

Please let me know if there is any issue in the code.

---------------Original Message---------------
From: Kalyani Udare
Sent: Monday, August 22, 2011 1:14 AM
Subject: TOP_OF_PAGE not working in REUSE_ALV_HIERSEQ_LIST_DISPLAY

Here you go.

Declare an internal table of type SLIS_T_EVENT and insert event name in this table as

DATA : it_events TYPE slis_t_event,
wa_events type slis_alv_event.

WA_EVENTS-NAME = 'TOP_OF_PAGE'.
WA_EVENTS-FORM = 'F_TOP_OF_PAGE'.
APPEND WA_EVENTS TO IT_EVENTS.

Now, just pass this internal table in REUSE_ALV_HIERSEQ_LIST_DISPLAY.

Thanks and regards,
Kalyani

__.____._
Copyright © 2011 Toolbox.com and message author.

Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251
Mark as helpful
View this online
  
Popular White Papers

In the Spotlight
View the "Managing the Application Life Cycle" webinar and learn how organizations optimize their SAP applications.
_.____.__

0 comments:

Post a Comment

T r a n s l a t e to your language