‎2006 Jan 02 12:58 PM
Hi Group,
I have copied program RPCIPS00 to a z program as the standard program was not displaying custom fields added to standard table.Now when I execute this Z report the header part of the zreport seems to be missing.The form top_of_list calls a function module REUSE_ALV_LIST_LAYOUT_INFO_GET which imports a table it_sort. In the z report this table is blank where as in case of standard report this table is filled and this is causing the z program to behave differently. Any inputs on what I could be doing wrong ?
Regards,
Ankur Bhandari
‎2006 Jan 02 1:01 PM
Hi Ankur,
When copying, did you copy even the includes?
Also check whether the FM Reuse_commentary_write is returning the correct values or not.
Regards,
ravi
‎2006 Jan 02 1:24 PM
Hi Ankur,
i don't see anywhere function module REUSE_ALV_COMMENTARY_WRITE has been used in Statndard program.
TOP_OF_PAGE which has to pass to FM REUSE_ALV_EVENTS_GET.
then pass header info text and next call FM
REUSE_ALV_COMMENTARY_WRITE.
Please go through sample code....
DATA:fevents TYPE TABLE OF slis_alv_event WITH
NON-UNIQUE DEFAULT KEY.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
i_list_type = 0
IMPORTING
et_events = fevents[].
READ TABLE fevents WITH KEY name = 'TOP_OF_PAGE'.
IF sy-subrc = 0.
fevents-form = 'TOP_OF_PAGE_EVENT'.
MODIFY fevents INDEX sy-tabix.
CLEAR fevents.
ENDIF.
****----
Call the forms
****----
&----
*& Form top_of_page
&----
display top of the pags
----
FORM top_of_page .
fheader-typ = 'H'.
fheader-info = text-001. "Write Header text
APPEND fheader.
CLEAR fheader.
ENDFORM.
*&----
*& Form top_of_page_event
*&----
Form to call top of page event
*----
FORM top_of_page_event.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = fheader[].
ENDFORM. "z_topofpage
Cheers,
Pramod
‎2006 Jan 02 2:12 PM
Hi Ankur,
I tried that, it is not getting the sort info.
try to pass the sort table to the FM.
since they are not passing(it is standard ,from some where they are getting)so if you need that info you pass the sort table to FM and try...
VIjay
‎2006 Jan 02 2:40 PM
Hi please copy all the includes associated with the standard program while copying them to zprogram.
satish