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 Kalyani Udare
on Feb 13 at 11:25 PM
Madhu,

I think you are unable to understand my problem.

I am able to display the records in hierarchical sequence.

My main concern is to get the Heading of the report and date on the top of the page which is possible through top_of_page event. But in my case this top_of_page event is not working. Hence, I am unable to get the heading of the report and date.
When I debugged the "Hierseq" Function module, it is taking the name of the form but when executing that form it checks for the condition...gtstack_flag_top_of_page = 'X' then execute that form. And this flag is "INITIAL" in my case and hence the form is not getting executed.

One more thing, this top_of_page event is working properly in Reuse_alv_grid_display.

Hope now you will understand my problem.

Regards,
Kalyani

---------------Original Message---------------
From: Madhu
Sent: Sunday, February 13, 2011 10:52 PM
Subject: TOP_OF_PAGE not working in REUSE_ALV_HIERSEQ_LIST_DISPLAY

Hi Kalyani,


REPORT.
TYPE-POOLS: slis.

*--tables declaration
TABLES: SFLIGHT,SPFLI.

*--types declaration
DATA: BEGIN OF i_SFLIGHT OCCURS 0,
CARRID LIKE SFLIGHT-CARRID,
CONNID LIKE SFLIGHT-CONNID,
FLDATE LIKE SFLIGHT-FLDATE,
END OF i_SFLIGHT.

DATA: BEGIN OF i_SPFLI OCCURS 0,
CARRID LIKE SPFLI-CARRID,
CONNID LIKE SPFLI-CONNID,
* AIRPFROM LIKE SPFLI-AIRPFROM,
* AIRPTO LIKE SPFLI-AIRPTO,
DISTANCE LIKE SPFLI-DISTANCE,
END OF i_SPFLI.

*--variables
DATA: i_repid LIKE sy-repid.
DATA gd_prntparams type slis_print_alv.
DATA: gt_events type slis_t_event.

i_repid = sy-repid.

DATA: i_field TYPE slis_t_fieldcat_alv.
DATA: i_field2 TYPE slis_t_fieldcat_alv.


DATA: G_TABNAME_HEADER TYPE SLIS_TABNAME.
DATA: G_TABNAME_ITEM TYPE SLIS_TABNAME.
DATA: G_KEYINFO TYPE SLIS_KEYINFO_ALV.
*--select options
SELECT-OPTIONS : S_CARRID FOR SFLIGHT-CARRID .

*--initialosation
INITIALIZATION.
*--selection screen on
AT SELECTION-SCREEN .
*--start of selection
START-OF-SELECTION.
SELECT CARRID
CONNID
FLDATE
FROM SFLIGHT INTO TABLE i_SFLIGHT
WHERE CARRID IN S_CARRID.


IF i_SFLIGHT[] IS NOT INITIAL.
SELECT CARRID
CONNID
DISTANCE
INTO TABLE i_SPFLI FROM SPFLI
FOR ALL ENTRIES IN I_SFLIGHT
WHERE CARRID = i_SFLIGHT-CARRID.

IF sy-subrc NE 0.
MESSAGE e001(z538msg).
ENDIF.
ENDIF.

PERFORM fill_fieldcatalog1.
PERFORM fill_fieldcatalog2.
PERFORM HIERARCHY_ALV.
* PERFORM alv_events.

G_KEYINFO-header01 = 'Madhu'.
G_KEYINFO-item01 = 'CONNID'.
G_TABNAME_HEADER = 'I_SFLIGHT'.
G_TABNAME_ITEM = 'I_SPFLI'.



*&

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

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

In the Spotlight
Midsize Companies Work Smarter with Business Analytics. Watch the IBM Webcast
_.____.__

0 comments:

Post a Comment

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