on 2009 Oct 21 8:13 AM
Prevent Occurence of list header and page breaks in spool file of ALV Grid Display.
When we run the ALV in background and create spool request then:
Spool file output is coming like this.
Column1 Column2 Column3 Column4
data data data data
data data data data
data data data data
Column1 Column2 Column3 Column4
data data data data
data data data data
data data data data
But the required is like this
Column1 Column2 Column3 Column4
data data data data
data data data data
data data data data
data data data data
data data data data
data data data data
Please suggest a posible answer
Request clarification before answering.
Hello all,
if you have not yet solved this on your own, here is my solution: use a format type that has 60000 lines per page for your spool output device.
It all depends on the format type that was used for creating the spool output.
By default (in our system), we have 65 lines per page. And after each page the column headings of the ALV will appear.
What i did:
That's it! Be sure to use this format type for your output device in the "Background Print Parameters" window (-> Button "Properties").
Regards
Daniel Klein
All other parameters you discussed before didn't do it. All ALV-Settings will be overwritten by the output device settings and its print properties.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In addition, in a scenario where you don't want / can't use the SPAD to create a new format type, you can influence the number of lines (page break occurrence) during a single printout.
In order to do that, select the "Properties" available under a "Print Parameters" pop up window. Afterwards choose "Format" parameter name and adjust the number of rows.


Got it by myself
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Wa_ALV_print_Cat-no_new_page = 'X'.
Wa_ALV_print_Cat-no_print_listinfos = 'X'.
Wa_ALV_print_Cat-no_print_hierseq_item = 'X'.
Wa_ALV_print_Cat-no_print_selinfos = 'X'.
I tried all the paramaters. But when Spool request is created in the background then header are again coming.
To see the preview of the problem
Run txn code: VA05N.
In menu: goto Program -> Execute in Background.
Then check the spool request created in SP01.
Header are coming on every page created. Please help remove those list headers since output needs to be exported to the excel file.
Please help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ya i implemented its solution...
When going for print Goto print-> click propeties TAB
Pop up appears.... parameter name-> general properties ->cover sheets-> select SAP cover Page uncheck the checkbutton.
parameter name->general properties -> Output-> uncheck the checkbutton named "Spool list with structure information"...
After these settings it prevents list header as well as page breaks, you can check with other options also. I think this would be helpful
Hello Mukesh,
In the FM: REUSE_ALV_GRID_DISPLAY, you have IS_PRINT.
In IS_PRINT, there is a field NO_NEW_PAGE. Pass 'X' to it.
This may solve your problem.
BR,
Suhas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 7 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.