on 04-03-2007 10:33 PM
Hi,
I´ve installed ESS BP on my portal and some of the reports are showed as a PDF file, and I was wondering how did they do that?
Seem like the rfc send the file, like a binary sent thru the function.
Any idea? Any sample how to do that?
Thanks,
Edu
The problem that I was facing is that how the ECC send the PDF to the portal and then i figure it out, you create an rfc that exports an xstring with the binary os the pdf, there are many ways and the one I read but didn´t test if that gonna works is using Smart Form, I did with Sap Script and it works but a RFC called a program that generates the Sap Script and then send the OTF table to the RFC.
Bye,
Edu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
the key is only getting the pdf content as bite stream. once you have that all you need to do is set it as page response and set the mime type (application/pdf)
Raja
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Eduardo,
I've used a binary type in a similar situation. The RFC retrievers a BINARY type and my Web Dynpro applications show the PDF result.
Following my Web Dynpro code:
IWDCachedWebResource resource = WDWebResource.getWebResource
(wdContext.currentZ_Pdf_Report_OutputElement().getPdf(),
WDWebResourceType.getWebResourceTypeForFileExtension("pdf"));
resource.setResourceName(this.getDescriptionReport());
// Create a External Window with the URL destination
IWDWindow window = wdComponentAPI.getWindowManager().
createExternalWindow(resource.getURL(), this.getDescriptionReport(), true);
// Eliminate some features of the window
window.removeWindowFeature(WDWindowFeature.ADDRESS_BAR);
window.removeWindowFeature(WDWindowFeature.MENU_BAR);
window.removeWindowFeature(WDWindowFeature.STATUS_BAR);
window.removeWindowFeature(WDWindowFeature.TOOL_BAR);
window.setWindowSize(780,430);
window.setWindowPosition(20,140);
window.open();
Regards,
Luciano
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.