Current position:  Home > Default > Header in every page of ALV List

Header in every page of ALV List

Time:November 30
Advertisement
Hi All,
I am working in ALV list now the requirement is that i have to fetch the data based on inputs given when the report executed. and the values which i gave in the input is printed as header of ALV list.
I have done everything except that when i am printing the Header it is coming only on the first page but we want it in every page the list spreads. please help me ASAP.
Regards,
hrk
Advertisement
Hi,
As my knowledge, It can not do the thing you told (you can do this thing with Smartforms). but you can separate your report with a condition to break page. Here an example that you can break page with condition when company code changes or GL account changes.
firstly, build a sort table:
FORM sort_build CHANGING pt_sort TYPE slis_t_sortinfo_alv.
*-- company code
  gs_sort-spos      = 1.
  gs_sort-fieldname = 'BUKRS'.
  gs_sort-tabname   = 'GT_FKONT'.
  gs_sort-up        = 'X'.
  gs_sort-group     = '*'.
  gs_sort-subtot    = 'X'.
  APPEND gs_sort TO gt_sort.
*-- Account
  gs_sort-spos      = 2.
  gs_sort-fieldname = 'SAKNR'.
  gs_sort-tabname   = 'GT_FKONT'.
  gs_sort-up        = 'X'.
  gs_sort-group     = '*'.
  gs_sort-subtot    = 'X'.
  APPEND gs_sort TO gt_sort.
ENDFORM.     
and attach the sorted table to FM:
FORM alv_list_display TABLES pt_itab
                      USING  pv_pf_status_set
                             pv_user_command.
  CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
      i_callback_program       = gv_repid
      i_callback_user_command  = pv_user_command
      i_callback_pf_status_set = pv_pf_status_set
      is_layout                = gs_layout
      i_save                   = gv_save
      it_excluding             = gt_excluding[]
      is_variant               = gs_variant
      it_events                = gt_events[]
      it_event_exit            = gt_event_exit[]
      it_fieldcat              = gt_fieldcat[]
      *it_sort                  = gt_sort[]*   "sort table
    IMPORTING
      e_exit_caused_by_caller  = gv_exit_caused_by_caller
      es_exit_caused_by_user   = gt_exit_caused_by_user
    TABLES
      t_outtab                 = pt_itab.
ENDFORM.
regards,
Thien
Edited by: Thien Pham on Dec 1, 2009 2:48

How to give the no of lines per a page in alv report

2015-10-11

hi could u plz inform me how to give the no of lines per page in alv report in ordinary report we can give line-count na how can we give in alvs. thanx kals.Hi Kalyan, There is another Forum(Abap Development) where u can post abap related stuffs and

How doi print Any variable at the end of page in ALV report?

2015-10-11

Hi, Anyone can tell me that How do i print Any variable at the end of page in ALV report? Exmale: at the ende of alv report i want to print total no of employee who has taken house loan or education loan.Hi, Go through these links Thread in sdn regar

How to declare top of page in alv report

2015-10-11

hi guru how to declare top of page in alv report thanks subhasisHi, check this simple program. REPORT ZBHALV_LIST. TABLES:MARA. SELECT-OPTIONS: MATNR FOR MARA-MATNR. DATA:BEGIN OF ITAB OCCURS 0, MATNR LIKE MARA-MATNR, ERSDA LIKE MARA-ERSDA, MTART LIK

How to give no of lines per page in alv report

2015-10-11

hi could anybody tell me how to give no of lines per page in alv report i need bottom of page too if possible plz send the code too it ll be very helpful to me thanx kals.Hi, This is possible, using some of the events in the ALV. You could use AFTER_

How i can show the selection screen input field in the top of page in alv

2015-10-11

hi ,           how i can show the selection screen input field in the top of page in alv  grid output. tell me the processHi, excample from my program: FORM topof_page.   DATA: l_it_header   TYPE TABLE OF slis_listheader WITH HEADER LINE,         l_i

END OF PAGE IN ALV LIST

2015-10-11

