CFREPORT Fails to produce formatted report, i.e., PDF
What can I do to restore the CFREPORT Output to normal allowed formats? I have had reports working without error for FIVE YEARS and suddenly the now the report output for LARGE datasets produces ONLY the Symbolic language of the selected FORMAT, i.e., PDF, FalshPaper, etc. Small datasets produce the report; large datasets dump a query and then display the "gobble-de-****" language of the format elected.
Will reinstalling Coldfusion help?
This is a server running in VMWARE, 64-bit Windows Server 2008; Coldfusion 10, 64 bit.
Please help.
Thanks
Webmaster, www.thomco.biz
Dick Shackelford
[email protected]
678-521-1952 Mobile
Hi Abnish,
For haveing connection b/w portal and R/3 you have to create System, for that navigate to System Administration - - < System Configuration - - < select new and create system here have to provide all the usefull details now create Aliase for this system now do user mapping from user Administration - - < User Mapping for this system and specify user id and passord here.
now do connection test for this system connection should be correct
after creating system you have created bridge b/w portal and your R/3 systen now deploy your Applications on portal and create iview out of this deployed item iviews here will work like Selection Screen in SAP ABAP.
Hope this works.
please reward points if helpfull.
Regards.
Vinit Soni
Similar Messages
-
APEX on Oracle XE PDF printing produces: Format error: not a PDF or corrupted.
Dear fellow Apexers and Oracle Gurus,
I have the following configuration:
Oracle XE 11gR2
APEX 4.2.3.00.08
Listener 2.0.5
On this setup I can create workspaces and applications as I please.
Now I want to print a PDF report.
I have set up PDF printing to "Oracle Listener" in the "manage Instance" settings in the instance administration.
I have created a classical report on the EMPLOYEES table (Select * from EMPLOYEES)
and enabled PDF printing in the "Printing" area of the "Print Attributes" of the page.
When I run the page I do get the "print" link on the bottom of the page.
Clicking the link does produce a .PDF but showing this file triggers an error in my PDF reader: Format error: not a PDF or corrupted.
Opening the .PDF file in a text editor reveals the corrupt content.
%PDF-1.4
%ª«¬
Unknown function: gatherContextInfo
The same setup works fine and produces the expected PDF file with the report on the following configuration:
Oracle Vbox with Developer days image;
DB 11gR2
Upgraded to apex 4.2.3.00.08
Listener 2.0.5
Since the PDF shows "unknown function" I suspected the XE configuration to lack some of the necessary rights, maybe I forgot to configure the ACLs correctly.
So I compared the ACL info on both configurations. Alas,.. on both machines they return the same result..
SQL> SELECT * FROM DBA_NETWORK_ACLS
HOST LOWER_PORT UPPER_PORT ACL
localhost null null /sys/acls/local-access-users.xml
* null null /sys/acls/power_users.xml
SQL> select * from dba_network_acl_privileges
ACL PRINCIPAL PRIVILEGE IS_GRANT INVERT
/sys/acls/local-access-users.xml APEX_040200 connect true false
/sys/acls/power_users.xml APEX_040200 connect true false
Anyone any idea why this works fine on the Vbox and not on the local XE configuration?
Any hint or answer as to where the problem might be is appreciated
TIA
WouterI'm having the same issue. I'm using Oracle XE 11gR2 as well. I've tried with APEX 4.2.2 and APEX 4.2.4. I have set up the Oracle Listener in instance settings and set the report to print and I have the same result as you. Have you had any progress yet?
Thanks
Jason -
My website provider upgraded my website to MX 8 and now my
CFREPORT functions that produce mailing labels are failing. I've
done some googles on the error, but really can't find anything to
help. The error message is at such:
java.lang.NoClassDefFoundError: Could not initialize class
coldfusion.runtime.report.Report
at
coldfusion.tagext.lang.ReportTag.doEndTag(ReportTag.java:581)
at
coldfusion.runtime.CfJspPage._emptyTag(CfJspPage.java:2645)
at
cfClubMailingLabels_old2ecfm808757554.runPage(E:\Domains\gyro4.org\wwwroot\reports\ClubMa ilingLabels_old.cfm:184)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:192)
at
coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:366)
at
coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
at
coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:279)
at
coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)
at
coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
at
coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
at
coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)
at
coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
at
coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)
at
coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
at
coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
at
coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:126)
at coldfusion.CfmServlet.service(CfmServlet.java:175)
at
coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
at
coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42 )
at
coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
at jrun.servlet.FilterChain.service(FilterChain.java:101)
at
jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
at
jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at
jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:284)
at
jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
at
jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)
at
jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)
at
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
at
jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
MY envrionment variables are:
coldfusion.classPath =
C:\ColdFusion8\runtime/../lib/updates,C:\ColdFusion8\runtime/../lib,C:\ColdFusion8\runtim e/../gateway/lib/,C:\ColdFusion8\runtime/../wwwroot/WEB-INF/flex/jars,C:\ColdFusion8\runti me/../wwwroot/WEB-INF/cfform/jars
ava.class.path
C:\ColdFusion8\runtime\servers\lib;C:\ColdFusion8\runtime\servers\lib\jrun-patch.jar;C:\C oldFusion8\runtime\..\lib\macromedia_drivers.jar;C:\ColdFusion8\runtime\lib\cfmx_mbean.jar ;C:\ColdFusion8\runtime\lib;C:\ColdFusion8\runtime\lib\cfmx_mbean.jar;C:\ColdFusion8\runti me\lib\instutil.jar;C:\ColdFusion8\runtime\lib\java2wsdl.jar;C:\ColdFusion8\runtime\lib\jr un-ant-tasks.jar;C:\ColdFusion8\runtime\lib\jrun-xdoclet.jar;C:\ColdFusion8\runtime\lib\jr un.jar;C:\ColdFusion8\runtime\lib\jspc.jar;C:\ColdFusion8\runtime\lib\migrate.jar;C:\ColdF usion8\runtime\lib\oem-xdoclet.jar;C:\ColdFusion8\runtime\lib\sniffer.jar;C:\ColdFusion8\r untime\lib\webservices.jar;C:\ColdFusion8\runtime\lib\wsconfig.jar;C:\ColdFusion8\runtime\ lib\wsdl2java.jar;C:\ColdFusion8\runtime\lib\xmlscript.jar;C:\ColdFusion8\runtime\lib\jrun .jar
ANy suggestions?I did the new version of the report builder thing and a new
file was created. However, still get a Java error:
ROOT CAUSE:
java.lang.NoClassDefFoundError: Could not initialize class
coldfusion.runtime.report.Report
at
coldfusion.tagext.lang.ReportTag.doEndTag(ReportTag.java:581)
at
coldfusion.runtime.CfJspPage._emptyTag(CfJspPage.java:2645)
at
cfClubMailingLabels2ecfm1875222314.runPage(E:\Domains\gyro4.org\wwwroot\reports\ClubMaili ngLabels.cfm:263)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:192)
at
coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:366)
at
coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
at
coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:279)
at
coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)
at
coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
at
coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
at
coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)
at
coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
at
coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)
at
coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
at
coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
at
coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:126)
at coldfusion.CfmServlet.service(CfmServlet.java:175)
at
coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
at
coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42 )
at
coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
at jrun.servlet.FilterChain.service(FilterChain.java:101)
at
jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
at
jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at
jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:284)
at
jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
at
jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)
at
jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)
at
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
at
jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66) -
Report displayed in PDF format
Can somebody point me in the right direction, I am producing a report from a table that uses the standard portal report creation capabilities and is displayed when selecting the link on the portal page. What I would like to do is when the report is displayed is to display it as a pdf document.
Thanks
KeithHi,
There is an destination format. This can be used for the output type. When you type here PDF a PDF document is generated.
When you call a report from a form you can call the report with a parameter like this :
SET_REPORT_OBJECT_PROPERTY( v_report_id
, REPORT_DESNAME
, <name of the pdf doc> )
SET_REPORT_OBJECT_PROPERTY( v_report_id
, REPORT_DESFORMAT
, 'PDF' );
succes! -
How could i generate HTML format report using DBMS_SQLTUNE.REPORT_TUNING_TASK function in oracle 11g
See [url http://download.oracle.com/docs/cd/E11882_01/appdev.112/e16760/d_sqltun.htm#CHDGEIHJ]documentation for DBMS_SQLTUNE.
The TYPE parameter suggests that it would determine the format and whilst the nline documentation in the code (desc DBMS_SQLTUNE) suggests that valid values are TEXT, HTML and XML, it seems that this is not yet implemented. Whilst valid values of TEXT, HTML and XML are validated, only a TEXT report is produced. -
Use of Dowload Scheduler , and Formatted Reporting
Hi friends,
in our Business Explorer i can able to see lot of tools..along with Analyser and Query Designer .. those are.. <b>Download Sceduler </b> and <b>Foramtted Reporting</b>... and <b>Browser</b> ..
can any one plz give me the brief idea.. abt those tools...
helpful answers will be rewarded....
THANKS
BabuHI,
<b>Download scheduler</b> can be used to download a package - create a package for precalculation in the reporting agent and then open the same using the download scheduler and schedule the same...
procedure:
1. create a web template
2. In report agent -Do setting for the web template
3. schedule the setting in the package.
4. the setting was for
data calculation
Excel sheets
HTML pages
Then check the preview, you will get data in it.
5. run the package
6. use download scheduler to create HTML pages and Excel workbooks
BTW - download scheduler is taken away in NW2004s
<b>Formatted reporting</b> is for producing a report in an exact format required by the user. For stringent formatting requirements (e.g., financial reports, government reporting, etc.), this usually implies the use of a reporting tool like Crystal Reports.
<b> Bex Browser</b> makes it possible for you to access all document types of the Business Information Warehouse that are assigned to your role, or that you have stored in your favorites. In the BEx Browser, you can select and open the documents assigned to you, or store and manage new documents.
The document types which you can work with in the BEx Browser are:
BW workbooks
Documents stored in the Business Document Served (BDS)
Links (references to the file system, shortcuts)
Links to Internet pages (URLs)
SAP transaction calls.
BW Web reports
Hope this helps!!
Regards,
dhanya. -
Fail to schedule FullClient report (PDF, Inbox) from Java
This is occurring in XI Reports 3.1
I'm trying to schedule a Deski (FullClient) report through the Java API.
The report has a PDF format and Inbox destination...
It also has a prompt with a default value.
When I schedule the report through InfoView it does so succesfully.
When I try to perform the same action through the Java API... the scheduling does not work.
Here's a snippet of code I'm using:
=======================
loInfoObjects = moInfoStore.query("SELECT * FROM CI_INFOOBJECTS WHERE SI_NAME = '" + lsRptNm + "'");
loFullClientPubl = (IFullClient)loInfoObjects.get(0);
loFullClientPubl.properties().setProperty("SI_KIND", CeKind.PDF);
loFullClientPubl.getProcessingInfo().properties().setProperty("SI_KIND", CeKind.PDF);
loFullClientPubl.getSchedulingInfo().setRightNow(true);
if (loFullClientPubl.hasPrompts())
IFullClientPrompts loPrompts = loFullClientPubl.getPrompts();
IFullClientPrompt loPrompt = (IFullClientPrompt)loPrompts.get(0);
loPrompt.getValues().set(0, "123456");
loFullClientPubl.getPrompts().set(0, loPrompt);
else //This is the scenario that executes....
loFullClientPubl.getPrompts().add("Code").getValues().add("123456");
loFullClientPubl.getProcessingInfo().properties().setProperty("SI_HAS_PROMPTS", true);
loFullClientPubl.schedule(); //Schedule the report
=====================================
After I execute the code, I can see that an entry has been created in CI_INFOOBJECTS but no record of the scheduling shows up in infoView, not even as a "failed" report. It's as if the report had never been scheduled.
In CI_INFOOBJECTS ...
Unlike the manual scheduling, the SI_KIND, and SI_HAS_PROMPTS properties for the failed scheduling are not set to "PDF" and "true" as expected, but remain as "FullClient" and "false"
This is the reason why I set the properties programmatically prior to scheduling the report. While this did change the values in CI_INFOOBJECTS, it still did not fix the problem of scheduling, that is no reports show up in infoView.
Have any of you guys come across this? I'm stumped...
Thank youI think its your code.
Look at the code snippet below for scheduling.
//Retrieve the first object in IInfoObjects collection
IFullClient fcDoc = (IFullClient)oInfoObjects.get(0);
IFullClientFormatOptions reportFormat = fcDoc.getFullClientFormatOptions();
//Set schedule format.
int formatType = IFullClientFormatOptions.CeFullClientFormat.PDF;
reportFormat.setFormat(formatType);
//set prompts
IFullClientPrompts fcPrompts = fcDoc.getPrompts();
Iterator iter = fcPrompts.iterator();
while(iter.hasNext())
IFullClientPrompt fcPrompt = (IFullClientPrompt) iter.next();
fcPrompt.getValues().set(0,"new prompt value")
//Retrieve the ISchedulingInfo Interface for the Report object and set the schedule
//time (right now) and type (run once)
ISchedulingInfo schedInfo = fcDoc.getSchedulingInfo();
schedInfo.setRightNow(true);
schedInfo.setType(CeScheduleType.ONCE);
//Schedule the InfoObjects.
infoStore.schedule(oInfoObjects);
I haven't testing the setting prompts part but it should work. This will schedule to default location. To schedule to Inbox use the following:
IDestinationPlugin destinationPlugin = (IDestinationPlugin)infoStore.query("SELECT TOP 1 * "FROM CI_SYSTEMOBJECTS WHERE SI_NAME='CrystalEnterprise.Managed'").get(0);
//Retrieve the Scheduling Options.
//This interface is the one which allows us to add the file location for the scheduling.
IManagedOptions managedOptions = (IManagedOptions) destinationPlugin.getScheduleOptions();
managedOptions.setDestinationOption(IManagedOptions.CeDestinationOption.ceInbox);
managedOptions.setIncludeInstance(true);
managedOptions.setTargetObjectName("My Report Instance");
managedOptions.setSendOption(IManagedOptions.CeManagedSendOption.ceCopy);
//Set of users that will receive the instance.
Set userSet = managedOptions.getDestinations();
//Query for the id of a particular user that will receive the instance.
IInfoObjects users = infoStore.query("SELECT TOP 1 SI_ID " + "FROM CI_SYSTEMOBJECTS " + "WHERE SI_NAME='Administrator' AND SI_PROGID='CrystalEnterprise.User'");
if (users.size() > 0) {
IInfoObject user = (IInfoObject)users.get(0);
int id = user.getID();
userSet.add(new Integer(id));
IDestination destination = schedInfo.getDestination();
destination.setFromPlugin(destinationPlugin);
Thanks
Aasavari -
Creating FRCommon system failed - in 11g Forms & Report Installation
Dear all,
When installing 11g Forms and Reports "*Creating FRCommon system failed - in 11g Forms & Report Installation*".
I have successfully created the weblogic server 10.3.5 , and continued with 11g forms & reports. First Installed the forms & reports software, and i try to configure. after several steps of configuration i have failed when its place "*Creating FRCommon system failed - in 11g Forms & Report Installation*".
What it is this Error.
Kindly help me.
My OS Windows
Forms and reports 11gR2
More info
When i start the configuration i have chosen Forms & Reports server and Development tools in the configuration page along with OHS.
Regards
HamidHi experts,
I have the same problem when I try to install oracle Fusion Middleware 11g, is it possible that I forget some steps before, or should I install required something before continue intallation?
Best Regards.
Karim. -
Vista/Adobe 9/sql image Error in Crystal Report:Failed to Export the Report
When I try to export my Crystal Report (v2008) from a Vista machine (using Crystal RDC export methods) as a PDF, I get the following error:
Error in Crystal Report: Failed to export the report.
This only happens when a particular subreport (that contains a sql image) prints (based on an input parameter). We have other subreports (within this same report) that print a sql image just fine. But, when this subreport prints, the above error appears.
I can run the same report on an XP machine without error.
Exportmodeller.dll and crtsv.dll are both installed and registered to the
C:\Program Files\Common Files\Business Objects\3.0\bin folder
I have tried opening the report, removing the image, and then adding it back in again to the subreport.
Still receive the same error.
Any suggestions?>
Don Williams wrote:
> RDC is no longer shipped in CR 2008. You are using the embedded designer used within the Visual Studio .NET IDE and is not licensed for distribution.
>
> Upgrade to the .NET components and post your question to the .NET forums.
>
> Also, those old dll's will not work in CR 2008. Last patches will give you the option to export to Excel in Legacy mode. We built it into our export dll.
Don,
Can you please clarify?
Our VB6 app that uses Crystal XI RDC runtime components. Our Crystal reports are edited in CR2008 SP1 developer edition (not through the VB.NET embedded report designer). We have deployed the CRXIRelease 2 runtime components (via the merge module) to our client machines in order to execute the RDC.
We can print/preview/export to excel, but the pdf creation is failing with this error.
We are only using the RDC (which we know is no longer supported) because of huge issues with the Crystal for .NET methods we are having with our customers (I have an active case for this issue). Therefore, we have to rollback our .NET product and revert to the RDC code.
Vista is failing to create a PDF for a report developed in the CR2008 SP1 developer edition when using the RDC.
When you say "Also, those old dll's will not work in CR 2008. Last patches will give you the option to export to Excel in Legacy mode. We built it into our export dll.", what do you mean by "will not work in CR2008"?
Thank you -
WebI does not return failed when scheduling a report which only holds parti
WebI does not return failed when scheduling a report which only holds partial results.
We have scheduled reports which take some time to run. When they are scheduled they sometimes show successful even though the report only holds partial results. The only indication is when you open the report as webi report you see the warning that it holds partial results.
When running the report manually, it works file.
The issue is not in the no of rows in the universe settings because we this unselected. The issue is that it times out.
The reason that it times out is that a lot of resources are used for loading and processing data when the report is scheduled. When running it manually, it works because at this time the serverload is less. the time in the universe is set to 10 min.
The version we have is BOXIR2-SP4.
Ok. Issue identified.
The question is - why is the report successful when it holds partial results? If this is normal behavior, noone can really trust the scheduled reports, especially when you save it to excel and send it by mail.
Is there a solution for this except increasing the allowed query time which would not solve the issu but only allow more reports to complete?
Edited by: Karlgren Michael on Sep 17, 2009 1:22 PMHi ,
Currently this problem exists in XI R2. This feature will be part of thenext Service Pack i.e XI R2 SP6.
This CER will be delivered from IDC Webi and BIP Platform as part of Jupiter Sp6.
Problem Statement:
Scheduled WebI Reports which are partially refreshed are distributed to the destinations for Users to View and make decisions. These users arenu2019t usually aware that these reports have u201CPARTIAL RESULTSu201D
Recomended Solution:
Allow the Schedule Creator / Modifier to set a parameter to stop the distribution of the u201CPARTIALLY REFRESHEDu201D WebI report.
Thanks
Salini -
Failed to export the report in Crystal Reports 2008
I am using Crystal Reports 2008 version 12.1.0.892, when i try to export data to Microsoft Excel(Data Only) it's failing with the error "Failed to export the report.", please help in resolving this issue.
Hi Abhilash,
I tried suppressing the report header and page header it was working fine, but previously i used to export with all the headers. Without page headers the output file is of no use. I was facing the same issue on one of the local desktops too then i uninstalled the software and installed it again then it was working fine but its not the solution.
-Srikar -
Reports 3.0.5 and Excel Format Report Generation
Hi Folks,
I need to create excel format report on my Windows based OS using Report Desiginer 3.0.5.
Can someone help in this matter as urgent as possible? Your help will highly be appreciated.
Thanks
ZahirThe problem is that you're going to have to jump through hoops to do something that's very, very easy in the release you're going to, so you need to seriously consider where to put your efforts. If you want to do this in 3.0, then you'll need to follow the data file report example in the 2.5 Building Reports manual (see http://otn.oracle.com/doc/reports25/bror2/ch6a.htm#toc096)
Regards,
Danny -
How to download the report output into PDF format
Hi friedns
from the report output when user clicks download button
it has to download to PDF format
how to do this
thanks in advance
venuhi venu,
check this sample code
Save Report Output to a PDF File
This report takes another report as input, and captures the output of that report. The output is then converted to
PDF and saved to a local file. This shows how to use some of the PDF function modules, as well as an easy way to
create PDF files.
Source Code Listing
report zabap_2_pdf.
*-- Enhancements: only allow to be run with variant. Then called
*-- program will be transparent to users
*-- TABLES
tables:
tsp01.
*-- STRUCTURES
data:
mstr_print_parms like pri_params,
mc_valid(1) type c,
mi_bytecount type i,
mi_length type i,
mi_rqident like tsp01-rqident.
*-- INTERNAL TABLES
data:
mtab_pdf like tline occurs 0 with header line,
mc_filename like rlgrap-filename.
*-- SELECTION SCREEN
parameters:
p_repid like sy-repid, " Report to execute
p_linsz like sy-linsz default 132, " Line size
p_paart like sy-paart default 'X_65_132'. " Paper Format
start-of-selection.
concatenate 'c:\'
p_repid
'.pdf'
into mc_filename.
*-- Setup the Print Parmaters
call function 'GET_PRINT_PARAMETERS'
exporting
authority= space
copies = '1'
cover_page = space
data_set = space
department = space
destination = space
expiration = '1'
immediately = space
in_archive_parameters = space
in_parameters = space
layout = space
mode = space
new_list_id = 'X'
no_dialog= 'X'
user = sy-uname
importing
out_parameters = mstr_print_parms
valid = mc_valid
exceptions
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
others = 4.
*-- Make sure that a printer destination has been set up
*-- If this is not done the PDF function module ABENDS
if mstr_print_parms-pdest = space.
mstr_print_parms-pdest = 'LOCL'.
endif.
*-- Explicitly set line width, and output format so that
*-- the PDF conversion comes out OK
mstr_print_parms-linsz = p_linsz.
mstr_print_parms-paart = p_paart.
submit (p_repid) to sap-spool without spool dynpro
spool parameters mstr_print_parms
via selection-screen
and return.
*-- Find out what the spool number is that was just created
perform get_spool_number using sy-repid
sy-uname
changing mi_rqident.
*-- Convert Spool to PDF
call function 'CONVERT_ABAPSPOOLJOB_2_PDF'
exporting
src_spoolid= mi_rqident
no_dialog = space
dst_device = mstr_print_parms-pdest
importing
pdf_bytecount = mi_bytecount
tables
pdf = mtab_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.
call function 'DOWNLOAD'
exporting
bin_filesize = mi_bytecount
filename = mc_filename
filetype = 'BIN'
importing
act_filename = mc_filename
tables
data_tab = mtab_pdf.
FORM get_spool_number *
Get the most recent spool created by user/report *
--> F_REPID *
--> F_UNAME *
--> F_RQIDENT *
form get_spool_number using f_repid
f_uname
changing f_rqident.
data:
lc_rq2name like tsp01-rq2name.
concatenate f_repid+0(8)
f_uname+0(3)
into lc_rq2name separated by '_'.
select * from tsp01 where rq2name = lc_rq2name
order by rqcretime descending.
f_rqident = tsp01-rqident.
exit.
endselect.
if sy-subrc ne 0.
clear f_rqident.
endif.
endform." get_spool_number
Regards,
Naveen -
What is the best way to produce different report types out of the same SSRS Report
So I have a request to produce different report types based on a "Line Of Business" Parameter that is provided. I know that SSRS sometimes struggles with gathering the Metadata based on IF Statements.
What is the best way to provide multiple different report types with different data based on the "Line Of Business" Parameter that is provided? Can I simply do this via the SQL Stored Procedure? And how so that the Metadata is collected correctly?
Just don't know what the generally accepted business principle is on this and how to go about doing it.
Thanks in advance for your review and am hopeful for a reply.Hi ITBobbyP,
Per my understanding that you have create an parameter (Line Of Businiess) to get diffetent types of report, I would like to confirm with you want do you mean about the different report types?
Is that mean you have table and one column named Report type, you want to filtered on this column? Or the report type you mean is like Parameterized reports,Linked reports,Snapshot reports,Subreports and so on.
If want you want is through the selection of the parameter to change the report type(Parameterized reports,Linked reports,Snapshot reports,Subreports ..),currently it is impossible to acheive this.
If you still have any problem, please try to provide more details information about your reqirements, the sampe data in the table, the report structure you have designed and so on.
Any problem, please feel free to ask.
Regards,
Vicky Liu
Vicky Liu
TechNet Community Support -
Oracle HTMLDB report output in PDF format using FOP
Hi,
We are currently using Oracle HTMLDB1.6.I am trying to implement the HTMLDB report output in PDF format.I got at document but it is not clear.Could you please let use know wheether anybody has already used in their organization.
Appreciate your response.
Regards
MuraiHey Murai,
did you read the technote:
http://www.oracle.com/technology/pub/notes/technote_htmldb_fop.html
There is anything explained!
greets,
tim
Maybe you are looking for
-
Creation of MKK and Contract Account for New CRM Roles
Hi Experts, I need a help in CRM for creating new roles and extending the same in R/3 in MKK role. Here is the problem I faced. I have copied the CRM000 role and created a new role ZCRM00 for business specific need. It is getting created in CRM and a
-
Add-On connection for Journal Entry - Failed to Connect to SBO Common
We have a customer (SAPBO 2005A SP01 PL29) with some specific requirements that required an add-on running in the background to monitor the addition of Goods Receipt PO's to the system. When the GRPO is successfully added, the Add-On will (behind the
-
InDesign cross-document Text Anchor Hyperlinks
I'm combining several InDesign files into one PDF, with several hundred text links across the different sections, as well as within each. The cross-document (section) Text Anchor Hyperlinks work fine in my workspace - but when I change the file locat
-
Bug? - Copying Controls in Group Removes Binding
[LabVIEW 2010] When I copy a control binding remains intact however when I copy the controls in a Group binding is removed. Cheers -JG Unable to display content. Adobe Flash is required. Certified LabVIEW Architect * LabVIEW Champion
-
have a question to ask ... I bought, at the time, the update of Adobe Audition CS6, being already in possession of the CS5.5 version. Since I had to redo the operating system (windows 7 professional 64-bit), reistallando program CS6, with the corresp