How to create downloadable pdf report as hyperlink within BSP application
Hi,
I'm developing a BSP application using MVC and htmlb extensions on a WAS 6.40. One of the requirements of my webapplication is:
- the ability to generate a report in pdf format at runtime, using data retrieved from a backend SAP CRM 3.0 system
and
- make this report available/downloadable via a hyperlink in the application.
I am aware of tools like Smartforms and Adobe interactive forms but need some help to get started and choose the right tool.
regards, Roelof Jan
Hi,
we've done that by firstly building a RFC which prints the report to sap-spool:
call function 'GET_PRINT_PARAMETERS'
exporting
expiration = 1
immediately = ' '
new_list_id = 'X'
line_count = 65
line_size = 132
report = sy-repid
no_dialog = 'X'
importing
out_parameters = wf_params
valid = valid_flag.
if sy-subrc ne 0 or valid_flag eq false.
endif.
new-page no-heading no-title print on parameters wf_params
no dialog .
... list processing ...
new-page print off.
concatenate programname sy-uname+0(3) into lc_rq2name separated by '_'.
select * from tsp01 into tsp01_wa
where rq2name = lc_rq2name
and rqowner = sy-uname
order by rqcretime descending.
wf_spono = tsp01_wa-rqident.
exit.
endselect.
if sy-subrc ne 0.
clear wf_spono.
endif.
Then convert the spooljob:
call function 'CONVERT_ABAPSPOOLJOB_2_PDF'
exporting
src_spoolid = wf_spono
no_dialog = 'X'
tables
pdf = witab
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 = 8
err_btcjob_submit_failed = 9
err_btcjob_close_failed = 10
others = 11.
if sy-subrc ne 0.
return.
endif.
Delete Spooljob and generate cached response:
data del_spono type tsp01_sp0r-rqid_char.
del_spono = wf_spono.
call function 'RSPO_R_RDELETE_SPOOLREQ'
exporting
spoolid = del_spono.
if witab is not initial.
loop at witab into itab .
translate itab using ' ~'.
concatenate output itab into output in character mode.
endloop.
translate output using '~ ' .
create object cached_response
type cl_http_response
exporting add_c_msg = 1.
l_pdf_len = strlen( output ).
cached_response->set_cdata( data = output
length = l_pdf_len ).
cached_response->set_header_field( name = if_http_header_fields=>content_type
value = 'application/pdf' ).
cached_response->set_status( code = 200 reason = 'OK' ).
cached_response->server_cache_expire_rel( expires_rel = 180 ).
data: guid type guid_32,
display_url type string.
call function 'GUID_CREATE'
importing
ev_guid_32 = guid.
concatenate runtime->application_url '/' guid '.pdf'
into display_url.
cl_http_server=>server_cache_upload( url = display_url
response = cached_response ).
app ?= application.
app->print_url = display_url.
endif .
The display_url has to be used in the normal response-view:
<script type="text/javascript">
var param = 'width=700'
+ ',height=550'
+ ',left=0'
+ ',top=0'
+ ',menubar=no'
+ ',location=no'
+ ',resizable=yes'
+ ',status=no';
window.open('<%= application->print_url%>', 'DRUCK', param ).focus();
</script>
Similar Messages
-
How to Create new PDF Report in ORacle Apex3.2 without having XML Publisher
I am an Apex developer , my requirement is to develop the PDF file from Apex 3.2 with out using Oracle BI Publisher.
Can anyone let me know the possibility??
Thanks,
DhanaDhana,
What reports are you trying to generate? I believe Apex can generate PDF reports out-of-the-box.
http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/apex/r31/apex31nf/apex31rpt.htm
APEX forum: Oracle Application Express (APEX)
regards,
Rownald -
How to create a pdf in Window Mobile 6.5 application through c#?
Hi,
I am working on a project of Window Mobile 6.5. In this application I have to create a pdf file on a button click. I am very new in Window Mobile 6.5.3. Please guide me how I can do it or where I can get the relevant information.
Thanks..
Anand DubeyHi Anand,
Move to a more relevant forum for a better support.
Simply I found some useful link for you:
https://social.msdn.microsoft.com/Forums/en-US/df44ac69-35e8-4757-b11e-731cd38c295f/creating-pdf-in-wince?forum=netfxcompact
--James
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
How to create F4 Help of R/3 in BSP Application
Hi
I am trying to make a BSP Page on which i have a field which should support F4 search help of R/3.
When a user presses F4 on that field a popup should open up as it does in R/3 Search help.
How can i do this in BSP?
Please reply asap.
Thankyou.Hi,
I like to suggest an alternative, instead of going for pressing F4, provide a button adjacent to the input field. Upon clicking that button the help page will pop up. For that you need to use Java Script. Write the code for that in onClientClick of that button:
onClientClick = "window.open('material_help.htm','Material','width=400,height=500')"
Now in the material_help page you can show a table which shows help data and the user can select from that. To pass the data from that page to your original page you need to use java script once again.
Hope this helps..
Regards,
Ravikiran. -
http://www.oracle.com/technology/obe/hol08/apexprnt/apexprnt_otn.htm
At the above link is a samle demo of how to create a PDF report using Oracle 11g, BI Publisher, BI Publisher Desktop.
I am stuck at the step # 8:
Import the Printing Application in Application Builder using the printapp.sql file located in the directory where you unzipped the file in the previous step.
I have the above referenced file and when I execute it I get the following error:
SQL> alter session set current_schema=APEX_030200;
Session altered.
SQL>
SQL> @prntapp
APPLICATION 107 - Printing Application
Set Credentials...
Check Compatibility...
API Last Extended:20090112
Your Current Version:20090112
This import is compatible with version: 20070108
COMPATIBLE (You should be able to run this import without issues.)
Set Application ID...
begin
ERROR at line 1:
ORA-02291: integrity constraint (APEX_030200.WWV_FLOWS_FK) violated - parent
key not found
ORA-06512: at "APEX_030200.WWV_FLOW_API", line 555
ORA-06512: at line 3
Disconnected from Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, Oracle Label Security, OLAP, Data Mining,
Oracle Database Vault and Real Application Testing options
The BI publisher is working fine as I can see all the executive reports as well as all the demos work fine.
Also: At the below URL
http://www.oracle.com/technology/products/database/application_express/html/configure_printing.html#03
At step 5: 5. Installing and Configuring Apache FOP
I am expected to install the fop.war file using OEM. I have OEM for 11g working but I don't see the application component, just the Database. How do I get the App component working. The BI Publisher was installed using "basic" option as suggested by the OBE I am using.
Thanks a lot for your help.
MohsinHi Venkatv and everyone.
This is the link where I found about Including Dynamic Images in a Report.
http://www.oracle.com/technetwork/testcontent/apexprnt2-otn-098981.html
It's so easy and clear to do.
Good Luck!!!
Regards.
Ayrem -
How to create a FSG report in pdf format
How to create a FSG report in pdf format?
Thanks In Advance
KrisHi,
There is an enhancement request at user group review to create FSG's in PDF format. However, I transformed the FSG output by using ascii2pdf shareware software (do a search on google.) I created a shell script that did the transformation and emailed the report from Oracle Apps. It seems to work ok.
Renee -
How can you create a pdf report to attach to an email?
I have a need to create a PDF report with graphics and signature and somehow attached the PDF document to and email to send out. This is all hopefully done in my APEX application. Has anyone done anything similar?
I have several projects that use PL/PDF - with the pdf form filling API's - to populate pdf form and then attach the output to a BLOB variable in PL/SQL - which can then be attached to e-mail, displayed to user's browser, and saved into a BLOB column in a table. If you are comfotable with coding PL/SQL packages, this is not difficult to do at all.
The goodness of PL/PDF is that it is composed of PL/SQL packages with some wrapped Java programs - the output is generated directly from the database. You don't need to deal with the complexity and security concerns of calling an external Java middle tier to return the document. However, if you are not comfortable with PL/SQL coding, this may be a lot of work because the software does not have a report designer like Oracle BI Publisher, which costs more than $90K to run on a 2-CPU Server.
Thanks.
Andy -
How to create editable PDF template for XML Publisher reports
Hi,
I have got a requirement to have some editable fields in one report whose output is in PDF format.
I tried looking and saw this can be done using the XML Publisher report and using PDF template.
But I got only Adobe Acrobat Reader and it does not have the facility to create Form fields.. Can you let me know what software I need in order to create the editable PDF Template.
In the user guide, it didnot mention anything regarding this.
Can I create editable PDF report using RTF template or do i have to got for PDF template only?
Any help is appreciated!
ThanksHi,
To edit PDF template , u need Acrobat writer, which is not free .
I am still wondering what is this ?
"" Can I create editable PDF report using RTF template ?? "".
What is editable PDF report. ?
i think what you tried to mention is ,
can the PDF output from xml publisher is editable ?
If that is the question , so here is some points,
If you have Acrobat Writer or prof.edition, you can edit all the PDF documents irrespective of being from where it is generated.
To make you understand more of XMLP.
You create RTF template in word, so that , after merging with xml you can have multiple output formats like PDF, XLS, EFT,..... -
How to create drill down report in sap query
how to create drill down report in sap query ,
hi,
The pdf below gives the steps to create drill down report.
http://www.sappoint.com/abap/eis.pdf
also check.
<a href="http://72.14.203.104/search?q=cache:k-SFYy_rjPIJ:www.hrexpertonline.com/archive/Volume%252003%2520(2">http://72.14.203.104/search?q=cache:k-SFYy_rjPIJ:www.hrexpertonline.com/archive/Volume%252003%2520(2</a>
regs,
jaga -
I cannot download PDF documents. I get an error message; i.e., The document “1-15_HowtoSellWithoutSalesy.pdf” could not be exported as “1-15_HowtoSellWithoutSalesy.pdf”.
This is a recent event since I installed the newer version of Adobe. Any thoughts?Actually, I have two websites: Safari and Firefox. It doesn't matter which website I'm logged in to, I get the same message. As for downloading from the Adobe website, how do I do this? I'm wondering if it would be a good idea to completely uninstall Adobe and reinstall the latest version. Is this a good idea or will I lose the PDF's I was once able to download? As I said, this problem has been going on for the last 6 weeks, when I downloaded the latest version of Adobe.
Thanks for your continuing help.
Dolores
Date: Thu, 31 May 2012 21:00:35 -0600
From: [email protected]
To: [email protected]
Subject: How can I download PDF's
Re: How can I download PDF's
created by MichaelKazlow in Adobe Reader - View the full discussion
That is not a Reader message. It is a message being generated by the website. They may have a javascript or something trying to prohibit the download of the pdf to your computer. Try downloading a pdf from the Adobe website and see what happens.
Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4456263#4456263
To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4456263#4456263. In the Actions box on the right, click the Stop Email Notifications link.
Start a new discussion in Adobe Reader by email or at Adobe Forums
For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746. -
How to create a daily report for sales order
hi
how to create a daily report for sales order. what fields it must consists of. what are the tables it need?Hi
You have to use the sales order tables VBAK,VBAP and VBEP
So keep date field on selection screen
and treat this date as Order creation data audat field in VBAK.
based on this fetch the data from VBAK and VBAP with the following fields like
VBELN, KUNNR,NETWR,POSNR, MATNR,ARKTX,KWMENG,WAERS etc and display in the report
<b>Reward points for useful Answers</b>
Regards
Anji -
How to Create MultiSheet Excel Report Output in XML Publisher in Oracle R12
Dear All,
How to Create MultiSheet Excel Report Output in XML Publisher in Oracle R12.
My Requirement is to develop RTF Template and geneate Excel output in Multiple sheet.
plz guide me on this..
thnx
Khushalplz see
BI Publisher: How to create Multisheet in Single Excel file using Excel Template [ID 1352000.1]
for r12 you can use excel template
i think it more appropriate for excel output -
How to create a consolidated report in report builder?
Hi,
How to create a consolidated report in report builder?
There are 8 tables in database.
All the tables have same columns with same column names.
I want all the values of 8 tables to be displayed in the same report, but in a particular order.
Can we do an 'order by' for tables??? like 'order by table_name' ???
Thank You.You can create a query like this:
select * from (
select 1 sort_order, * from t1
union all
select 2, * from t5
union all
select 3, * from t2
etc.
order by sort_order, <something else if needed> -
How to create a standard report that allows filtering?
Hi Guys and Gals,
Sometimes, the standard report is great because it gives the user the feeling of a grid. i.e. All of the values are editable on one page, kind of like a spreadsheet. That is sometimes very useful. But if there is a lot of data, a filtering mechanism is necessary.
So will one of you Apex gurus please tell me how to create a standard report that also allows data filtering?
Allowing the user to specify the number of rows displayed would be peachy-keen too.
Thanks,
Kim
P.S. I'm running Apex 4.1 with Oracle 11g.Kim2012 wrote:
Your idea sounds very promising, but I apparently need a nudge in the right direction. From "Create Page", I clicked on "Form" and then "Tabular Form". Why would you do this? The advice given was
create a standard report page using the Create New Page wizardi.e. go to Home > Application Builder > Application > Create Page and click Classic Report, this was suggested because the original post said:
>
So will one of you Apex gurus please tell me how to create a standard report that also allows data filtering?
>
Nothing about forms. Tabular Forms, Tabular Forms. Despite many enhancements over the last few versions, tabular forms still cause problems, especially for novices trying to go beyond their own competence and the built-in capabilities of wizard-generated tabular forms.
More good advice: Re: Newbie question-how does the tabular form work? How to populate prim key? and—if based on decent database design—out of the box you have a usable and robust application. Use an Interactive Report or a custom report template and add some CSS and you can get something a lot more powerful, flexible and better looking than any tabular form. Spend the time you haven't wasted on frustrated hacking of tabular forms adding more features and enhancements to your app. -
How to create a crystal Report using C# and SQL Server
Hi, im new in creating crystal report using SQL Server, and im making a project.. and could someone help me how to connect your .sdf (SQL Server File) from the bin to your crystal report? thanks a lot.. i followed some instructions like this one (https://social.msdn.microsoft.com/Forums/vstudio/en-US/48c0dd48-5b23-49da-8601-878f8406125e/how-to-create-a-crystal-report-using-sql-server-visual-c?referrer=http://social.msdn.microsoft.com/Forums/vstudio/en-US/48c0dd48-5b23-49da-8601-878f8406125e/how-to-create-a-crystal-report-using-sql-server-visual-c?referrer=http://social.msdn.microsoft.com/Forums/vstudio/en-US/48c0dd48-5b23-49da-8601-878f8406125e/how-to-create-a-crystal-report-using-sql-server-visual-c?referrer=http://social.msdn.microsoft.com/Forums/vstudio/en-US/48c0dd48-5b23-49da-8601-878f8406125e/how-to-create-a-crystal-report-using-sql-server-visual-c?forum=csharpgeneral)
but i got an error on the adding of server name and database portion.. thanks a lot in advanceHello,
Crystal Reports are supported on
http://scn.sap.com/community/crystal-reports.
Karl
When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
My Blog: Unlock PowerShell
My Book:
Windows PowerShell 2.0 Bible
My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})
Maybe you are looking for
-
Please can you help, made initial template for my website but now I want to change template so I can edit meta tags (tags were originally an unetitable area). When I apply my example below in the DWT file and apply to all pages the meta tags disappea
-
Problem with adobe muse 7.2 in OSX Help Plase
Recientemente tengo un problema con el adobe muse 7.2 en el mac! cuando intento colocar un menu horizontal o vertical este no aparece completo, solo aparece un boton del menu y no me deja agragar mas, Lo segundo que le pasa es que no funciona el est
-
Please help me! showInputDialog with specific Buttons
Hi all, I'm from Germany and have some trouble with the JOptionPane package. Everything works fine, but I have a german operationsystem and i'm writing an 1.4 application in english. If I use a Optiondialog i can create my own buttontexts. String[] o
-
Pass array to oracle stored procedure
I have such a problem: I have to pass array to stored procedure, so I declare type: create type tNumberArray as table of number and create procedure: create or replace procedure proc_1 (in_param in tNumberArray) as .... BODY OF PROCEDURE ... when I c
-
Data filtering based on validation for SAP MDM
Hi Experts, My requirement is to filter data coming in to MDM via PI so that only those records are posted to MDM which pass that logic. I guess validation in PI can filter data based on logic defined. Please guide me how to achieve this. Thanks, Rav