Application Development and Automation 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: 
Read only

Generating PDF file without spool generation

Former Member
0 Likes
749

Hi,

I had data in the internal table.I need to save the data as PDF file.

currently i am using logic like this

   CALL FUNCTION 'GET_PRINT_PARAMETERS'

   NEW-PAGE PRINT ON PARAMETERS lwa_params NO DIALOG.

     all write statements

        

   NEW-PAGE PRINT OFF.

   and then  calling   CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'

For displaying popup

   CALL METHOD cl_gui_frontend_services=>file_save_dialog

And finally

   CALL FUNCTION 'GUI_DOWNLOAD'

Here spool is generating and it is directly printing after execution of program.

I dont want spool to be generated and it should save in the presentatuion server.

Can any one help me in this regard.

Regards

Ram

2 REPLIES 2
Read only

Former Member
0 Likes
545

Hi

I believe the only solution to convert an abap list to pdf is to generate the spool and the convert it: just like you're doing

Max

Read only

RaymondGiuseppi
Active Contributor
0 Likes
545

Here spool is generating and it is directly printing after execution of program.

Is this the actual problem, if yes force the non-immediate printing of the spool (IMMEDIATELY = space) and delete it after conversion to PDF (FM like RSPO_R_RDELETE_SPOOLREQ).

Regards,

Raymond