Skip to Content
author's profile photo Former Member
Former Member

Spool Number getting 00000 while using ALV Print enable paramater for PDF Converiosn Purpose

Hi Abapers,

1. I am trying to create a program to convert ALV Report into PDF Format for Email attachment purpose.

In my program I pass ALV print parameter setting following values

DATA: wa_print TYPE slis_print_alv.


WA_PRINT-PRINT = 'P'.

WA_PRINT-no_print_selinfos = 'X'.

WA_PRINT-NO_COVERPAGE = 'X'.

WA_PRINT-print_ctrl-PRI_PARAMS-PDEST = 'PK00_AA'. "Custom Output device with custom output format having 100 rows and 1000 columns

WA_PRINT-print_ctrl-PRI_PARAMS-PRIMM = ' '. "Without immediate print




CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

I_CALLBACK_PROGRAM = SY-CPROG

* I_CALLBACK_PF_STATUS_SET = 'F_SET_PF_STATUS'

I_CALLBACK_USER_COMMAND = 'F_USER_COMMAND'

IS_LAYOUT = WA_LAYOUT

I_SAVE = 'X'

IT_FIELDCAT = IT_FIELDCAT

IS_PRINT = WA_PRINT

TABLES

T_OUTTAB = IT_DATA[]

EXCEPTIONS

PROGRAM_ERROR = 1

OTHERS = 2.



When I execute report i get following message

Spool request (number 0000000000) created without immediate output

As Spool Number is 000000000 so i dont get any spool job to perform otf to pdf conversion.

Kindly help me in this.

2. Earlier I was trying to schedule this report with out assigning ALV Parameter in sm36/sm37 but i was getting incomplete output (truncated columns from right side), for this purpose I created separate output format and output device but all in vain.


In either case kindly help me out if any possible.


Thanks

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jul 15, 2016 at 12:33 PM

    If you print in dialog mode, it will be displayed; there won't be any spool. I guess the message is sent by error in dialog mode.

    Instead, you should run it in background. In the print parameters of the job, choose a page layout with a larger width (1023 max). I'm not sure which print parameters are selected, either those from the job, or from the ALV print parameters... Try all combinations.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.