PDF Document Creation Exception in MSS
Hello,
We are implementing EP 7.0 SP11 along with ESS and MSS business package implementation.
Version : SAP_MSS 600 SP6
BP_ERP5MSS 1.0 SP9
ADSSAP 7.00 SP9
We have configured Adobe document services according to configuration document.
But while using Personal Change Request, we are getting an Error.
Screen shot of the error and Default Trace log file are attached with the message.
When we are trying following URL, we are able to go ahead and get the version as output after login thhrough user ADSUSER.
http://vporprd.voltas.com:50000/AdobeDocumentServices/Config
But Personal Change Request iView is giving this exception and we are not able to move ahead.
Please suggest some solution to this problem.
Exception Chain
com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentRuntimeException: Failed to UPDATEDATAINPDF
at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.InteractiveForm.afterHandleActionEvent(InteractiveForm.java:392)
at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.afterApplicationModification(ClientApplication.java:1132)
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.afterApplicationModification(ClientComponent.java:895)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doRespond(WindowPhaseModel.java:573)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:152)
at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:299)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingPortal(ClientSession.java:779)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:714)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:261)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
at com.sap.tc.webdynpro.clientserver.session.core.ApplicationHandle.doProcessing(ApplicationHandle.java:69)
at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.sendDataAndProcessActionInternal(AbstractApplicationProxy.java:860)
at com.sap.tc.webdynpro.portal.pb.impl.localwd.LocalApplicationProxy.sendDataAndProcessAction(LocalApplicationProxy.java:77)
at com.sap.portal.pb.PageBuilder.updateApplications(PageBuilder.java:1303)
at com.sap.portal.pb.PageBuilder.SendDataAndProcessAction(PageBuilder.java:325)
at com.sap.portal.pb.PageBuilder$1.doPhase(PageBuilder.java:872)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processPhaseListener(WindowPhaseModel.java:755)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doPortalDispatch(WindowPhaseModel.java:717)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:136)
at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:299)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:759)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:712)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:261)
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.doPost(DispatcherServlet.java:53)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
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:387)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:160)
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:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
Caused by: com.sap.tc.webdynpro.services.exceptions.PDFDocumentCreationException: ../../sap.com/msspcr/PcrApplication/wd_key29_1207734468606/Error+PDF.pdf?sap-wd-download=1&sap-wd-dl_behaviour=1&sap-wd-cltwndid=DefaultExternal1207734332748&sap-ext-sid=aP996vxKc%2Ft%2BqeG4JkNRRw%3D%3DhOZ0Ng2lx5xmmyA6mG94Vw%3D%3D%2Fpcd%3Aportal_content%2FVoltasMSS.VoltasMSS%2FVoltasMSS.VoltasMSS%2FVoltasMssRole.VoltasMssRole%2FVoltasMSSWorkSet.VoltasMSSWorkSet%2Fcom.sap.pct.erp.mss.pcrapplication_page%2Fsap.com%2Fmss%7Epcr%2FPcrApplication%2Fbase&sap-wd-norefresh=X&sap-ep-version=7.00.200702010738
at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.InteractiveForm.afterHandleActionEvent(InteractiveForm.java:379)
... 45 more
Thanks in advance.
Ganesh
Hi,
Can you test the connection settings from R/3. Run the program FP_PDF_TEST_00 in R/3, this should return ADS version information.
Also test whether standard forms are working or not.
Regards
Srikanth KV
Similar Messages
-
Hi All,
In one of my webdynpor applications i need to render one PDF document but while i am trying to do the same I am getting this error .
com.sap.tc.webdynpro.services.exceptions.PDFDocumentCreationException: ../../asianpaints.com/hs_rework_wd/ReworkApplication/~wd_key_80eZ1tsPlvcfxodN/ErrorPDF.pdf?sap-wd-download=1&sap-wd-dl_behaviour=1&sap-wd-cltwndid=b8b061b0906411de8a690050569630a5&sap-wd-appwndid=b8b061b1906411deb5a40050569630a5&sap-wd-norefresh=X
at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.InteractiveForm.afterHandleActionEvent(InteractiveForm.java:624)
at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.afterApplicationModification(ClientApplication.java:972)
at com.sap.tc.webdynpro.clientserver.phases.RespondPhase.execute(RespondPhase.java:60)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequestPartly(WindowPhaseModel.java:161)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doProcessRequest(WindowPhaseModel.java:109)
in the back end or default trace, the message displayed is
com.adobe.ProcessingException: Failed to connect to a <Render> XML Form Module.
Please ensure that the XML Form Module service is running.
I suppose, there is some service with the name "XML Form Module service " and its not running .
Can any one help me with the ways to run this service ?? or any other suggestion about why the error would be coming
thanks in advanceSmriti,
Did you upload a valid credential into the Visual admin? Also check that your ADSSAP SP level is the same as your J2EE Engine SP level.
You can restart the XML Form Module service as follows (if I am not wring) :-.
1. Logon to Visual Admin
2. On the Cluster tab, choose server -> Services -> XML Form Module
3. Right click and stop the service.
4. Once stopped, right click and start the service
Chintan -
Hi,
I have two pdf documents (doc1 and doc2) with hyperlinks e.g www.somlink.com, www.somlink2.com.
According to PDF Specification I can get those hyperlinks via Link Annotations -> URI Action. Link Annotations can be found in pdf page's dictionary under "Annots" key.
So the problem is that in one pdf document I get that "Annots" array but in another document there is no such entry in page dictionary. But Adobe Reader recognize those hyperlinks (recognize means you can click on a link and it will be opened in web browser) in both documents. So it seems that there is another place where you can specify hyperlinks, not only in "Annots" array -> URI Action.
Any ideas where it can be?No, that's where embedded ("real") link objects are.
However, Adobe Acrobat/Reader have an "auto-detect links" feature which will read the text of the page and if it finds text that looks like a URL, make it active to click on. -
Where can i find full tutorials about creation of pdf document?
Please any body tell me that i need to learn about pdf document creation and editing.
Hi flbdpublisher,
Did you purchase a subscription to Acrobat Pro? (It sounds that way if you're paying monthly.) If so, you just need to sign in to your account at https://www.cloud.acrobat.com and click Acrobat at the far right. Click Download Now to download and install Acrobat--that's where you will find the tools that you are looking for.
Please let us know if you need additional help.
Best,
Sara -
PDFDocument Exception in MSS-PCR
Hello ,
We are on EP7.0 and configured ADS server successfullt with our DEV and QAT system but the PCR application was working successfully in these systems...but now all of a sudden when we try to create a new PCR in QAT it blows with the following exception:
The initial exception that caused the request to fail, was:
com.sap.tc.webdynpro.services.exceptions.PDFDocumentCreationException: ../../sap.com/msspcr/PcrApplication/wd_key41_1194013279594/Error+PDF.pdf?sap-wd-download=1&sap-wd-dl_behaviour=1&sap-wd-cltwndid=DefaultExternal1194012746990&sap-ext-sid=HG0eF8QM883ta%2B5igpTM2g%3D%3Dgn0nJ2IIuGlVKF5fdTKsJQ%3D%3D%2Fpcd%3Aportal_content%2Fcom.adc.root%2Fmgrtool%2Froles%2Fcom.adc.mgrtool.mgrtool_rl%2Fmss_ws%2FTest%2Fcom.sap.pct.erp.mss.pcrapplication_page%2Fsap.com%2Fmss%7Epcr%2FPcrApplication%2Fbase&sap-wd-norefresh=X&sap-ep-version=7.00.200702010738
at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.InteractiveForm.afterHandleActionEvent(InteractiveForm.java:379)
at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.afterApplicationModification(ClientApplication.java:1132)
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.afterApplicationModification(ClientComponent.java:895)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doRespond(WindowPhaseModel.java:573)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:152)
... 41 more
See full exception chain for details.
Correction Hints
PDF Document Render Exception.
Please check the following:
Template file is not corrupted.
Data being passed is a vaild XML.
You have configured the web service client proxy properly.
Adobe Document Service (ADS) is configured properly (follow the configuration guide available at SAP service market place to check with all the supported configuration options).
If the problem still persists, report it to us. We need the following information to investigate the problem further:
Click here to download the error pdf that has been generated instead of the actual pdf. This is an important document to analyse the problem further.
Follow the steps below to get the system information where web dynpro is running:
Go to : http://host:port/sap/monitoring/SystemInfo
Log on as Administrator user.
Click on link all components... there. This will take you to the system information page that lists the version information of all the componenets installaed on your server.
Save this entire page (containing the version information of all the componenets installed on your server)
Follow SAP notes mentioned below to get the trace files for web dynpro and ADS. Then run your application again. Get the latest updated trace files from the server. If webdynpro and ADS are not running on the same server, then you need to turn on the tracer for the respective servers:
#742674 to turn on the web dynpro trace on the server where web dynpro is running.
#846610 to turn on the ADS trace on the server where ADS is running.
Note: the above hints are only a guess. They are automatically derived from the exception that occurred and therefore can't be guaranteed to address the original problem in all cases.
System Environment
Client
Web Dynpro Client Type HTML Client
User agent Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Version null
DOM version null
Client Type msie6
Client Type Profile ie6
ActiveX enabled
Cookies enabled
Frames enabled
Java Applets enabled
JavaScript enabled
Tables enabled
VB Script enabled
Server
Web Dynpro Runtime Vendor: SAP, build ID: 7.0011.20070125102926.0000 (release=645_VAL_REL, buildtime=2007-01-31:20:18:32[UTC], changelist=434634, host=pwdfm101), build date: Wed Apr 18 21:55:17 CDT 2007
J2EE Engine 7.00 patchlevel
Java VM Java HotSpot(TM) 64-Bit Server VM, version:1.4.2_12-b03, vendor: Sun Microsystems Inc.
Operating system Windows 2003, version: 5.2, architecture: amd64
Session & Other
Session Locale en_US
Time of Failure Fri Nov 02 09:21:19 CDT 2007 (Java Time: 1194013279625)
Web Dynpro Code Generation Infos
sap.com/pb
SapDictionaryGenerationCore 7.0011.20061002105236.0000 (release=645_VAL_REL, buildtime=2007-01-31:20:02:43[UTC], changelist=419377, host=PWDFM101.wdf.sap.corp)
SapDictionaryGenerationTemplates 7.0011.20061002105236.0000 (release=645_VAL_REL, buildtime=2007-01-31:20:02:51[UTC], changelist=419377, host=PWDFM101.wdf.sap.corp)
SapGenerationFrameworkCore 7.0011.20060719095755.0000 (release=645_VAL_REL, buildtime=2007-01-31:19:49:49[UTC], changelist=411255, host=PWDFM101.wdf.sap.corp)
SapIdeWebDynproCheckLayer 7.0011.20061002110128.0000 (release=645_VAL_REL, buildtime=2007-01-31:20:08:25[UTC], changelist=419396, host=PWDFM101.wdf.sap.corp)
SapMetamodelCommon 7.0011.20061002105432.0000 (release=645_VAL_REL, buildtime=2007-01-31:19:50:48[UTC], changelist=419384, host=PWDFM101.wdf.sap.corp)
SapMetamodelCore 7.0011.20061002105432.0000 (release=645_VAL_REL, buildtime=2007-01-31:19:50:27[UTC], changelist=419384, host=PWDFM101.wdf.sap.corp)
SapMetamodelDictionary 7.0011.20060719095619.0000 (release=645_VAL_REL, buildtime=2007-01-31:20:00:20[UTC], changelist=411251, host=PWDFM101.wdf.sap.corp)
SapMetamodelWebDynpro 7.0011.20061227101814.0000 (release=645_VAL_REL, buildtime=2007-01-31:20:05:13[UTC], changelist=431317, host=PWDFM101.wdf.sap.corp)
SapWebDynproGenerationCTemplates 7.0011.20070125102926.0000 (release=645_VAL_REL, buildtime=2007-01-31:20:21:35[UTC], changelist=434634, host=pwdfm101)
SapWebDynproGenerationCore 7.0011.20061002110128.0000 (release=645_VAL_REL, buildtime=2007-01-31:20:08:35[UTC], changelist=419396, host=PWDFM101.wdf.sap.corp)
SapWebDynproGenerationTemplates 7.0011.20070125102926.0000 (release=645_VAL_REL, buildtime=2007-01-31:20:21:35[UTC], changelist=434634, host=pwdfm101)
sap.com/tcwddispwda
No information available null
sap.com/pb_api
SapDictionaryGenerationCore 7.0011.20061002105236.0000 (release=645_VAL_REL, buildtime=2007-01-31:20:02:43[UTC], changelist=419377, host=PWDFM101.wdf.sap.corp)
SapDictionaryGenerationTemplates 7.0011.20061002105236.0000 (release=645_VAL_REL, buildtime=2007-01-31:20:02:51[UTC], changelist=419377, host=PWDFM101.wdf.sap.corp)
SapGenerationFrameworkCore 7.0011.20060719095755.0000 (release=645_VAL_REL, buildtime=2007-01-31:19:49:49[UTC], changelist=411255, host=PWDFM101.wdf.sap.corp)
SapIdeWebDynproCheckLayer 7.0011.20061002110128.0000 (release=645_VAL_REL, buildtime=2007-01-31:20:08:25[UTC], changelist=419396, host=PWDFM101.wdf.sap.corp)
SapMetamodelCommon 7.0011.20061002105432.0000 (release=645_VAL_REL, buildtime=2007-01-31:19:50:48[UTC], changelist=419384, host=PWDFM101.wdf.sap.corp)
SapMetamodelCore 7.0011.20061002105432.0000 (release=645_VAL_REL, buildtime=2007-01-31:19:50:27[UTC], changelist=419384, host=PWDFM101.wdf.sap.corp)
SapMetamodelDictionary 7.0011.20060719095619.0000 (release=645_VAL_REL, buildtime=2007-01-31:20:00:20[UTC], changelist=411251, host=PWDFM101.wdf.sap.corp)
SapMetamodelWebDynpro 7.0011.20061227101814.0000 (release=645_VAL_REL, buildtime=2007-01-31:20:05:13[UTC], changelist=431317, host=PWDFM101.wdf.sap.corp)
SapWebDynproGenerationCTemplates 7.0011.20070125102926.0000 (release=645_VAL_REL, buildtime=2007-01-31:20:21:35[UTC], changelist=434634, host=pwdfm101)
SapWebDynproGenerationCore 7.0011.20061002110128.0000 (release=645_VAL_REL, buildtime=2007-01-31:20:08:35[UTC], changelist=419396, host=PWDFM101.wdf.sap.corp)
SapWebDynproGenerationTemplates 7.0011.20070125102926.0000 (release=645_VAL_REL, buildtime=2007-01-31:20:21:35[UTC], changelist=434634, host=pwdfm101)
sap.com/tcwdcorecomp
No information available null
Detailed Error Information
Detailed Exception Chain
com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentRuntimeException: Failed to UPDATEDATAINPDF
at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.InteractiveForm.afterHandleActionEvent(InteractiveForm.java:392)
at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.afterApplicationModification(ClientApplication.java:1132)
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.afterApplicationModification(ClientComponent.java:895)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doRespond(WindowPhaseModel.java:573)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:152)
at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:299)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingPortal(ClientSession.java:779)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:714)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:261)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
at com.sap.tc.webdynpro.clientserver.session.core.ApplicationHandle.doProcessing(ApplicationHandle.java:69)
at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.sendDataAndProcessActionInternal(AbstractApplicationProxy.java:860)
at com.sap.tc.webdynpro.portal.pb.impl.localwd.LocalApplicationProxy.sendDataAndProcessAction(LocalApplicationProxy.java:77)
at com.sap.portal.pb.PageBuilder.updateApplications(PageBuilder.java:1259)
at com.sap.portal.pb.PageBuilder.SendDataAndProcessAction(PageBuilder.java:324)
at com.sap.portal.pb.PageBuilder$1.doPhase(PageBuilder.java:830)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processPhaseListener(WindowPhaseModel.java:755)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doPortalDispatch(WindowPhaseModel.java:717)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:136)
at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:299)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:759)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:712)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:261)
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.doPost(DispatcherServlet.java:53)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
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:387)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:160)
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:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
Caused by: com.sap.tc.webdynpro.services.exceptions.PDFDocumentCreationException: ../../sap.com/msspcr/PcrApplication/wd_key41_1194013279594/Error+PDF.pdf?sap-wd-download=1&sap-wd-dl_behaviour=1&sap-wd-cltwndid=DefaultExternal1194012746990&sap-ext-sid=HG0eF8QM883ta%2B5igpTM2g%3D%3Dgn0nJ2IIuGlVKF5fdTKsJQ%3D%3D%2Fpcd%3Aportal_content%2Fcom.adc.root%2Fmgrtool%2Froles%2Fcom.adc.mgrtool.mgrtool_rl%2Fmss_ws%2FTest%2Fcom.sap.pct.erp.mss.pcrapplication_page%2Fsap.com%2Fmss%7Epcr%2FPcrApplication%2Fbase&sap-wd-norefresh=X&sap-ep-version=7.00.200702010738
at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.InteractiveForm.afterHandleActionEvent(InteractiveForm.java:379)
... 45 more
Although it is still working in DEV system.....Please help.
Any help would be highly appreciated.Dear Raja,
I loggged into Visual Admin to change the value of sap.ADSCallingMode", from "http" to "soap. but that particular property is not maintained in the default property sheet in the following path
Server -> Services -> Configuration Adapter -> webdynpro -> sap.com -> tcwddispwda.
but you can see in the error trace i have given above that it is a SOAP based request. I am on EP 6 SP 9; will I have to upgrade or is it any other problem?
Regards,
Shyam -
Creation of PDF Document using ADF Table data in new window
Hi Guys,
I have a requirement of creating a pdf document from adf table and it must open in a new window.I know creation of pdf document using itext pdf jar.But in my case how to write the table data to pdf and how to open it in new window.
Thanks,
Srinivas.In the TF do like this..
view activity A-------dialog:invokePdf------->view activity B (invokePdf)
Fragment A command button would be
<af:commandButton action="#{pageFlowScope.PdfBean.openPDF}"
text="Generate" id="cbpdf"
useWindow="true"
windowWidth="700" windowHeight="700"/>
in the action add a return like return "dialog:invokePdf";
Control flow outcome is "dialog:invokePdf". B would be just a empty fragment. -
Adobe Forms Object Creation in PDF document dynamically
I have the following scenario: I have database of questions and answers, i need to build a webdynpro application that generates a PDF document with the content of this database, but in a dynamically way, for example i have one question like "What is the best color in your opinion?" and four answers like "Yellow, Red, Blue, Gray", i need to take all the questions and the answers from the database and build the PDF form. What are your recommendations for these case? Is there a way to generate a Topic and for these topic 4 checkboxes in a dynamically way?
All these data come from ECC.
Thanks for your help!Hi Bruno,
You can add or remove subform instances dynamically from your form.
BodyPage1.Subform.instanceManager.addInstance(1);
Create one subform, that has 4 RadioButtons and 4 InputFields, bind the inputfield with the options.
Hope this helps,
Amit -
Extract PDL from a PDF document
Hello,
I'm trying to perform the following task but doesn't find a solution.
I have a PDF stored on my Content server (KPRO) and want to print it using the SAP spool(SP01).I have try to use the FM ADS_SR_OPEN of creation of spool directly but i need the content of the PCL file.
Do you have any idea how to achieve this?
Thank you for your help,
Pelaez Lopez Philippe
Edited by: Philippe Lopez on Mar 13, 2008 5:24 PMHello Bertrand,
The printing in background of pdf document is not possible in DMS. DMS always use the client computer to print pdf document and the printing of PDF document must be done manually by the user.
So there is no solution to this question except some third party applications.
Kind regards,
Pelaez Lopez Philiipe -
How do I merge multiple pdf documents into 1 with my iPad ?
How do I merge multiple pdf documents into 1 with my iPad ? We are required by our customer 1 document that includes 4 different documents from different departments. Currently with our PC we can merge PDF files, excel or word files in to 1 PDF document. How can I do the same with our iPads and iPad minis using adobe?
blogs.adobe.com We are excited to announce that Adobe CreatePDF application is now available on iOS. With this, Adobe brings rich, high-fidelity and Acrobat-like PDF creation to the iOS devices. You can now convert all your documents on iPad, iPhone & iPod touch devices to PDF for reliable, secure sharing and viewing across PCs, tablets & Smartphones.
Robert Monsalve
[signature removed by host] -
How to generate a PDF document from ABAP program
Hi experts,
I have arequirement where in i need to create a PDF document using program. I have all the data collected into tables and i have used the calss CL_FP_PDF_OBJECT.
A pdf document is successfully created, but unable to open it because of some error. I guess some encryption is missing.
As an alternative I have created a smartform and generated its OTF data in my program and created a PDF. This is working fine.
But as per my requirement, i cannot go for a smart form.
Any help to resolve this issue will be highly appreciated.
Thanks & regards,
Asrar Ahamed MA
Infosys Tech. Ltd. INDIAHi Asrar ,
create a report with this Copy and give your program name in the selection screen whose output need to be in PDF.
*report zanusha_spool_to_pdf.
---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.
*-- 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.
*-- 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.
*-- 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.
submit (p_repid) to sap-spool without spool dynpro
spool parameters mstr_print_parms
via selection-screen
and return.
*-- Find out the spool number
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.
*-- Download the file
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(9)
f_uname+0(3)
into lc_rq2name.
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
Thanx
Anusha. -
How to read the data from a PDF document into SAP
Hi Everyone,
I am trying to read a PDF document from my desktop and get the data into SAP but i am not getting successful.
I am using the method cl_gui_frontend_services=>gui_upload and passing the filename and type and importing the file length and the data into an internal table.
I tried the file type as ASC but i couldn't get any records in the internal table and the filelength is displayed as 0.
When i tried the file type as BIN, it is giving the short dump. I guess that is because the file i am trying to read is not with the extension BIN.
Please Advice me on this
PoornimaHi Kiran,
Below is my program..
REPORT zpdf_data_update.
DATA : lt_file_table TYPE filetable.
DATA : lv_rc TYPE i.
DATA : lv_filename TYPE string.
DATA : lv_filelength TYPE i.
TYPES : BEGIN OF hex_record,
data TYPE string,
END OF hex_record.
DATA: lt_rawtab TYPE TABLE OF hex_record.
CALL METHOD cl_gui_frontend_services=>file_open_dialog
CHANGING
file_table = lt_file_table
rc = lv_rc
EXCEPTIONS
file_open_dialog_failed = 1
cntl_error = 2
error_no_gui = 3
not_supported_by_gui = 4
OTHERS = 5.
IF sy-subrc <> 0.
ENDIF.
READ TABLE lt_file_table
INTO lv_filename
INDEX 1.
cl_gui_frontend_services=>gui_upload(
EXPORTING
filetype = 'BIN'
filename = lv_filename
IMPORTING
filelength = lv_filelength
CHANGING
data_tab = lt_rawtab
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
not_supported_by_gui = 17
error_no_gui = 18
OTHERS = 19 ).
But it is giving me a short dump saying that the field symbol is not assigned ...
If i give the file type as ASC , then i am getting an empty table... Please advise me on this
Thanks
Poornima -
How to embed PDF document to a view in WDJ?
Hi, experts,
I have a PDF document for helping user to use a software product. I want to embed it to a view through interactiveform in web dynpro for java so that other users may read the PDF document. I don't how to implement it?
Do you give me some hint?
Best regards,
taoHi,
One quick question, where have you stored the PDF? is it in MIMEs folder ?
You have 1 of these 2 options to choose:
1. Get the PDF data in Byte format, fetch the absolute URL and display it in an iFrame UI Element.
2. Set the property of Adobe Interactive form UI elemets property -
mode = usePDF Mode (This mode value does not change the original PDF document. The data source and the template for the creation of the PDF document are ignored)
pdfSource = Path to the context element containing the PDF document.
-Kunal Kotak -
Converting Base64Binary to PDF document in BSP
Hello SDN users,
I am trying to get and display a pdf document from a webservice which is provided as a base64binary.
The interface of the webservice tells me that the response type (the actual pdf document) is an xsd:base64Binary.
The webservice proxy class generates an RAWSTRING for the pdf document as the response from the webservice call.
So my first guess was to use following class method to convert the base64binary to a normal string
CALL METHOD cl_http_utility=>if_http_utility~decode_base64
EXPORTING
encoded = lv_out_char " RAWSTRING from webservice
RECEIVING
decoded = lv_out_char_decoded.
My second guess was to create an xstring from this converted string via
CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
EXPORTING
text = lv_out_char_decoded"
mimetype = 'APPLICATION/PDF'
IMPORTING
buffer = lv_out_charx.
My next assumption was to create otf-data via function module so that I can send the otf data to the http server cache.
lv_pdf_len = XSTRLEN( lv_out_charx ).
call function 'CONVERT_OTF'
EXPORTING
format = 'PDF'
IMPORTING
bin_filesize = lv_pdf_len
bin_file = lv_out_charx
TABLES
OTF = LT_OUTPUT_DATA-OTFDATA
LINES = LT_LINES
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
err_bad_otf = 4
others = 5.
My Problem is, that I get back error code 4 which means bad otf.
Does anyone has a hint how I need to convert the base64binary from the webservice to a right format?
That would be great!Hello Durairaj,
thank you very much for your answer,
is it usual that the method
CALL METHOD cl_http_utility=>if_http_utility~decode_base64
EXPORTING
encoded = lv_out_char " RAWSTRING from webservice
RECEIVING
decoded = lv_out_char_decoded.
returns a string containg something like %pdf...? This was not the case with my method call.
But on friday I found out why. the string I received from the webservice was actually an XSTRING which I found out during a debugging session. The method return parameter was declared as RAWSTRING so I assumed that I had to convert from Base64 to STRING and then to XSTRING. When I aborted all the converting routines
if_http_utility~decode_base64
and
CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
and passed the XSTRING to the ICM server cache I received the pdf I wanted.
But anyway If you could confirm my second question how a a decoded Base64 attribute should look like I would be very happy.
Regards,
Sebastian -
Problem in printing pdf document with java code
Hi All
I want to print a pdf document with java code i have used PDFRenderer.jar to compile my code.
Code:
File f = new File("C:/Documents and Settings/123/Desktop/1241422767.pdf");
FileInputStream fis = new FileInputStream(f);
FileChannel fc = fis.getChannel();
ByteBuffer bb = fc.map(FileChannel.MapMode.READ_ONLY, 0, fc.size());
PDFFile pdfFile = new PDFFile(bb); // Create PDF Print Page
PDFPrintPage pages = new PDFPrintPage(pdfFile);
// Create Print Job
PrinterJob pjob = PrinterJob.getPrinterJob();
PageFormat pf = PrinterJob.getPrinterJob().defaultPage();
pjob.setJobName(f.getName());
Book book = new Book();
book.append(pages, pf, pdfFile.getNumPages());
pjob.setPageable(book);
// System.out.println(pjob.getPrintService());
// Send print job to default printer
pjob.print();
but when i am running my program i am getting error
Exception in thread "main" java.awt.print.PrinterException: Invalid name of PrintService.
Please anybody, knows the solution for this error?
Thanks In Advance
IndiraIt seems that either there is no default printer setup or you have too many printers or no printer setup at all. Try running the following code. It should print the list of available print services.
import java.awt.print.*;
import javax.print.*;
public class PrintServiceNames{
public static void main(String args[]) throws Exception {
PrintService[] printServices = PrinterJob.lookupPrintServices();
int i;
for (i = 0; i < printServices.length; i++) {
System.out.println("P: " + printServices);
}From the list pick one of the print service names and set it explicitly like "printerJob.setPrintService(printServices);" and then try running the program. -
Preview corrupts PDF documents when saving
There appears to be a serious bug in Preview and/or OS X's PDF creation libraries, that causes PDFs to be "invisibly" corrupted.
My situation is: I have a number of PDFs that have been created using Windows-based OCR software. They are standard PDF/A documents, and when I open them in Preview they display fine. More importantly, I can "copy" the text from the document to the clipboard and it works as you would expect.
However, if the PDF document it edited in any way - page order changed, a page from another document moved into the document etc - and then saved, the resulting PDF is corrupt. Although the text appears on the screen normally, any text copied to the clipboard is garbled: for example, the displayed text:
AUTUMN SPECIAL!
appears in one of my documents. However, highlighting it and copying it results in
*)﴿*%&(﴾'"!# $
in the clipboard.
I now have hundreds of documents that are effectively useless, as I cannot accurately copy the document text. I know others have had the same issue (see the posts in this Superuser.com thread for examples). The issue would appear to go as far back as Lion and possibly before then.
Is this a "known issue"? And has anyone come up with work-arounds - other than re-OCRing the files (usually by exporting as TIFFs, reOCRing etc)?This issue is still happening on Mavericks and it also happens with Adobe Acrobat Reader. If you highlight some lines on a PDF text and then save it, the OCR becomes unreadable. If you try to redo the OCR on Acrobat Pro, this is impossible because the pages 'contain renderable text'. The only solution I can fathom is not to use annotation on any PDFs. The strange thing is that I cannot find any solutions to this, or any bugs submitted on Acrobat's forums, where they should also be, because this is not just a problem with Apple.
Maybe you are looking for
-
Expert Day is a disappoint​ing failure.
Asked a question, got a single WRONG answer from an "Expert" and that was that. I messaged the "Expert" that had answered and pointed out that his answer was (quite easily) provably incorrect, and he replied "It's only your opinion." This is the leve
-
Spry tabbed panles default hide
Hello, Im with some problems with the spry content tab. What I need is to: as default hide the content of the spry tabbed panels and also hide on mouse out please advise if you needto check my codes and site thanks
-
How do I change from portrait to landscape on my iMac?
need to print a document from numbers 09
-
Method '~' of object '~' failed in Offline Planning
Hi, When the members in a dimension are set to '~' in Essbase, Offline Planning will prompt an error "Method '~' of object '~' failed" when we try to select that dimension as page members. Is there a way to overcome this problem? Thanks in advance.
-
Hi, I am currently using XDK for my project. I need to know how do i use the XSLT processor in XDK?. i have no idea and i have been looking on the oracle site to find a how to document. Will i need to download anything? or is it already there?. Thank