Background report save as PDF or excel
Hello Guru's,
I have a requirement my user execute one report in background now the output is appearing in ALV
He wants now that is output should save as PDF or excel & send email to respective persons.
Can we do this if yes please guide.I will be executing report in background.
Regards
Edited by: ABHUT on Oct 13, 2008 10:40 AM
get them spool no and pass it to standard report RSTXPDFT4
to convert to pdf and for sending mail use f.m
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = doc_chng
put_in_outbox = 'X'
commit_work = 'X'
TABLES
packing_list = objpack
contents_txt = objtxt[]
contents_bin = so_ali[]
*contents_hex = so_ali[]
receivers = reclist[]
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.
shan.
Similar Messages
-
Save as PDF in Excel rewrites file when saving multiple sheets
Hello,
I'm having issues saving Excel files to PDF when multiple sheets of a workbook are active. I constantly need to print multiple sheets of a workbook for a service report, but when multiple tabs are highlighted to print/save it will save each sheet as the output file but immediately overwrite the saved file with the next sheet. So if I have four sheets active and go to print/pdf/save to pdf I will briefly see a "processing page" message box for each sheet but in the end I will only have one pdf file of the last active sheet. A single sheet will save beautifully but it's kind of a pain to constantly string together the pdf files. I looked through the Excel forum, but it seems they point anything pdf related back to OS X. I'm running XL 12.1.5 and OS X 10.5.6. Any help will be appreciated. Thanks in advance.I've been having the same problem... after not finding a solution on this page, I finally found an answer that worked for me. As the Adobe support link below states... change the "Print Quality" to be the same for all sheets, then use the Print dialog box rather than the Save As dialog box. In the Print dialog box, choose the "save as PDF" option" (on the lower left for me). This finally solved my multiple file problem.
http://kb.adobe.com/selfservice/viewContent.do?externalId=315086 -
Is it possible to save an Xcelsius chart that has been exported to BOE and is in a dashboard to a pdf or Excel file? This is a popular feature for Webi reports, but it seems to be unavailable for Xcelsius/SWF documents.
We can print using the Print button in Xcelsius 2008, but we don't have Acrobat Professional installed so printing to a PDF is not an option.
Does anyone know a workaround that does not involve purchasing additional software?
Does anyone know when SAP will include this feature in Xcelsius?it's possible to export the data to Excel but it's difficult to say the least. please see the link below for 3 options depending on your particular situation.
http://xcelsius2008.blogspot.com/2009/07/export2excel-in-xcelsius.html -
Saving reports output in PDF or Excel
Hello, I am in the process of developing some oracle reports to run over the web. My question is. When the reports are run over the web how can I save the output in either PDF or Excel. The reports will be called from
a form with parameters passed. I am also having a problem whem the output is shown in htlm it is wrapped. Is there away to stop this data wrapping process from happening?
Thanks,
MorrisHi Ratheesh,
In a previuos posted message I've suggested to Carla close exactly the same you did after. And also did'nt worked.Anyway, just for your info.
Dear Carlangas (as we say in Mexico, with no offense)
Here is a workaround for you...
As I'm not a JSP expert developer in my case I will do next
It seems we are facing a problem with the DESFORMAT=PDF and report out parameter for your jsp report and requiere a jsp/reports experienced developer help or further investigation. I'm not saying it's not possible to generate a PDF output from a jsp report, but for the moment nobody has said how to.
I believe you saved your report in jsp format because you need your users review the report previuosly they may print it.
I also suppose you have a form with a magic button from where you launch your report.
Well I will call your existing button PREVIUOS or will add a nice gif icon and will create another one called PRINT or with a pretty printer .gif icon. This new button will call a RDF version of your report. As you have read is very easy to create PDF format/output report in RDF format.
Also your will need negotiate presentation with your customer. As you must know reports output in a Paper report, PDF, jsp formats are not always exactly the same because they are not simply the same.
Hope this help you. In the meantime you will save time for your investigation for a future release of your report. -
I have following code to generate the report for pdf format.
I would like to let users to choose report type 'pdf' or 'excel'
I need pass the user select from user interface to <cfreport format= "PDF" or "Excel".
Can you please advise how I can pass the user select Report Type from lsReportType to my cfReport?
Your help and information is great appreciated,
Regards,
Iccsi
<cfstoredproc procedure="spGetReportType">
<cfprocresult name="rsReportType" resultset="1">
</cfstoredproc>
<cfreport format = "PDF" template= "MyReport.cfr" query="#myQuery#">
</cfreport>
<td><select width="50" name="lstReportType" id="lstReportType">
<cfoutput query="rsReportType">
<option value="#rsReportType.ReportTypeID#" <cfif (isDefined("form.ReportTypeID") AND form.ReportTypeID EQ rsReportType.ReportTypeID)>selected="selected"</cfif>>#rsReportType.ReportType#</option>
</cfoutput>
</select></td>Change format="PDF" to format="#VariableName#" where VariableName contains the text "PDF" or "Excel".
-
Hi All,
Can anyone tell me how to save data available in a node(model or value) as pdf and excel files?
Thanks in advance.....
Bhushan Reddy.Bhushan,
check these links for saving as excel
Excel Export - Funky Column Headers
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/webDynproJava-ExportingTableDataUsingOn-DemandStreams-SAPNW+7.0
Exporting table data to MS-Excel Sheet(enhanced Web Dynpro Binary Cache)
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/webDynproJava-ExportingTableDataUsingOn-DemandStreams-SAPNW+7.0
Handling FileUpload and FileDownload in NetWeaver Developer Studio(NWDS) 2004S
New Web Dynpro Java Tutorials - Uploading and Downloading Files in SAP NetWeaver 7.0
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00062266-3aa9-2910-d485-f1088c3a4d71
Thanks
Bala Duvvuri -
Unable to "save as pdf" using Excel
Hi,
This problem concerns SharePoint 2010
We have an issue with "save as PDF" option to the library on one particular site, it appears to work but the .PDF file never appears in the library.
We can save as PDF to the desktop then upload to the library.
Word will save as PDF to the same library without issue.
Would very much appreciate any ideas you might have or help you can give,
Thanks,If you are able to save as PDF from Word, but not from Excel, it could be a bug in Excel.
Have you checked to see if there are any Excel updates/patches that you do NOT have installed? This kind of thing is usually fixed through a patch.
I trust that answers your question...
Thanks
C
|
RSS |
http://crayveon.com/blog |
SharePoint Scripts | Twitter |
Google+ | LinkedIn |
Facebook | Quix Utilities for SharePoint -
Issues while saving the Webi Report locally in pdf and Excel Format
Hi,
I am getting issues with the images on a Webi Report when I try to save the reports locally on my machine in either a pdf format or in an Excel Format.
I think the issue is that when I am trying to save the report it saves the address of the image binded in the report but it doesn't save the image/download the image and when the report is opened locally it couldn't refer to the image location.
I am using BOXIR2 with SP2.8.
I am not sure what should be the right solution for this. Any insight or resolution will definitely be helpful.Hi;
I would investigate on the load balancer and/or Apache front end servers, are you sure you don't have a keep alive setting enabled somewhere on one of these servers? in the Tomcat connector maybe?
Regards;
Lionel
OUPS BAD THREAD
Edited by: Lionel Jeanson on Oct 21, 2008 3:30 PM -
Publishing the report output to PDF and Excel
Hi,
Is there any way to get the Report title, Report run date, Page numbers when we export the report output to Excel or PDF.Hi
I am assuming you are working in 2004s
<u><b>Exporting to PDF</b></u>
For page numbering, add the following parameter to the export command, which defaults the footer to the page numbering
<bi:FOOTER_RIGHT value="PAGEOFPAGES" />
Report Run Date ... we have included this in a text element in our report, and made sure that element is part of the export command. The text element we have used is configured as a Generic Text Element and uses the LAST_REFRESHED property
Report Title ... this is done in the same way, but uses the QUERY_DESCRIPTION property.
<u><b>Exporting to Excel</b></u>
As mentioned already, there is no sense in including page numbers when exporting to Excel, as everything is shown on 1 sheet.
Report Title and Report Run Date are included in the export the same way as above.
Hope this helps.
Cheers,
Andrew -
Excel crashes every time I try to save to .pdf
Help! Every time I attempt to "save as" .pdf in Excel (Office 2011) Excel crashes, saves some sort of empty .pdf file. Anyone know anything about this?
http://answers.microsoft.com/en-us/mac/forum/macexcel?tab=Threads. BTW, which OS?
-
Word 2007 - Save as Pdf gives error - This file is in use by another application or user
I have MS Office 2007 Small Business.
For months I have been using the "Save as PDF/XPS" option to save my word documents as PDF files.
All of a sudden, when I click on the publish button within the "save as PDF dialog", I get the error:
"This file is in use by another application or user."
- I have tried creating a new word document and I still get this error when I try to save-as pdf.
- I have tried opening a document that previously was able to be saved-as-a-pdf, and it no longer works either.
- I have tried saving from other office applications (excel, powerpoint) that also get errors now.
I have not personally installed any new software that I recall between when this worked and stopped working for me.
As far as I can tell there have been no updates explicitly for save-as-pdf in office.
Is anyone else seeing this problem all-of-a-sudden?
Thanks.
jlkI just encountered this problem while trying to save a pdf from Excel 2007. I had recently updated to Adobe Reader 9.1.
I received the same error message you're reporting here when I went to Word 2007 and tried to save a pdf file from it as well.
I uninstalled Adobe Reader 9.1.
Reinstalled the Office 2007 pdf plug-in
Successfully created pdf files from word and from Excel (which is what I needed to do in the first place).
I then reinstalled Adobe Reader 9.1 so I could read the PDF files I had just created in Excel and word.
I then tried to create pdf files from word and excel. Error messages are back and I'm unable to create pdf's from word or excel.
So.. why does Office 2007 pdf plugin not work when Adobe Reader 9.1 is installed?
Frankly I'm getting tired of uninstalling Adobe Reader 9.1 every time I need to create a pdf file in Word or Excel.
Bry -
Save as PDF changes file hyperlinks
I have a folder containing hundreds of PDF files and a single XLS sheet
as an Index containing hyperlinks to these files
and the hyperlinks in the XLS correctly call Adobe Reader direct.
For portability I decided to convert the XLS to another PDF.
This worked fine in Excel 2003 using the Adobe Add-In from Acrobat 8.1
But when I try the same process with Excel 2010 or 2013 using Save As PDF
I get security errors because the hyperlinks have been modified during the Save As,
The original hyperlinks in the XLS file have the form
file:///C:\..\..\...\a.pdf and this is retained in the 2003 conversion.
and the PDF version the loads the selected PDF directly.
After using Save As PDF in Excel 2010 or 2013 they take the form file:///C|/../../.../a.pdf
This causes the PDF to attempt launch IE and open the PDF in browser after 2 security warnings.
Note the slashes are reversed and the colon becomes a vertical bar.
How to I get the new version to behave like the original?
I am not sure if I have an Excel problem or a PDF problem.
BillUse the Adobe Add-In in Excel.
-
Background report list download to excel
I run an ALV hierarchical sequential report in background. Then when I download the report output ( thro SM37 ) to excel, the whole output of the report comes in one cell ( excel ). In other words the columns of the report will not appear in excel.
for example:
I have 3 columns and 4 rows as the report output ( in SM37 ). When I download it to excel, the excel will have only 1 column and 4 rows.
I need info on making the excel output to look same as the report output; in terms of column.Hi Amit,
Actually I do have a similar issue. I have a report which output is in the form of excel sheet. I developed using ole2 objects. I have a lot of customization like colors, heading and different margins. Is there any way can I run it in background. I cannot save it in shared folders su01 because it does not support ole objects. Actually, If I run this program in foreground now, The form gets loaded with all the data, it saves the file in the given path , and then closes the file. But, when I run it in as a background job, the data is not getting loaded. Is there any other way to run this in background.
Krishna. -
Run report on background and save to file
Hi all,
I have a development suite 10g.
I have created simple paper report with one parameter.
And I want to run this report on background from forms and get it
saved to file (PDF or RTF). The parameter for report should be passed from
my form.
Thanks for any suggestions.
Brano.Hi,
I use the following progam unit to generate a pdf file:
if RUN_PRODUCT does not work on 10g check out the built-in RUN_REPORT_OBJECT.
PROCEDURE create_pdf_report IS
l_pl_id ParamList;
v_report_from_date date;
v_report_to_date date;
/* PDF file name */
v_file_name varchar2(150);
/* network location where to save the pdf file*/
v_output_path varchar2(100):= :control.report_dir;
begin
v_report_from_date := :control.from_date;
v_report_to_date := :control.to_date;
v_file_name := v_output_path||'\your_pdf_filename.pdf';
L_pl_id := Get_Parameter_List ('REPORT_PARAMS');
If Not ID_NULL (l_pl_id) then
Destroy_Parameter_List (l_pl_id);
End if;
L_pl_Id := Create_Parameter_List ('REPORT_PARAMS');
/* Parameters to send output to pdf file*/
Add_Parameter(L_pl_id, 'DESTYPE' ,TEXT_PARAMETER, 'FILE');
Add_Parameter(L_pl_id, 'DESFORMAT' ,TEXT_PARAMETER, 'PDF');
Add_Parameter(L_pl_id, 'DESNAME' ,TEXT_PARAMETER, v_file_name);
Add_Parameter(L_pl_id, 'PARAMFORM' ,TEXT_PARAMETER, 'NO');
Add_Parameter(L_pl_id, 'BACKGROUND' ,TEXT_PARAMETER, 'YES');
/* Addtional data parameters */
Add_Parameter(L_pl_id, 'P_other_param' ,TEXT_PARAMETER, :CONTROL.MY_ITEM);
Add_Parameter(L_pl_id, 'P_FROM_DATE' ,TEXT_PARAMETER, to_char(v_report_from_date,'DD-MON-YYYY') );
Add_Parameter(L_pl_id, 'P_TO_DATE' ,TEXT_PARAMETER, to_char(v_report_to_date,'DD-MON-YYYY') );
-- call the report synchronously
Run_Product(REPORTS
,'YOUR_REPORT_NAME'
,SYNCHRONOUS
,RUNTIME
,FILESYSTEM
,L_pl_id
,NULL
exception
when others then
message('Error running report. '||sqlerrm, acknowledge);
end;
Regards,
Hugo -
How to save Internal table into Excel Sheet in App. Sever in Background
How can i save my file int excel in application server in background.
i am able to do in fronend but not in back ground.HI
see this example code where i had write EXCEL to INTERNAL TABLE and then TO APPLICATION SERVER
assign this program to background thats all
REPORT ZSD_EXCEL_INT_APP.
parameter: file_nm type localfile.
types : begin of it_tab1,
f1(20),
f2(40),
f3(20),
end of it_tab1.
data : it_tab type table of ALSMEX_TABLINE with header line,
file type rlgrap-filename.
data : it_tab2 type it_tab1 occurs 1,
wa_tab2 type it_tab1,
w_message(100) TYPE c.
at selection-screen on value-request for file_nm.
CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
EXPORTING
* PROGRAM_NAME = SYST-REPID
* DYNPRO_NUMBER = SYST-DYNNR
* FIELD_NAME = ' '
STATIC = 'X'
* MASK = ' '
CHANGING
file_name = file_nm
EXCEPTIONS
MASK_TOO_LONG = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
start-of-selection.
refresh it_tab2[].clear wa_tab2.
file = file_nm.
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
filename = file
i_begin_col = '1'
i_begin_row = '1'
i_end_col = '10'
i_end_row = '35'
tables
intern = it_tab
EXCEPTIONS
INCONSISTENT_PARAMETERS = 1
UPLOAD_OLE = 2
OTHERS = 3
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
loop at it_tab.
case it_tab-col.
when '002'.
wa_tab2-f1 = it_tab-value.
when '004'.
wa_tab2-f2 = it_tab-value.
when '008'.
wa_tab2-f3 = it_tab-value.
endcase.
at end of row.
append wa_tab2 to it_tab2.
clear wa_tab2.
endat.
endloop.
data : p_file TYPE rlgrap-filename value 'TEST3.txt'.
OPEN DATASET p_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
*--- Display error messages if any.
IF sy-subrc NE 0.
MESSAGE e001(zsd_mes).
EXIT.
ELSE.
*---Data is downloaded to the application server file path
LOOP AT it_tab2 INTO wa_tab2.
TRANSFER wa_tab2 TO p_file.
ENDLOOP.
ENDIF.
*--Close the Application server file (Mandatory).
CLOSE DATASET p_file.
loop at it_tab2 into wa_tab2.
write : / wa_tab2-f1,wa_tab2-f2,wa_tab2-f3.
endloop.
Maybe you are looking for
-
I have followed all of the steps in all of the relevant help articles (http://support.mozilla.org/en-US/kb/firefox-crashes-troubleshoot-prevent-and-get-help#w_get-help-fixing-this-crash), and nothing has fixed this problem. I was running v17, and yes
-
Can't print from Firefox - "Printer Error- An unknown error occured while printing"
I am unable to print anything from Firefox! I am using Firefox 19.0.2. I performed a "Reset To Default State" for Firefox yesterday to fix some performance issues. Those issues are resolved, but now I can't print! I am able to print to 'Microsoft XPS
-
I have a Canon Vixia HF20 and a Sony HDR-XR350V. The Canon gives me .MTS files and the Sony produces .M2TS files. What do I need to do to be able to work with these files in Premiere Pro? I've searched and gotten that I'll need to purchase a codec
-
Error in activating status profile for SVT
Hi, I've been trying to activate status profile EHS_SO for SVT in REACH compliance version 2.0 . But I am stuck. When I save a sales order, a message-'Error when activating status 0001 for status profile EHS_SO in order XXXXXX' has come up. My IMG se
-
Price based on Region (plant, purchasing org) in SRM-MDM
Hi! Has anyone set up pricing based on plant or purchasing org successfully in SRM-MDM 2.0? I read somewhere that this is possible (comparsion between CCM and SRM-MDM) and I have tried it but didn't work and want to find out whether anyone has ever m