Hi All, I am generating the report output in ALV list and downloading in the PDF format. It is working fine. But I am not able to print last line(AS SOME TEXT) on each page of the report. I think the output of report in ALV LIST does not show the END

End of page in alv list output.

2015-10-11

Hi All, Can any body help me out for how to show end of page in alv list output. Thanks, Rakesh SinghRefer this link: http://www.sap-img.com/abap/sample-programs-on-alv-grid.htm Regards, RaviRead other 2 answers

Space in Top of page on alv header

2015-10-11

Hi Experts, I do have a query on ALV , Can you please help me in solving my problem. Here goes my query... I have to develop a ALV where on the top of page i have to display two fields as shown in below which was highlighted in the screen http://img4

How to get the total pages in ALV report?

2015-10-11

Hi guys, Since I used page breaks can somebody please help me on how to get the total pages in ALV report?sincerely please...thanks guys.automatic display total page. https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e8a1d690-0

Pages in ALV grid output and header on everypage

2015-10-11

Hi, My report output is displayed in a ALV grid. The output has around 100 records. Now , my requirement is to display the output in pages, say 25 records per page and I also want to have the header details for every page. How  can I do it? Thanks, S

Desired text in top of page in ALV

2015-10-11

Hi All, Due to some technaical requirement user want to convert sapscript form into ALV GRID report. Can we show some text in right justified mode, some in left justified mode, some in center, some in bold character, etc. in top of page in ALV. Edite

Adding Legends on TOP-OF-PAGE in alv

2015-10-11

Hi All, How can I add legends on top-of -page in ALV. This would include a colored cell and a text on what it depicts. Thanks in advance .. Edited by: aeterminator on Jun 16, 2011 11:09 AMThanks Marcin..Read other 2 answers

How to give colors to the top-of-page in ALV Grid

2015-10-11

How to give colors to the top-of-page in ALV Grid in table GT_LIST_TOP_OF_PAGE i am filling 3 rows ,i need 3 different colors to be displyed on top-of-page(one color to one row) CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING I_LOGO = 'ENJOYSAP_

How to devide the top of page in alv grid display

2015-10-11

hi all in the alv grid display am getting the page number and total number of pages in the left hand side but what i need is i need in the right hand side how to get thatHi, PLease refer to the code below: *& Report  ZDEMO_ALVGRID                    

How to trigger top-of-page in ALV Grid

2015-10-11

How to trigger Top-Of-Page in ALV Grid... can any one plese send the sample code... thanks.here is sample code. try this. u need to build an internal table and then call function commentary write and pass that internal table. *&      Form  TOP_OF_PAG

TOP OF PAGE in ALV Grid Display in ECC 6.0

-0001-11-30

Hi, I have an issue with top of page in Alv grid display in ECC 6.0. I searched  the forum for this, but couldnt fine any solution. I am using Reuse_alv_commentary_write to display the header. It's working fine in 4.7E but the same code is not workin

Top-of-page in ALV  AND table

-0001-11-30

hy folks, i read many topics about the top of page in alv but none answered to my problem, i have an alv_grid with top of page, but i need to put before the alv grid another table. is it possible to use CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'    

Top of page in ALV reports

-0001-11-30

hi all , please let me know that ,can we use write statement to display top of page in ALV.if not suggest alternative. thanks in advance. janardhan.Hi Janajana, Here is the code. Reward points if it helps you. REPORT ZALV_SAMPLE. *                 NO

Top of page in ALV GRID display

-0001-11-30

Hi All, Is it possible to have a top of page in ALV grid display? If yes, then how? Thanks and Regards, Sirishahi check out the following code: report  z_alv2 line-count 20. type-pools : slis. type-pools : icon. tables: lfa1, lfb1, lfm1. selection-sc

How to add interactive feature in top of page in ALV .

-0001-11-30

Hi All , There is immediate requirement , I have to add interactive feature in top of page in ALV grid . Can anyone sort this out ? Reward points will be given.hi, check this example: REPORT  ZSR_ALV_INTERACTIVE2. TYPE-POOLS: SLIS. *DATA DECLARATION.