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: 

Sending text file to spool

Former Member
0 Kudos

Hi All,

I have a requirement that I need to send the logfile that is created by a report program to spool. from the spool the same needs to be converted to PDF format which has to be ultimately downloaded and send across via via mail. Now, the issue is whenever I send the file to spool it generates the spool but the no of pages is sisplayed as 0 and because of this once the same is converted to PDF the file is giving an error while trying to open it as the spool is not having an pages. Any solution to the same will be highly rewarded..

Thanks

Debasis

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

check this link

http://www.sap-img.com/fu016.htm

Check this for configuration help..

http://www.sapgenie.com/interfaces/sapconnect.htm

Regards,

Shiva Kumar

3 REPLIES 3

Former Member
0 Kudos

Hi,

check this link

http://www.sap-img.com/fu016.htm

Check this for configuration help..

http://www.sapgenie.com/interfaces/sapconnect.htm

Regards,

Shiva Kumar

SureshRa
Active Participant
0 Kudos

Hi Debasis,

Use GET_PRITNT_PARAMETERS function module to get the PRI_PARAMS structure. Change whatever parameters (say page length) and call SET_PRINT_PARAMETERS function module to set the spool parameters.

After the above, write your spool and it should be fine.

Regards

Suresh Radhakrishnan

Former Member
0 Kudos

hi debasis,

the steps are :

1. CALL FUNCTION 'GET_PRINT_PARAMETERS' here give the parameters

2.write statements which is going to be output

3.use this statement between step 3 and step 5 "wait up to 0 seconds".

4.use fm CONVERT_ABAPSPOOLJOB_2_PDF where give i/p as sy-spono

5.CALL FUNCTION 'GUI_DOWNLOAD'

Regards,

Gaurav