Download complete (!) spool data (cvs)
Hello ABAP-community,
i want to download the whole spool data (gt 10 pages) to excel. I executed an application in background task. When looking for the results via sm37, i find spool data. Opening the spool data i fined 'only' 10 pages of data. I know i can expand properties, but when extending to 1000 pages i receive a warning (Displaying &1 pages could cause a memory overflow) and risk a shortdump.
When using the standard export to ms excel, the application only exports the data shown in spool viewer (e.g. page 1 to 10).
Question is, is there a possibility to download the complete spool data (e.g. page 1 to n; n = 1000 or gt 1000)
Answers will be rewarded.
Thanks in advance!
g
Question 1 : 50 M records can be easily handled - we have taken dumps of about 7 Crore records - which is about 70 M ..
Make sure you have the space available in the disk for the same.
Moving such big files around even after they are zipped is a big task - plan for it if you intend to do anything with these files.
The most reliable mentod to dump this file is using LISTCUBE.
Question2 : Getting the delta alone out - preferably have a DSO inbetween that has only the latest request and dump that data out ..
But what would you want this for ??
Similar Messages
-
When I try to sync my iPod iCal with my MBP (OS 10.7) iCal via iTunes and WiFi I get a message saying "Safari Downloading Safe Browsing Data" but I am connected to a local network and thus the syncing does not complete because the downloading never completes because I am not connected to the internet.
Why does syncing iCal need Safari Safe Browsing Data? How can I turn this off?See:
iTunes 10.5 and later: Troubleshooting iTunes Wi-Fi Syncing
"Safari Downloading Safe Browsing Data" is just some data that is synce with the computer. To turn off on the Mac go to System Preferencs>iCloud and turn off Safari -
I Purchased the hobbit desolation of smaug, the download completes, but then starts from the beginning again, using up more data.
Okay, you need to contact support definitely about what's going on. Here is a form that will send an e-mail into support for you:
http://www.apple.com/emea/support/itunes/contact.html
As far as the prices, the difference is likely the laptop version is the SD version and the iPad one is available in HD. That's the only reason you'll see a price difference. It has nothing to do with the device with movies/movie rentals. Apps yes, these no. -
How to download from spool to application server
Hi all,
Can any one tell me how to download from spool to application server. Quick response would be appreciated.
thanks
maheshHi Kilaru,
Please find the sample code for your req,t and let me know if you found any difficulty on the same.
<b>Just copy paste the code :</b>
This will Convert spool to PDF format and download.
data: w_ident like tsp01-rqident,
w_doctype like tsp01-rqdoctype,
w_bytecount type i.
data: itab_pdf like tline occurs 0 with header line.
parameter spoolnum like tsp01-rqident obligatory.
selection-screen begin of block a2 with frame.
parameters: to_pc radiobutton group a2 default 'X',
pcfile like rlgrap-filename lower case,
to_unix radiobutton group a2,
unixfile(255) lower case.
selection-screen end of block a2.
at selection-screen on block a2.
if to_pc = 'X' and pcfile is initial.
message e398(00) with 'Enter PC File Name.'.
elseif to_unix = 'X' and unixfile is initial.
message e398(00) with 'Enter Unix File Name.'.
endif.
at selection-screen on spoolnum.
select single rqident rqdoctype
into (w_ident, w_doctype)
from tsp01
where rqident = spoolnum.
if sy-subrc ne 0.
message e398(00) with 'Spool' spoolnum 'not found'.
endif.
at selection-screen on value-request for pcfile.
call function 'WS_FILENAME_GET'
exporting
mask = ',.,..'
importing
filename = pcfile
exceptions
others = 1.
if sy-subrc <> 0.
message id sy-msgid type 'I' number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
start-of-selection.
if w_doctype = 'LIST'.
perform get_abap_spool_in_pdf.
elseif w_doctype = 'OTF'.
perform get_otf_spool_in_pdf.
endif.
if to_pc = 'X'.
perform write_pdf_spool_to_pc.
else.
perform write_pdf_spool_to_unix.
endif.
message i398(00) with 'Completed OK'.
form get_abap_spool_in_pdf.
refresh itab_pdf.
call function 'CONVERT_ABAPSPOOLJOB_2_PDF'
exporting
src_spoolid = w_ident
importing
pdf_bytecount = w_bytecount
tables
pdf = itab_pdf
exceptions
err_no_abap_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_destdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11
others = 12.
if sy-subrc ne 0.
message e398(00) with 'Cannot convert to PDF. Error =' sy-subrc.
endif.
endform.
*********************************************************form get_otf_spool_in_pdf.
refresh itab_pdf.
call function 'CONVERT_OTFSPOOLJOB_2_PDF'
exporting
src_spoolid = w_ident
importing
pdf_bytecount = w_bytecount
tables
pdf = itab_pdf
exceptions
err_no_otf_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_dstdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11
others = 12.
if sy-subrc <> 0.
message e398(00) with 'Cannot convert to PDF. Error =' sy-subrc.
endif.
endform.
*********************************************************form write_pdf_spool_to_unix.
open dataset unixfile for output in binary mode.
if sy-subrc ne 0 .
message e398(00) with 'Cannot open unix file for output:' unixfile.
endif.
loop at itab_pdf.
transfer itab_pdf to unixfile.
if sy-subrc ne 0 .
message e398(00) with 'Cannot write to unix file:' unixfile.
endif.
endloop.
close dataset unixfile.
endform.
*********************************************************form write_pdf_spool_to_pc.
call function 'WS_DOWNLOAD'
exporting
bin_filesize = w_bytecount
filename = pcfile
filetype = 'BIN'
tables
data_tab = itab_pdf
exceptions
file_open_error = 1
file_write_error = 2
invalid_filesize = 3
invalid_type = 4
no_batch = 5
unknown_error = 6
invalid_table_width = 7
gui_refuse_filetransfer = 8
customer_error = 9
others = 10.
if sy-subrc <> 0.
message e398(00) with 'Cannot download to PC. Error =' sy-subrc.
endif.
endform.
Hope this will help you.
Cheers
Sunny
Rewrd points, if found helpful -
How to download the script data into pdf file
how to download the script data into pdf file
i have one option to download the script data to pdf file --->rstxpdft4 program.
i have one doubt how to use this proogram.or any function module to download the script data to pdf file.
Thanks and regards,
Sri.Hi Sri Sai,
I know one method to convert the sapscript to pdf file :
first generate a Spool Request for the required Sapscript
then goto transaction SP01 and copy the generated Spool Request number
now execute the SAP report RSTXPDFT4
here enter the copied Spool request number and the target directory into the parameters
execute the report
required pdf file will be generated into the target directory
i hope it will help you out
Please refer this simple program:
http://www.sapdevelopment.co.uk/reporting/rep_spooltopdf.htm
Reward points if found helpful....
Cheers,
Eshwar. -
Spooling data with Header and trailer
Hi everyone,
I have a problem in spooling the data.
I get a .dat file to load into db .That .dat file will be having header,records,trailer.While loading into the db i load only the records .
I load the .dat file into table using sqlldr with direct= true and parallel=true.
I load data into one table.header and trailer into one table(Loading into two different tables using three control file each for header,records,trailer to load from same .dat file).But while spooling the data out after some modifications to the table.i need to spool it with the header and trailer.I am able to spool only the records but not header and trailer.
That header and trailer are in standard form,everytime i get the .dat file.
Help me how to spool data from a table with the HEADER & TRAILER in the spool file.
ThanksSome may argue this is not the right forum - database general might have been a little been than downloads - but now the thread is here I'll try an answer.
As I see it It depends on your spooling tool.
Lets assume you are using sqlplus.
I that case the sql prompt command may serve your purpose
Alternatively
select 'header' from dual
union all
select field1||','||field2||','field3 .... /*must single string expression but may concatentate field */ from somtable
union all
select 'trailer' from dual;may suit.
However I fear either I have not understood the question or if I have understood the question that you may have difficulties implementing this.
Edited by: bigdelboy on 19-Apr-2009 14:32 -
How to download all spool order
hello:
i would like ask one favor, i make a program and i dicided to ejecuted in batch(because the ejecution could have many data), that bathc generated a job and spool order , but when i try to open it , the system send me a message, 'you will only see 10 page of the total', so when i try to download the spool order only download the 10 pages but i need to have all the information in this case i would like to see 25 pages.
so , my question is, is there are any way to download all the spool order, i am taking about the complety file in this case the 25 pages?
i already have used the tool that sap offers, ---save in a local file(but only save the 10 page instead of the 25 pages), and i also i have used the function to convert the spool order to pdf file, but this opcion move the format of my information, i think one option to TXT will be better.
thanks a lot fo you help.In SP01/SP02 specify the spool number & click the list to view
Click on Settings button & change the FROM and TO values.
You can mention like 0 to 25 but it will show an info that "Memory Overflow" -
Increse the size of font in abap spool data
Hello all,
I searched on SDN but could not find the proper answer for the same.I have developed a program which generates a spool (ALV report) and from spool it downloads data in PDF format.it is working fine.but when i see that PDF file,font size is very small.I need to increase it.If i can increase the font size in spool data then i think it will be possible.Can anyone suggest me how to do that?
Regards,
Soniya S.Hi,
Font Size in Spool cannot be changed.
Regards,
Sakshi -
Cannot store complete internal data error
Hello Diadem gurus,
I have some tdms files that I am post processing. I use diadem for that purpose. Some files cause the error "cannot store complete internal data error in the file."
See the attached picture. I assume it may be caused by my page file or a setting within Diadem. Any suggestions on how to prevent this?
Nasty detail is that the source files were actually lost! (I am saving changes made with diadem back into the same file, but in reality it simply overwrites the file.)
Attachments:
diadem error.JPG 17 KBHi aartjan,
There were a number of improvements made to the TDMS DataPlugin, which debuted with DIAdem 10.1. These improvements are available for download at www.ni.com/dataplugins for DIAdem 10.1 users. However, there was one fix made that was too extensive to backport to the DIAdem 10.1 codebase, and this I believe is the one you need. This last fix regarded the saving of enormous TDMS files. The TDMS DataPlugin which shipped with DIAdem 10.1 expected to fit all the data values into memory at one time. The TDMS DataPlugin which ships with DIAdem 10.2 Beta3 is able to buffer the data values to disk, therefore not requiring the entire file to fit in memory in order to succeed in exporting it to TDMS file.
The good news is that if you install DIAdem 10.2 Beta3 you will get the DIAdem 10.2 USI layer along with the correct TDMS DataPlugin. Then even if you uninstall DIAdem 10.2 Beta3, the newer USI and TDMS DataPlugin will remain and work correctly with your DIAdem 10.1. You can get the DIAdem 10.2 Beta3 by visiting the www.ni.com/beta website and requesting to participate in the DIAdem 10.2 Beta program. Once you have requested this, remind me to activate your Beta profile, after which you will be able to download the installer.
Regards,
Brad Turpin
DIAdem Product Support Engineer
National Instruments -
Downloading 108 spool files: Any FM?
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.
Regards,
Surpreet Singh Balhttp://www.sapfans.com/forums/viewtopic.php?f=13&t=316295
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 -
Hi,
We have scheduled a background job for archiving the data and would like to download all the spool files generated...
There are about 300 spool files..instead of downloading each spool file data is there any way where we can download all the spool files at one time..
Regds,
Satyanarayana N.Hi Satya,
Pretty simple. In SP01 Select all the relevant spools using select all option and then from menu select:
Spool Request>Forward-->Export as text.
The spools will get saved as seperate individual files under SAPWORKDIR which will located inside Documents and Settings for user (Windows).
Regards.
Ruchit. -
Latest download completed but no prompt to drag to ap
my existing firefox told me to update;
stage (1) download to 6.0.2 was completed;
stage (2) I waited but no prompt appeared to drag icon to
application folder;
I am still stuck with version I can't use. I may have selected the wrong file system but I can't get your question back.
I have a macBook OSX Leopard.If there are problems with updating or with the permissions then easiest is to download the full version and trash the currently installed version to do a clean install of the new version.
Download a new copy of the Firefox program and save the DMG file to the desktop
* Firefox 6.0.x: http://www.mozilla.com/en-US/firefox/all.html
* Trash the current Firefox application to do a clean (re-)install
* Install the new version that you have downloaded
Your profile data is stored elsewhere in the Firefox Profile Folder, so you won't lose your bookmarks and other personal data.
* http://kb.mozillazine.org/Profile_folder_-_Firefox
See also:
* https://support.mozilla.com/kb/Installing+Firefox+on+Mac
* http://kb.mozillazine.org/Installing_Firefox#Mac_OS_X -
Hello experts,
I have been given an assignment to read an output from the spool file.
I am asked to run report MB51 give materialno,posting date and run report
for movement types 551,701.
Then download the spool and read the records and identify them and
do computations later on.
I haven't worked on such a task before.If someone can give me such a coding
snippet,i will be higly obliged.
Points will be awarded for sure.Hi pick ur part from the below code
*&u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014*
*& Report ZSPOOLTOPDF *
*&u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014*
*& Converts spool request into PDF document and emails it to *
*& recipicant. *
*& Execution *
*& u2014u2014u2014 *
*& This program must be run as a background job in-order for the write *
*& commands to create a Spool request rather than be displayed on *
*& screen *
*&u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014*
REPORT zspooltopdf.
PARAMETER: p_email1 LIKE somlreci1-receiver
DEFAULT u2018abap at sapdev.co.uku2019,
p_sender LIKE somlreci1-receiver
DEFAULT u2018abap at sapdev.co.uku2019,
p_delspl AS CHECKBOX.
*DATA DECLARATION
DATA: gd_recsize TYPE i.
* Spool IDs
TYPES: BEGIN OF t_tbtcp.
INCLUDE STRUCTURE tbtcp.
TYPES: END OF t_tbtcp.
DATA: it_tbtcp TYPE STANDARD TABLE OF t_tbtcp INITIAL SIZE 0,
wa_tbtcp TYPE t_tbtcp.
* Job Runtime Parameters
DATA: gd_eventid LIKE tbtcm-eventid,
gd_eventparm LIKE tbtcm-eventparm,
gd_external_program_active LIKE tbtcm-xpgactive,
gd_jobcount LIKE tbtcm-jobcount,
gd_jobname LIKE tbtcm-jobname,
gd_stepcount LIKE tbtcm-stepcount,
gd_error TYPE sy-subrc,
gd_reciever TYPE sy-subrc.
DATA: w_recsize TYPE i.
DATA: gd_subject LIKE sodocchgi1-obj_descr,
it_mess_bod LIKE solisti1 OCCURS 0 WITH HEADER LINE,
it_mess_att LIKE solisti1 OCCURS 0 WITH HEADER LINE,
gd_sender_type LIKE soextreci1-adr_typ,
gd_attachment_desc TYPE so_obj_nam,
gd_attachment_name TYPE so_obj_des.
* Spool to PDF conversions
DATA: gd_spool_nr LIKE tsp01-rqident,
gd_destination LIKE rlgrap-filename,
gd_bytecount LIKE tst01-dsize,
gd_buffer TYPE string.
* Binary store for PDF
DATA: BEGIN OF it_pdf_output OCCURS 0.
INCLUDE STRUCTURE tline.
DATA: END OF it_pdf_output.
CONSTANTS: c_dev LIKE sy-sysid VALUE u2018DEVu2019,
c_no(1) TYPE c VALUE u2018 u2018,
c_device(4) TYPE c VALUE u2018LOCLu2019.
*START-OF-SELECTION.
START-OF-SELECTION.
* Write statement to represent report output. Spool request is created
* if write statement is executed in background. This could also be an
* ALV grid which would be converted to PDF without any extra effort
WRITE u2018Hello Worldu2019.
new-page.
commit work.
new-page print off.
IF sy-batch EQ u2018Xu2019.
PERFORM get_job_details.
PERFORM obtain_spool_id.
*** Alternative way could be to submit another program and store spool
*** id into memory, will be stored in sy-spono.
*submit ZSPOOLTOPDF2
* to sap-spool
* spool parameters %_print
* archive parameters %_print
* without spool dynpro
* and return.
* Get spool id from program called above
* IMPORT w_spool_nr FROM MEMORY ID u2018SPOOLTOPDFu2019.
PERFORM convert_spool_to_pdf.
PERFORM process_email.
if p_delspl EQ u2018Xu2019.
PERFORM delete_spool.
endif.
IF sy-sysid = c_dev.
wait up to 5 seconds.
SUBMIT rsconn01 WITH mode = u2018INTu2019
WITH output = u2018Xu2019
AND RETURN.
ENDIF.
ELSE.
SKIP.
WRITE:/ u2018Program must be executed in background in-order for spoolu2019,
u2018request to be created.u2019.
ENDIF.
*u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014*
* FORM obtain_spool_id *
*u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014*
FORM obtain_spool_id.
CHECK NOT ( gd_jobname IS INITIAL ).
CHECK NOT ( gd_jobcount IS INITIAL ).
SELECT * FROM tbtcp
INTO TABLE it_tbtcp
WHERE jobname = gd_jobname
AND jobcount = gd_jobcount
AND stepcount = gd_stepcount
AND listident <> u20180000000000u2032
ORDER BY jobname
jobcount
stepcount.
READ TABLE it_tbtcp INTO wa_tbtcp INDEX 1.
IF sy-subrc = 0.
message s004(zdd) with gd_spool_nr.
gd_spool_nr = wa_tbtcp-listident.
MESSAGE s004(zdd) WITH gd_spool_nr.
ELSE.
MESSAGE s005(zdd).
ENDIF.
ENDFORM.
*u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014*
* FORM get_job_details *
*u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014*
FORM get_job_details.
* Get current job details
CALL FUNCTION u2018GET_JOB_RUNTIME_INFOu2019
IMPORTING
eventid = gd_eventid
eventparm = gd_eventparm
external_program_active = gd_external_program_active
jobcount = gd_jobcount
jobname = gd_jobname
stepcount = gd_stepcount
EXCEPTIONS
no_runtime_info = 1
OTHERS = 2.
ENDFORM.
*u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014*
* FORM convert_spool_to_pdf *
*u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014*
FORM convert_spool_to_pdf.
CALL FUNCTION u2018CONVERT_ABAPSPOOLJOB_2_PDFu2019
EXPORTING
src_spoolid = gd_spool_nr
no_dialog = c_no
dst_device = c_device
IMPORTING
pdf_bytecount = gd_bytecount
TABLES
pdf = it_pdf_output
EXCEPTIONS
err_no_abap_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_destdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11
OTHERS = 12.
CHECK sy-subrc = 0.
* Transfer the 132-long strings to 255-long strings
LOOP AT it_pdf_output.
TRANSLATE it_pdf_output USING u2018 ~u2019.
CONCATENATE gd_buffer it_pdf_output INTO gd_buffer.
ENDLOOP.
TRANSLATE gd_buffer USING u2018~ u2018.
DO.
it_mess_att = gd_buffer.
APPEND it_mess_att.
SHIFT gd_buffer LEFT BY 255 PLACES.
IF gd_buffer IS INITIAL.
EXIT.
ENDIF.
ENDDO.
ENDFORM.
*u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014*
* FORM process_email *
*u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014*
FORM process_email.
DESCRIBE TABLE it_mess_att LINES gd_recsize.
CHECK gd_recsize > 0.
PERFORM send_email USING p_email1.
* perform send_email using p_email2.
ENDFORM.
*u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014*
* FORM send_email *
*u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014*
* u2013> p_email *
*u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014*
FORM send_email USING p_email.
CHECK NOT ( p_email IS INITIAL ).
REFRESH it_mess_bod.
* Default subject matter
gd_subject = u2018Subjectu2019.
gd_attachment_desc = u2018Attachnameu2019.
* CONCATENATE u2018attach_nameu2019 u2018 u2018 INTO gd_attachment_name.
it_mess_bod = u2018Message Body text, line 1u2032.
APPEND it_mess_bod.
it_mess_bod = u2018Message Body text, line 2u2026u2019.
APPEND it_mess_bod.
* If no sender specified - default blank
IF p_sender EQ space.
gd_sender_type = space.
ELSE.
gd_sender_type = u2018INTu2019.
ENDIF.
* Send file by email as .xls speadsheet
PERFORM send_file_as_email_attachment
tables it_mess_bod
it_mess_att
using p_email
u2018Example .xls documnet attachmentu2019
u2018PDFu2019
gd_attachment_name
gd_attachment_desc
p_sender
gd_sender_type
changing gd_error
gd_reciever.
ENDFORM.
*u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014*
* FORM delete_spool *
*u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014*
FORM delete_spool.
DATA: ld_spool_nr TYPE tsp01_sp0r-rqid_char.
ld_spool_nr = gd_spool_nr.
CHECK p_delspl <> c_no.
CALL FUNCTION u2018RSPO_R_RDELETE_SPOOLREQu2019
EXPORTING
spoolid = ld_spool_nr.
ENDFORM.
*&u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014*
*& Form SEND_FILE_AS_EMAIL_ATTACHMENT
*&u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014*
* Send email
*u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014-*
FORM send_file_as_email_attachment tables it_message
it_attach
using p_email
p_mtitle
p_format
p_filename
p_attdescription
p_sender_address
p_sender_addres_type
changing p_error
p_reciever.
DATA: ld_error TYPE sy-subrc,
ld_reciever TYPE sy-subrc,
ld_mtitle LIKE sodocchgi1-obj_descr,
ld_email LIKE somlreci1-receiver,
ld_format TYPE so_obj_tp ,
ld_attdescription TYPE so_obj_nam ,
ld_attfilename TYPE so_obj_des ,
ld_sender_address LIKE soextreci1-receiver,
ld_sender_address_type LIKE soextreci1-adr_typ,
ld_receiver LIKE sy-subrc.
data: t_packing_list like sopcklsti1 occurs 0 with header line,
t_contents like solisti1 occurs 0 with header line,
t_receivers like somlreci1 occurs 0 with header line,
t_attachment like solisti1 occurs 0 with header line,
t_object_header like solisti1 occurs 0 with header line,
w_cnt type i,
w_sent_all(1) type c,
w_doc_data like sodocchgi1.
ld_email = p_email.
ld_mtitle = p_mtitle.
ld_format = p_format.
ld_attdescription = p_attdescription.
ld_attfilename = p_filename.
ld_sender_address = p_sender_address.
ld_sender_address_type = p_sender_addres_type.
* Fill the document data.
w_doc_data-doc_size = 1.
* Populate the subject/generic message attributes
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = u2018SAPRPTu2019.
w_doc_data-obj_descr = ld_mtitle .
w_doc_data-sensitivty = u2018Fu2019.
* Fill the document data and get size of attachment
CLEAR w_doc_data.
READ TABLE it_attach INDEX w_cnt.
w_doc_data-doc_size =
( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = u2018SAPRPTu2019.
w_doc_data-obj_descr = ld_mtitle.
w_doc_data-sensitivty = u2018Fu2019.
CLEAR t_attachment.
REFRESH t_attachment.
t_attachment[] = it_attach[].
* Describe the body of the message
CLEAR t_packing_list.
REFRESH t_packing_list.
t_packing_list-transf_bin = space.
t_packing_list-head_start = 1.
t_packing_list-head_num = 0.
t_packing_list-body_start = 1.
DESCRIBE TABLE it_message LINES t_packing_list-body_num.
t_packing_list-doc_type = u2018RAWu2019.
APPEND t_packing_list.
* Create attachment notification
t_packing_list-transf_bin = u2018Xu2019.
t_packing_list-head_start = 1.
t_packing_list-head_num = 1.
t_packing_list-body_start = 1.
DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
t_packing_list-doc_type = ld_format.
t_packing_list-obj_descr = ld_attdescription.
t_packing_list-obj_name = ld_attfilename.
t_packing_list-doc_size = t_packing_list-body_num * 255.
APPEND t_packing_list.
* Add the recipients email address
CLEAR t_receivers.
REFRESH t_receivers.
t_receivers-receiver = ld_email.
t_receivers-rec_type = u2018Uu2019.
t_receivers-com_type = u2018INTu2019.
t_receivers-notif_del = u2018Xu2019.
t_receivers-notif_ndel = u2018Xu2019.
APPEND t_receivers.
CALL FUNCTION u2018SO_DOCUMENT_SEND_API1u2032
EXPORTING
document_data = w_doc_data
put_in_outbox = u2018Xu2019
sender_address = ld_sender_address
sender_address_type = ld_sender_address_type
commit_work = u2018Xu2019
IMPORTING
sent_to_all = w_sent_all
TABLES
packing_list = t_packing_list
contents_bin = t_attachment
contents_txt = it_message
receivers = t_receivers
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
* Populate zerror return code
ld_error = sy-subrc.
* Populate zreceiver return code
LOOP AT t_receivers.
ld_receiver = t_receivers-retrn_code.
ENDLOOP.
ENDFORM. -
Downloads disappear from list immediately and automatically when download completed
Everytime a download completes it disappears from list automatically
Are you using Firefox 3.6 or Firefox 4?? Your "More system details..." link shows that you have turned off storing of history using a Firefox 4 preference (places.history.enabled), but your post says Firefox 3.6.17.
Anyway, the general history setting affects not only site URLs, but also downloads. To treat them separately, go to
Tools > Options > Privacy
and change to Custom history settings. Does that solve it? -
How do I delete an iTunes download before download completed
I purchased a movie from iTunes but changed my mind. Can I delete before the download completes?
And expanding on what Demo said, you cannot delete a download still in progress. You'll have to let it complete, since it will just keeping coming back and downloading.
Sorry you are experiencing "buyer's remorse", but in general no download store, for media nor software, will refund your money solely because you changed your mind and decided you don't want the item, since there's no way as such to "return" a download item.
Regards.
Maybe you are looking for
-
Can't open current photo library " using this version of iPhoto"
"You have made changes to your photo library using a newer version of iPhoto. Please quit and use the latest version of iPhoto." Got a surprise today. My husband used his new Mac with Ilife9 to reach into the network and get the iphoto library on my
-
Icloud sync is not working for apps
I just noticed that my icloud sync is no longer working. Apps like 1Password, Drafts, Reminder, Calendars, Fantastical used to sync between my IPAD Air and iphone 6 but they are not syncing now. What are some of the possible issues and can anyone su
-
I want to apple store in my ciy
hello sir/ma'am, i Kpail Ganwani want to open apple store in my city ajmer (rajasthan) please tell me the procedure to go through
-
Lost photos, music, email and all settings, PLS HELP!
Yesterday when I started my 12" Powerbook as soon as it turn on, all the settings went back to the original, I can't find none of my photos in IPHOTO ( It says is empty )or my songs from ITUNES( Empty also ), lost all my emails, but the weird thing i
-
Keynote 6.5 Crashes When Resizing Object
I have been having this problem with the last two versions of keynote on OSX Mavericks/OSX Mountain Lion, the problem is not unique to keynote 6.5 on Yosemite. Only objects which have been grouped together, such as a graph w/ legend, will make keynot