Downloading spool in backgroun
Hi I am running a SAP query in background, which i send to the spool.
Can I download this spool at the sametime in the background mode. Or is there any atlernative.
Useful ans will be rewarded
Hi Kantheri
Though i havent tried, have just got a thought for you.
Try to code in Infoset via SQ02.
Try to get the spool number via system field: <b>SPONO</b>.
Then read the spool to an internal table via FM: <b>RSPO_RETURN_SPOOLJOB</b>
Now you can download this data to application server.
To remind again, it is just a thought please try and let us know the outcome.
Hope this helps....
Kind Regards
Eswar
Similar Messages
-
Download spool and convert it to pdf in background job
Hello experts,
RSTXPDFT4 works fine for me if i want to convert spools to pdf files in foreground mode.
If i want to do this in background mode as a daily job i am not able to use RSTXPDFT4.
With report RSTXPDFT5 i am able to download in background as binary data but not as pdf.
So, i want to download spools to network shared folder in pdf formaat.
Thanks for suggestions & Regards
JanezIf i use GUI_DOWNLOAD which is used in this function than i have to be loged on and file is saved in my sapworkdir on my computer and not on networh share.
To create and save TXT file on network shared folder i have to use opendataset statement and write data in file. But i don't know how to use it or to implement it in program RSTXPDFT4 to save spool job with specific id as pdf file. If i pass spool job id to RSTXPDFT4 i can save pdf file on local drive inside of sapworkdir or any where on clien computer nd of course in dialog mode.
I want to save specific spool job with specific spool ID in background mode on network folder.
Thanks & Regards
Janez -
Ability to download Spool into Excel
Hi,
I have a requirement that the ALV report needs to be run in background with ability to download spool into excel .Can anyone please help in this regard.
Many Thanks,
SharathHi,
First check whether the status of the job is Completed or Cancelled.
WHILE 1 = 1.
* GET THE JOB STEPLIST WHICH HAS THE SPOOL NUMBER
CALL FUNCTION 'BP_JOB_READ'
EXPORTING
job_read_jobcount = w_jobcount
job_read_jobname = w_jobname
job_read_opcode = '35'
* JOB_STEP_NUMBER =
IMPORTING
job_read_jobhead = wa_jobhead
TABLES
job_read_steplist = i_jobsteplist
* CHANGING
* RET =
EXCEPTIONS
invalid_opcode = 1
job_doesnt_exist = 2
job_doesnt_have_steps = 3
OTHERS = 4
IF sy-subrc 0.
* MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
* WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
* IF STATUS OF JOB IS COMPLETED(F) OR CANCELLED(A)
* READ THE JOBSTEPLIST & GET THE SPOOL NUMBER
IF wa_jobhead-status = c_a OR wa_jobhead-status = c_f.
READ TABLE i_jobsteplist INTO wa_jobsteplist INDEX 1.
CHECK wa_jobsteplist-listident space.
w_spool_number = wa_jobsteplist-listident.
EXIT.
ENDIF.
ENDWHILE.
Use FM "RSPO_DOWNLOAD_SPOOLJOB".
Best Regards,
Sunil. -
Problems downloading spool lists to spreadsheet format
Hi,
When downloading spool lists to spreadsheet format, individual columns
are not separated like lists created online.
How can we solve this problem?
(Notes 118692 and 650491 don't give any solution)
Thanks in advance.
EduardYour subject header says you own CS5 but your message says CS5.5 so I assume you really want CS5.5.
Download CS5.5 from http://prodesigntools.com/adobe-cs5-5-direct-download-links.html
Follow the Very Important Instructions on that page first BEFORE you click the download links.
Install then enter your serial number to license it. -
Example program that creates downloadable spool
may you please provide me with an example program that creates downloadable spool (for reporting purposes) using function 'GET_PRINT_PARAMETERS'
Hi,
Check this,
https://forums.sdn.sap.com/click.jspa?searchID=5413366&messageID=869735
Thanks,
<b><REMOVED BY MODERATOR></b>
Message was edited by:
Alvaro Tejada Galindo -
How to get Formatted Excel file when downloading spool request of a r paint
I have scheduled a Report painter program in background & spool is generated .
When I download the output in the Excel file its not in the proper format . We need to format the file file by adding deleting blank Line in the report .
Can it be possible when we Download the Report painter. Its come The generated Excel file should come in formatted way.
Thankskiro123 wrote:
I have scheduled a Report painter program in background & spool is generated .
>
> When I download the output in the Excel file its not in the proper format . We need to format the file file by adding deleting blank Line in the report .
>
> Can it be possible when we Download the Report painter. Its come The generated Excel file should come in formatted way.
>
>
> Thanks
Yes the report painter report especially in the hierarchial format will not make much sense when you download to excel. Until now I also have not seen any solution to this. -
Download SPOOL to an internal table in Background
Hello,
I want to Download the Spool to an internal table, but in Background, the functions
RSPO_RETURN_SPOOLJOB
RSPO_RETURN_ABAP_SPOOLJOB
don't work.
Does anybody know another function or way to do it?
Thank you very much,
Maite.Hello,
Thanks for your help but I'm afraid it doesn't work...
In my system the function SO_SPOOL_READ doesn't exists... It might be obsolete.
The function RSPO_DOWNLOAD_SPOOLJOB doesn't work in Background... it sends a message xxx bytes transferred and cancels the job. and the file it is not created.
I don't know why these RSPO functions work in different way in background...
Maite. -
Download spool to PDF document on application server
Hi,
I am using function CONVERT_OTFSPOOLJOB_2_PDF to convert a sapscript spool and then downloading the internal table provided to a pdf file on the application server. The sapscript form contains company logos.
After transferring the file from the application server to PC and then opening the pdf document I get the following message:
"There was an error while trying to parse an image."
The PDF doc contains everything except the company logo.
I noticed that this works (i.e. company logo is present in the downloaded file) when I transfer the internal table that contains the PDF contents onto my PC using GUI_DOWNLOAD using mode 'BIN'. However, when I transfer the contents of the same internal
table to a file on the application server using abap statement:
'Open Dataset <filename> FOR OUTPUT IN BINARY MODE'
I get the problem described above.
I noticed that SAP has provided standard program RSTXPDFT4 to convert a spool and download it into a PC file. However is there a similar program that downloads a spool onto the application server? Perhaps there is a 'special' way in downloading PDF documents onto the application server?
I don't this problem with sapscripts that do not have a company logo.
Is there a certain restriction on 'Open Dataset'with transfering logos in PDF documents?
Any help would be greatly appreciated in the form of reward points.
Thanks
LiamHi,
We convert some of our spools to pdf and store them on the app server using following high level process.
CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = p_spool
no_dialog = 'X'
dst_device = 'LOCL'
TABLES
pdf = lt_pdf
EXCEPTIONS
OTHERS = 0.
Write PDF file
CALL FUNCTION 'GUID_CREATE'
IMPORTING
ev_guid_32 = l_guid.
CONCATENATE '/your_path_goes_here/'
l_guid
INTO l_filename.
CONCATENATE l_filename '.pdf' INTO l_filename.
Store
OPEN DATASET l_filename IN TEXT MODE.
IF NOT sy-subrc IS INITIAL. " only write pdf if new
LOOP AT lt_pdf.
TRANSFER lt_pdf TO l_filename.
ENDLOOP.
ENDIF.
CLOSE DATASET l_filename.
If it doesn't work, I would 1st try and play with image type. I'm wondering if it's tripping on image conversion. Perhaps revert to 1st principles and try monochrome bitmap and a few variations thereof. I stand by my code above. Definitely works. HTH, Dave -
Downloading spool to PDF background
Hi friends
How can i downlaod spool to PDF format in back gorund.
i know we cna download background into server as we required in PDf format.
i am able to downlaod but when i go to AL11 tcode and open i am not able to see in PDF format..
is there any way to downlaod to front end PC through back ground ..
if the file store in application server how user can view the PDF document.
Please helpHi Ramesh,
Check the Sample programs:
RSTXPDFT4
RSTXPDFT5
The FM is: CONVERT_ABAPSPOOLJOB_2_PDF
check this link as well.
http://help.sap.com/saphelp_47x200/helpdata/en/85/54c73cee4fb55be10000000a114084/frameset.htm
<b>Reward points if this helps.
Manish</b> -
Dear Friends,
While downloading the spool job into the GUI,i want to download it into list format as appearing in sap,rather than excel pdf or txt.Please suggest.Also when using downloading to PDF format,the width is not getting adjusted.Please Help.
Thanks in AdvanceHello Susan.
When you perform the download to PDF, SAP uses the SAPWIN printer driver. When you print with a defined SAP printer, uses PCL driver. Maybe that's why you have different width comparing both printings. This is for SAP forms (Sapscript, Smartfomrs). It could be the same for list format. Please, refer to note 183948.
I don't know how to download to list format. Sorry.
Hope this would help you.
Regards,
Andrés Sarcevic. -
Problem downloading spool data
Hi,
We have a requirment wherein we need to print chinese text in the script.We are facing problem while downloading the file from the spool(SP02).The chinese text is showing up perfectly in the spool but when we download it,and open it,it shows junk characters..is there any setting to be done in SAP?
Thanks..hii rakesh
The logic to build SAP Script and Smart form of all languages will be same. But while working on Asian language please take care of the following points.
1 Make sure you logon to SAP in CHINESE language only.
2 At the Operating system level install the hungarian language.[Control panel - >Regional and language Option - >language Tab - > Click on Install Files for East Asian languages] If these language already installed then click on Detail and add the CHINESE languages .
3 At SAP level click on Customizing of Local layout[Alt+F12] and click on options.Go to tab I18N and click on Activate the multi-byte functionalities to support check box.
4.Take care of the Font while assigning to Character formar or paragraph format. Dont use normal font name.
USE CHINESE FONT
REGARDS
Naresh -
Download Spool Asset History List
Hi Gurus,
I would like to download the spool of Asset History List (S_ALR_87011990).
The standard download from SP01 isn't possible because the spool has many thousand pages.
Anybody have a idea how is possible to download this spool?
Thanks in advance,
Have a nice day!
EmanueleHonestly, I would never run a program even in the program which creates 66,000 pages.
It is a sever stress on the system. I would truncate the report into different parts (may be by asset class??) and run the report.
I do not think there is any program to download the report in the background.
If you are interested to download the spool in pdf use transaction ZSPOOL -
Hello,
Need your help with downloading 108 spool files.
I have scheduled 108 jobs and now I have to download data of all these 108 spools into excel files (from various PRD systems).
One way is I go to System -> List -> Save -> Local File.
However I don't want to use this.
Neither I have option to create program in SE38, as I don't have access to same.
Please advice if theree is any standard program or function module which can help me in this.
Will be very thankful.form download_selected tables lsporq type sp01r_tview
changing rs_selfield type slis_selfield.
data: rqnum like sy-tabix,
filename like rlgrap-filename,
dw_rc type sy-subrc.
perform get_selected3 tables lsporq
using ' ' rs_selfield changing rqnum.
if rqnum > 0.
loop at lsporq where selected = 'X'.
filename(3) = lsporq-sys.
filename+3(10) = lsporq-rqid_char.
filename+13(4) = '.TXT'.
move-corresponding lsporq to tsp01sys.
call function 'RSPO_CHECK_OUTRQ_PERMISSION'
exporting
spoolreq = tsp01sys
access = 'DOWN'
exceptions
others = 1.
if sy-subrc 0.
out_message ti.
MESSAGE i059 WITH tsp01sys-rqident tsp01sys-sys.
else.
gprog = 'RSPO_DOWNLOAD_SPOOLJOB'.
if lsporq-sys = sy-sysid.
call function 'RSPO_DOWNLOAD_SPOOLJOB'
exporting
id = lsporq-rqident
fname = filename
exceptions
others = 1.
else.
call function 'RSPO_DOWNLOAD_SPOOLJOB'
destination lsporq-sys
exporting
id = lsporq-rqident
fname = filename
exceptions
communication_failure = 102 message msg_text
system_failure = 103 message msg_text
others = 1.
endif.
dw_rc = sy-subrc.
out_rfc_message lsporq-sys ti.
endif.
endloop.
if dw_rc = 0.
message s028.
endif.
endif.
endform. "DOWNLOAD_SELECTED -
I have a requirement to download 1600 pages of spool request instead of printing it.
The issue we have is the timeout when we are downloading it from SP01.
Is there anyway i can download from SAP to a local file either in excel or as a PDF file.Hi Vijay,
You can download the spool to file at SP01 -> Mark the spool request to download the click on Spool request -> Forward -> Save to local file
If the request time out you can increase parameter rdisp/max_wprun_time but this will require a system restart and probably once you have downloaded the file you'll need to return the parameter value to the previous one as it can potentially cause performance problems if left with large value.
regards
Juan
Please reward with points if helpful -
Downloading Spool of a report scheduld in background on Appllication server
Dear Experts,
I have a requiremnt as below.
1. A simple ABAP report is scheduled to run in the background daily.
2. This report is simple classical report.
3. Once the job is run successfully, the report output will be generated in the spool.
Now the requirement is to transport the spool output to the application server (unix-AL11)
awaiting your help and kind op-operation to meet this challenge.
Regards,
Nuri.Use the Function RSPO_RETURN_SPOOLJOB , for this pass the spool number, and get the report spooljob into a table BUFER, pass this table to application server using the Open dataset and Transfer .
Maybe you are looking for
-
GR IR CLEARING TOLERANCE LIMIT.
We are clearing in F.13the GR and IR account there is difference in the GR and IR amount by Rs 100 ,SO IT IS NOT CLEARING. WHERE IS THE SETTING MADE FOR TOLERANCE FOR GR IR CLEARING.PLEASE PROVIDE THE PATH. Pls help. Edited by: mysap query on Feb 6,
-
How do I transfer files from my old laptop with a broken screen to my new macbook pro?
I recently purchased a new macbook pro and would like to tranfers files such as music and documents from my old sony vaio laptop. The problem is that the screen on my old laptop is broken so the image is distorted and I cannot see a thing, which mean
-
Generate Withholding tax on interest Money Market instrument
How can I automatically generate a flow for withholding tax on the interest of a money market instrument (55B)? Would the tax be posted on a different (from the counterparty) business partner (tax office) or just an open item on a GL account?
-
IPhone 5s displays wrong video thumbnails - how to clear cache?
I have an iphone 5s and in the video app, I see things like Beyonce's video with a picture of the band RUSH, or Blondie's thumbnail for Megadeth. Anyone know how I might fix this? I've done a factory reset on settings, and also tried a restore from
-
Description for Create Item button missing
Hi experts, browsing to the Items tab through portfolio in NWBC does nt show description for create buton instead shows "Application 1 (Description in Language English doesn't Exist)" .all other butttons have proper descriptions - Printversion, Expor