FM for converting PDF to XSTRING - display R/3 report in Portal as PDF
Hello SDNers,
Requirement:
I am trying to display an R/3 report in Portal as PDF. I am trying to do it with the following logic:
1. Call a RFC enabled FM from my Webdynpro Java appln.
2. The FM then submits the Print request for the R/3 report and then gets the spool.
3. Convert the ABAP spool to PDF (using FM CONVERT_ABAPSPOOLJOB_2_PDF).
4. Convert the PDF to XSTRING and send it back to the calling Webdynpro appln.
5. Using the XSTRING regenerate the PDF using some Webdynpro Java APIs.
The Problem / Question:
The output of the FM CONVERT_ABAPSPOOLJOB_2_PDF is a table of type "TLINE" which includes TDFORMAT and TDLINE.
To get the XSTRING I am using the FM "'SCMS_STRING_TO_XSTRING". This FM only uses the "TDLINE" and completely ignores the "TDFORMAT". When I import this XSTRING value into my Webdynpro for Java appln., and assign to the corresponding UI element, my PDF does not show up.
My FM code is like this:
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = gd_spono
no_dialog = 'X'
TABLES
pdf = t_pdf
IF sy-subrc 0.
ENDIF.
IF sy-subrc EQ 0.
LOOP AT t_pdf INTO w_pdf.
CONCATENATE
output
w_pdf-tdformat
w_pdf-tdline
INTO output.
ENDLOOP.
CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
EXPORTING
text = output
IMPORTING
buffer = outputx.
I doubt if "'SCMS_STRING_TO_XSTRING'" is the right FM to use in my scenario.
If we had a smartform, we could have used the FM "CONVERT_OTF" , but in our case we do not have a smart form and I am not able to figure out which FM should be used.
Please suggest if I am doing any thing wrong.
Thanks for Reading.
Regards,
Raj Kumar
Hi
check this thread
spool to pdf conversion
It looks like you are missing translate in you processing of the table t_pdf. Something like the following line is missing:
TRANSLATE gd_buffer USING '~ '.
Loo at the standard program RSTXPDFT4 as well. It converts spool to PDF and then you can download it to your desktop.
Similar Messages
-
Display R/3 report in portal as pdf
Hello,
We have a custom report (R/3 report) which is too complex to be converted to a smart/adobe form.
The requirement is to show this report on portal for users to be able to print/save it.
The idea we have is:
1. Print the report to spool.
2. Convert the spool to pdf.
3. Render the pdf to portal.
How can we retrieve a pdf (spool) from the backend to portal?
What is the best way of doing this?
Please suggest.
Thanks,Hi Lakshmi,
You dont even need WD application for this.
You can write small java code which calls R/3 picks up data, fills up your table and returns this back to portal.
Also in java there are many APIs available which will help you convert this generated report to PDF/EXCEL etc.
Only thing is you need to have a RFC in place for this to work.
Write if you need any additional inputs on this.
Here is sample code for connecting to R3.
Code for connection to backend by creating JCO
public void createRepository() {
String SID = "R3";
JCO.addClientPool(SID,10,"<CLIENT>","<USERID>",
"<PASSWORD>","EN","<SERVERNAME>","<PORT>");
repository = new JCO.Repository("MyRepository", SID);
jcoClient = JCO.getClient(SID);
//response.write("Server Alive? = " + jcoClient.isAlive());
Regards,
Kedar Kulkarni
Reward points if useful -
How to set PDF file default display size through Report Writter 6i
Anyone could help me, how to setup default display (magnification i.e 100% or 80%) for a pdf file generated by report writter 6i.
Thanks
Rajhi,
regarding report, there is a dedicated report forum. you should post there.
but answer for your question is form is nothing to do with the pdf generation. you can call the report from the as usual.
In the report you should set the properties like
destype to 'file'
desname to 'path with file name'
desformat to 'pdf' -
What is the prerequisite to export bi 7.0 reports on portal to pdf ?
Hello all
We have put bi 7.0 bi reports on the portal . When we are trying to export the reports to pDf it is giving error.
"/irj/portalapps/com.sap.ip.bi.web.portal.mimes/web.ui.acs/resources/js/sapbi_ac_tray_comp.js" does not exist
and error while writing pdf
detail error
com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL was:"http://ENCEPD:50000/AdobeDocumentServices/Config?style=document"
Stack trace: java.rmi.RemoteException: Service call exception; nested exception is:
com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL was:"http://ENCEPD:50000/AdobeDocumentServices/Config?style=document"
at com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:84)
at com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:94)
at com.sap.tc.webdynpro.pdfobject.core.PDFObject.doSoapCall(PDFObject.java:417)
at com.sap.tc.webdynpro.pdfobject.core.PDFObject.createPDF(PDFObject.java:369)
at com.sap.ip.bi.export.xfa.impl.Document.writeWidthsAsXmlToStream(Document.java:336)
at com.sap.ip.bi.export.xfa.widthcalc.WidthCalculator.<init>(WidthCalculator.java:55)
at com.sap.ip.bi.export.xfa.impl.SizeCalculator.calc(SizeCalculator.java:98)
at com.sap.ip.bi.export.impl.ExportController.calculateAndSetSizes(ExportController.java:659)
at com.sap.ip.bi.export.impl.ExportController.doExportPrep(ExportController.java:461)
at com.sap.ip.bi.export.impl.ExportController.convert(ExportController.java:388)
at com.sap.ip.bi.export.controller.ExportResult.createExport(ExportResult.java:74)
at com.sap.ip.bi.webapplications.pageexport.PageExportRenderingRootNode.createPDF(PageExportRenderingRootNode.java:598)
at com.sap.ip.bi.webapplications.pageexport.PageExportRenderingRootNode.doExport(PageExportRenderingRootNode.java:134)
at com.sap.ip.bi.webapplications.pageexport.PageExportRenderingRootNode.processRendering(PageExportRenderingRootNode.java:351)
at com.sap.ip.bi.webapplications.runtime.impl.Page.buildRenderingTree(Page.java:5151)
at com.sap.ip.bi.webapplications.runtime.impl.Page.processRenderingRootNode(Page.java:5243)
at com.sap.ip.bi.webapplications.runtime.impl.Page.processRendering(Page.java:4801)
at com.sap.ip.bi.webapplications.runtime.impl.Page.doProcessRequest(Page.java:4723)
at com.sap.ip.bi.webapplications.runtime.impl.Page._processRequest(Page.java:3316)
at com.sap.ip.bi.webapplications.runtime.impl.Page.processRequest(Page.java:3162)
at com.sap.ip.bi.webapplications.runtime.controller.impl.Controller.doProcessRequest(Controller.java:1065)
at com.sap.ip.bi.webapplications.runtime.controller.impl.Controller._processRequest(Controller.java:949)
at com.sap.ip.bi.webapplications.runtime.controller.impl.Controller.processRequest(Controller.java:926)
at com.sap.ip.bi.webapplications.runtime.jsp.portal.services.BIRuntimeService._handleRequest(BIRuntimeService.java:401)
at com.sap.ip.bi.webapplications.runtime.jsp.portal.services.BIRuntimeService.handleRequest(BIRuntimeService.java:318)
at com.sap.ip.bi.webapplications.runtime.jsp.portal.components.LauncherComponent.doContent(LauncherComponent.java:24)
at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:523)
at java.security.AccessController.doPrivileged(Native Method)
at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:412)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
Caused by: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL was:"http://ENCEPD:50000/AdobeDocumentServices/Config?style=document"
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.handleResponseMessage(MimeHttpBinding.java:986)
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.call(MimeHttpBinding.java:1438)
at com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:77)
... 57 more
Message: No message was provided.
Stack trace: com.sap.ip.bi.base.exception.BIBaseRuntimeException
at com.sap.ip.bi.export.xfa.impl.Document.writeWidthsAsXmlToStream(Document.java:342)
at com.sap.ip.bi.export.xfa.widthcalc.WidthCalculator.<init>(WidthCalculator.java:55)
at com.sap.ip.bi.export.xfa.impl.SizeCalculator.calc(SizeCalculator.java:98)
at com.sap.ip.bi.export.impl.ExportController.calculateAndSetSizes(ExportController.java:659)
at com.sap.ip.bi.export.impl.ExportController.doExportPrep(ExportController.java:461)
at com.sap.ip.bi.export.impl.ExportController.convert(ExportController.java:388)
at com.sap.ip.bi.export.controller.ExportResult.createExport(ExportResult.java:74)
at com.sap.ip.bi.webapplications.pageexport.PageExportRenderingRootNode.createPDF(PageExportRenderingRootNode.java:598)
at com.sap.ip.bi.webapplications.pageexport.PageExportRenderingRootNode.doExport(PageExportRenderingRootNode.java:134)
at com.sap.ip.bi.webapplications.pageexport.PageExportRenderingRootNode.processRendering(PageExportRenderingRootNode.java:351)
at com.sap.ip.bi.webapplications.runtime.impl.Page.buildRenderingTree(Page.java:5151)
at com.sap.ip.bi.webapplications.runtime.impl.Page.processRenderingRootNode(Page.java:5243)
at com.sap.ip.bi.webapplications.runtime.impl.Page.processRendering(Page.java:4801)
at com.sap.ip.bi.webapplications.runtime.impl.Page.doProcessRequest(Page.java:4723)
at com.sap.ip.bi.webapplications.runtime.impl.Page._processRequest(Page.java:3316)
at com.sap.ip.bi.webapplications.runtime.impl.Page.processRequest(Page.java:3162)
at com.sap.ip.bi.webapplications.runtime.controller.impl.Controller.doProcessRequest(Controller.java:1065)
at com.sap.ip.bi.webapplications.runtime.controller.impl.Controller._processRequest(Controller.java:949)
at com.sap.ip.bi.webapplications.runtime.controller.impl.Controller.processRequest(Controller.java:926)
at com.sap.ip.bi.webapplications.runtime.jsp.portal.services.BIRuntimeService._handleRequest(BIRuntimeService.java:401)
at com.sap.ip.bi.webapplications.runtime.jsp.portal.services.BIRuntimeService.handleRequest(BIRuntimeService.java:318)
at com.sap.ip.bi.webapplications.runtime.jsp.portal.components.LauncherComponent.doContent(LauncherComponent.java:24)
at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:523)
at java.security.AccessController.doPrivileged(Native Method)
at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:412)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
Caused by: com.sap.tc.webdynpro.pdfobject.core.PDFObjectRuntimeException: Service call exception; nested exception is:
com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL was:"http://ENCEPD:50000/AdobeDocumentServices/Config?style=document"
at com.sap.tc.webdynpro.pdfobject.core.PDFObject.doSoapCall(PDFObject.java:440)
at com.sap.tc.webdynpro.pdfobject.core.PDFObject.createPDF(PDFObject.java:369)
at com.sap.ip.bi.export.xfa.impl.Document.writeWidthsAsXmlToStream(Document.java:336)
... 53 more
Caused by: java.rmi.RemoteException: Service call exception; nested exception is:
com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL was:"http://ENCEPD:50000/AdobeDocumentServices/Config?style=document"
at com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:84)
at com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:94)
at com.sap.tc.webdynpro.pdfobject.core.PDFObject.doSoapCall(PDFObject.java:417)
... 55 more
Caused by: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL was:"http://ENCEPD:50000/AdobeDocumentServices/Config?style=document"
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.handleResponseMessage(MimeHttpBinding.java:986)
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.call(MimeHttpBinding.java:1438)
at com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:77)
... 57 more
Will you please tell what all configuration , licences are required for enabling this functionality.
Regards
RajendraHI Rajendra,
1.The error in log " http://ENCEPD:50000/AdobeDocumentServices/Config?style=document", this is related to ADS related error .
For this ADS configuration is required(i think).
For ADS configuration credentials are required. write to SAP they will send ADS credential file and password.(itz free)
And follow this thread for Configuration
http://www.scribd.com/doc/14246206/ADS-Configuration-Guide
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/9e4e9afb-0701-0010-f8a8-b8cd093662c2?QuickLink=index&overridelayout=true
check this link..service.sap.com>adobe>Interactive Forms based on Adobe software> media library>documentation--> ADS config guides.
2. "Is any software required on client pc to export report to PDF"?
ADS components needs to be installed . Check in ur system information -->all components information
Regards,
Surekha. -
Asking for login details jumping from BW to SS report at Portal site
Hi Guys
Our BW reports are avilable from protal for user's.
Now the issue we are facing is when we jump from BW report to source system(SRM) report, it is aksing for login details for source system. where as at portal site it should not ask for login deatils. And we are facing this issue only in QA system and not PRD system.
M not sure where things are going wrong. I have checked SSO. nothing seems to be wrong here also.
Thanks & Regards,
RohiniHi Rohini,
I may not be correct. But does the user id which you are using (both in QA & Prod) have same settings for User-Type (<i>SU01 -> Logon Data -> User Type</i>). ?
Also u can check the RFC Settings (SM59).
Hope it would help..
Regards,
Vikrant. -
XSTRING with Binary of PDF - display R3 report in portal
Hello,
We have a requirement to show an R/3 report on portal as PDF. User will then be able to Print/Save the same.
I have browsed through different posts on SDN and
The idea I have is:
1. Print the report to spool (Backend).
2. Convert the spool to pdf (Backend).
3. Create a FM (in the backend) that exports an xstring with the binary of the pdf (of the report)
4. Using webdynpro for Java, create pdf form based on binary xstring.
5. Render the pdf to portal and display it in portal.
I have a couple of questions regarding this approach:
1. What exactly does the function module needs to export (what format and type should be used)?
2. How should the data being sent from the backend be handled in the Webdynpro Code? (What Context attribute should be created and what type should be used?)
Please share your experience if some one had developed a similar application. Any sample code would be really appreciated.
Thanks for Reading the post and for your time.
Regards,
RajHi Raj,
Thanks for the link, i followed the procedure the way it mentioned in the link, but i am getting the below error as nullpointer exception, i checked everything but still i am getting the error.
i can see one thing in webdynpro java code , i am getting warning message for this " wdwebresource"
as deprecaiated, what is this meant?
thanks,
vinay
java.lang.NullPointerException
at com.vin.view.PdfView.wdDoInit(PdfView.java:115)
at com.vin.view.wdp.InternalPdfView.wdDoInit(InternalPdfView.java:137)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doInit(DelegatingView.java:61)
at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
at com.sap.tc.webdynpro.progmodel.view.View.initController(View.java:445)
at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:709)
at com.sap.tc.webdynpro.progmodel.view.ViewManager.bindRoot(ViewManager.java:579)
at com.sap.tc.webdynpro.progmodel.view.ViewManager.init(ViewManager.java:155)
at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.doOpen(WebDynproWindow.java:295)
at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.show(ApplicationWindow.java:183)
at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.open(ApplicationWindow.java:178)
at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:364)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:756)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:291)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:46)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(AccessController.java:207)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172) -
GRR2- 4FM-RepPaint(put ABAP code for convert data in field)
Hi,
If somebody know how possible add ABAP code for convert data in some column-field of report (by RepWriter,UserExit,BADI)?
Thanks a lot.Elaborate your question. Not clear ??
-
Total time taken for the quiz needs to be displayed in the report
Hi,
I would want tthe total time taken for the quiz to be displayed in the report...Let me know if its possibleHi,
Please try this.
Define three user variables - StartTime, EndTime and Duration.
At the start of the quiz ('On Slide Enter' of the first Question Slide). have an advanced action with the following actions.
Assign: StartTime with cpInfoElapsedTimeMS
Continue
At the end of the quiz ('On Success' or 'On Failure' of the last Question Slide or 'On Slide Enter' of Result Slide), have this advanced action.
Assign: EndTime with cpInfoElapsedTimeMS
Expression: Duration = EndTime - StartTime
Expression: Duration = Duration / 1000
Continue
The variable 'Duration' will have the time taken by the user for the Quiz in seconds.
Let me know if you have any queries.
Thanks,
Thejas -
Hi All,
My requirement is to Display a Custom Report in Portal. This Report is developed in Abap. Since I am new to this portal thing I can think of only 1 idea to display these reports in Portal by creating transactional iViews . But In HTML transactional iViews I noticed that everytime I scroll through the Report the page is getting refreshed. I am worried about the performance of the portal since I have to display around 5-10 HR Reports in Portal. Also I am not able to hide the System Details that appear at the bottom of the SAP Screen.
Please help me out how can I hide those details. Also I need to provide Print Option for these reports. How can I acheive that ?
Is there any other way I can Display these reports in Portal. Please Help !!
Regards,
Akhil Raihi rai,
u can try on this RFC iview
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/90fc8a14-a02c-2a10-5a91-821561099192&overridelayout=true
let me know u need any further information
ravindra -
Displaying Custom or Z Reports in Portal
Hi All,
My requirement is to Display a Custom Report in Portal. This Report is developed in Abap. Since I am new to this portal thing I can think of only 1 idea to display these reports in Portal by creating transactional iViews . But In HTML transactional iViews I noticed that everytime I scroll through the Report the page is getting refreshed. I am worried about the performance of the portal since I have to display around 5-10 HR Reports in Portal. Also I am not able to hide the System Details that appear at the bottom of the SAP Screen.
Please help me out how can I hide those details. Also I need to provide Print Option for these reports. How can I acheive that ?
Is there any other way I can Display these reports in Portal. Please Help !!
Regards,
Akhil RaiHi,
Please don't do cross posting.
Regards,
SrinivaS -
Converting a PDF to XString - 4.6C
Hi,
I have an issue working in a 4.6C system where I need to convert a SmartForm to PDF in XString format for display via the portal.
From 4.7 onwards this is very simple as the CONVERT_OTF function module outputs a field bin_file with exactly what I need.
However in 4.6C this export parameter doesn't exist.
Looking into how the 4.7 system builds this field it seems to use the CONCATENATE ... IN BYTE MODE command. The BYTE MODE option is also not available in 4.6C.
I can't imagine it is not possible to do this in 4.6C, I just don't know where to start.
Any help would be greatly appreciated.
Thanks
IanHey Joseph,
Please tell me whether you are able to convert any other PDF file to excel format or not?
What exact error message do you get?
Are you trying to convert a scanned PDF document?
Hope to hear from you.
Regards,
Anubha -
Convert PDF to XSTRING and dysplay in portal(html)
Hi experts :
I need your help once again. I've read all the post regarding this issue but can't find a solution for my problem.
Basically, I have to create a PDF from a spool, convert it to xstring and send it to the web via RFC.
What I do is :
Convert the spool to PDF using FM CONVERT_OTFSPOOLJOB_2_PDF.
Convert the PDF tline table into XSTRING using a field symbol and a table of tlines (as described in one of the SDN blogs).
Then, I send to the web the value reurned from the conversion of the PDF line to XSTRING.
But, when opening the xstring there is nor PDF file but and error. If I download the PDF tline table, it works and can create the PDF, but nothing from the XSTRING.
My questions are :
Do we have to do any conversion on the portal side to convert the XSTRING into PDF?
is there any possibility of downloading the xstring to my desktop in order to check if I could create the PDF file from it?.
Helpful answer will be rewarded.
Regards,
Carlos.For the last question, use this code:
FORM write_bin_file
USING
i_filename TYPE string
i_file_xstring TYPE xstring.
TYPES xx(50) TYPE x.
DATA lt_xstring TYPE TABLE OF xx.
DATA l_length TYPE i.
CALL METHOD cl_swf_utl_convert_xstring=>xstring_to_table
EXPORTING
i_stream = i_file_xstring
IMPORTING
e_table = lt_xstring
EXCEPTIONS
OTHERS = 3.
l_length = XSTRLEN( i_file_xstring ).
CALL METHOD cl_gui_frontend_services=>gui_download
EXPORTING
bin_filesize = l_length
filename = i_filename
filetype = 'BIN'
CHANGING
data_tab = lt_xstring
EXCEPTIONS
OTHERS = 3.
ENDFORM. "write_bin_file -
Report for converting the documents into the PDF format.
Hello Experts,
I need to know if any report/ T-code is available in SAP to convert the files into PDF format.
We are processsong these PDF's then into IXOS system.
Regards,
Anna.Hello ,
You may check with the below programs:
Program name Report title
RSTXCPDF Routines for Converting OTF Format to PDF Format
RSTXPDF2 Administration/Upload of type 1 and TrueType font files
RSTXPDF3 Customizing for OTF-PDF Conversion
RSTXPDF4 Help Report from CONVERT_OTFSPOOLJOB_2_PDF
RSTXPDF5 Help Report from CONVERT_ABAPSPOOLJOB_2_PDF
RSTXPDFT Test report for PDF conversion - converting standard texts to PDF
RSTXPDFT2
RSTXPDFT3 Test
RSTXPDFT4 Convert SAPscript (OTF) or ABAP Lists Spool Job by PDF
RSTXPDFT5 Test: GUI Download of Spool Request
Regards
Ramesh Ch -
Can Adobe Distiller be used for converting all pro/e (3D -2D) files to pdf format?
Acrobat Distiller Server converts Postscript to PDF.
-
Creation of program for converting the invoices in the PDF format
Hi Guru
Can any one tell me any standard prog. for converting the invoices in the PDF format.
All invoices should be send through FTP.
Plz help.
Thanksu can use FM.
CONVERT_OTF which convers OTF code into PDF afterthat u can download or do FTP.
check sample flow.
Re: how to convert po to pdf
Regards
Peram
Maybe you are looking for
-
Hello, I've been using Skype redularly for weeks and there have been no issues until today. Just as I was receiving a call for a job interview, Skype froze and any attempts to close the program failed. My computer started to sieze up and was unusable
-
Hello, I still (!) use Illustrator CS2 (english version) and cannot find the procedure to cut a part on a simple long extented square object. In fact, the final object is based on two different triangles, one long and one short that i combined in opp
-
Dashcode iPhone Webapps - How to force a view to Refresh on Back
I have added one more List content view using Dashcode and have the lists data loaded dynamically via AJAX. Everything going Forward works perfectly However, when I clicked on the "Back" button, the Back button played the transition effect of going b
-
Facing issue with GN_INVOICE_CREATE.
Hi, As per my requirement before saving the billing document I need to display the tax amount and net value. For that i am using GN_INVOICE_CREATE function module. It is giving the tax amount and net value. But here my problem is Billing document
-
Assigning authorization group to users or roles.
Hi How do I assign authorization group I created for ECM digital signature approval to users