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 download issue

prathamesh_gandhi
Participant
0 Kudos

Dear All,

There is SAP std program for Employee leave absense report (RPLABSG0_ABSENCE_OVERVIEW ), we have copied and enhance with few additional fields.

We have schedule these program for background processing. As this is ALV report, the output is getting automatically write to spool. Here we are facing issue when we are downloading the spool file as the number of count displayed in spool is not same as the actually downloaded file. Downloaded file is contains less records. When we compare it to the std program spool, std program spool is generated correctly. While debug I checked the number of records passed to  REUSE_ALV_GRID_DISPLAY are same in both programs.

There are few diff in both program that I have notice is, Z program has LINE-COUNT set to 65535 which is not in std program.

Another diff is, in standard program TOP_OF_PAGE is set and Structure name is passed.

Can any one guide me what will be exact issue. How I can resolve it. We are downloading spool using SM37.

Thanks In Advance.

P$G

2 REPLIES 2

Sandra_Rossi
Active Contributor
0 Kudos

How do you "download" the spool? Note that when you display a spool (SP01/SM37), only the first ten pages are displayed by default.

You should also read the documentation for LINE-COUNT. Really 65535 lines per page?

raymond_giuseppi
Active Contributor
0 Kudos

This is an ALV, so why don't you wrap it (*) in another report with class cl_salv_bs_runtime_info, so you would will be able to display or download it.

Regards,

Raymond

(*) or adapt your clone, was it not possible to enhance standard report?