Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Spool request error in downloading 4000 pages

Former Member
0 Kudos

Hi all

I have a small doubt regarding the spool request.

In my scenario I am running the transaction FBL3N

in the background and I am getting an output of around 4000 pages.

I need to download it but my Spool request contains only 10 pages

by default.

I changed it to 4000 but it gives the error of memoryoverflow.

I could work by dividing the file into parts say 500 or 1000 but

is there any way out so that I could download all the pages in

one go.

Hope you ppl have got me.

Please respond asap.

Thanks in advance.

Sumit

4 REPLIES 4

Former Member
0 Kudos

hi,

you can divide data into different spools in following way:

call function 'GET_PRINT_PARAMETERS'

exporting

destination = 'LOCL'

copies = count

list_name = 'TEST'

list_text = 'Test for multiple spools'

immediately = ' '

release = 'X'

new_list_id = 'X'

expiration = days

line_size = 79

line_count = 23

layout = 'X_PAPER'

sap_cover_page = 'X'

receiver = 'SAP*'

department = 'System'

no_dialog = 'X'

importing

out_parameters = params

valid = valid.

  • IF VALID eq SPACE.

new-page print on parameters params no dialog.

  • endif.

writes data into spool 1.

new-page print off.

new-page print on parameters params no dialog.

write into spool 2.

new-page print off.

thanks,

anupama.

0 Kudos

Hi,

As I told you this is not a smartform issue.

This is a report generated from the trabsaction FBL3N.

So please could you provide solution in this respect

Thanks in advance

Former Member
0 Kudos

Do you have any print to email (access method M) printers in your system? If so you could change the printer and send it to yourself as an email. Assuming it's not too large for your email settings. You could also try printing to a local printer set up for File but I'm unsure what the results would look like.

Sandra_Rossi
Active Contributor
0 Kudos

You may also try to create an ABAP program like this below if the other options don't satisfy you :

* send spool to memory
SUBMIT rspolst2 WITH RQIDENT = l_spool_number EXPORTING LIST TO MEMORY AND RETURN.
* transfer list from memory to variable
CALL FUNCTION 'LIST_FROM_MEMORY' ...
* convert variable to text internal table (I think LIST_TO_TXT gives rather the same result as the download button in SP01 screen)
CALL FUNCTION 'LIST_TO_TXT' ...
* split text internal table into lines
SPLIT ... AT cl_abap_char_utilities=>cr_lf
* download it to presentation server (or application server if you want to run it in background)
CALL FUNCTION 'GUI_DOWNLOAD' ... (or OPEN DATASET ... TRANSFER ... CLOSE ...)