Interactive form in Webdynpro application
Dear Experts,
My requirement is to show the interactive adobe form in my webdynpro ABAP applicatiion, using the class cl_wd_runtime_services=>attach_file_to_response,
For this I have to converts the pdf into xstring.
Request you to please suggest.
Warm Regards,
Upendra Agrawal
Hi,
Try this..
ie_outputparams-getpdf = 'X'.
ie_outputparams-nodialog = 'X'. " suppress printer dialog popup
CALL FUNCTION 'FP_JOB_OPEN'
CHANGING
ie_outputparams = ie_outputparams.
i_name = 'YOUR_FORM_NAME'.
TRY.
CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
EXPORTING
i_name = i_name
IMPORTING
e_funcname = i_funcname.
CATCH cx_fp_api_repository.
CATCH cx_fp_api_usage.
CATCH cx_fp_api_internal.
ENDTRY.
fp_docparams-langu = 'E'.
fp_docparams-country = 'US'.
fp_docparams-fillable = 'X'.
CALL FUNCTION i_funcname
EXPORTING
/1bcdwb/docparams = fp_docparams
IMPORTING
/1bcdwb/formoutput = fp_formoutput
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3.
CALL FUNCTION 'FP_JOB_CLOSE'
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
OTHERS = 4.
lv_data = fp_formoutput-pdf.
wdr_task=>client_window->client->attach_file_to_response(
i_filename = Test.PDF'
i_content = lv_data
i_mime_type = 'PDF' ).
Hope it helps..
Regards, Amith
Similar Messages
-
Error while passing values from Interactive form to Webdynpro Application
Hi,
Iam working on AdobeInteractive Forms using GP.There is an interactive form with a submit button on my desktop. Now when i click on submit the values in the Interactive Form should be passed to an Webdynpro application.But when i click on submit button i was getting error.Can any one solve my issue.
The Error is:
SAP Guided Procedures - Error Page
What happened?
An internal error occurred while processing your request
What can you do?
Try again later. If the problem persists, contact your system administrator.
Additional Error Information
Error while processing document via ADS
com.sap.caf.eu.gp.base.exception.EngineException: Error while processing document via ADS
at com.sap.caf.eu.gp.model.iforms.adapter.pdf.AdobePDFAdapter.processPDF(AdobePDFAdapter.java:842)
at com.sap.caf.eu.gp.model.iforms.adapter.pdf.AdobePDFAdapter.getSessionContext(AdobePDFAdapter.java:1116)
at com.sap.caf.eu.gp.model.iforms.postproc.FormPostprocessor.processData(FormPostprocessor.java:396)
at com.sap.caf.eu.gp.model.iforms.FormPostProcessor.doPost(FormPostProcessor.java:182)
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: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:102)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
Caused by: com.sap.tc.webdynpro.pdfobject.core.PDFObjectRuntimeException: Processing exception during a "GetData" operation. Request start time: Thu May 01 12:33:23 CDT 2008 com.adobe.ProcessingException: Error creating PDF Document - PDF Exception: Stream does not represent a PDF document. [Ljava.lang.StackTraceElement;@309d01f5 Exception Stack Trace: com.adobe.ProcessingException: Error creating PDF Document - PDF Exception: Stream does not represent a PDF document. [Ljava.lang.StackTraceElement;@309d01f5
at com.adobe.ads.remote.PDFState.getDocumentFromFile(Unknown Source)
at com.adobe.ads.remote.PDFState.getDocument(Unknown Source)
at com.adobe.ads.remote.EJB_PDFAgent.exportFormData(Unknown Source)
at com.adobe.ads.operation.GetData.execute(Unknown Source)
at com.adobe.ads.operation.ADSOperation.doWork(Unknown Source)
at com.adobe.ads.request.Request.processOperations(Unknown Source)
at com.adobe.ads.request.Request.process(Unknown Source)
at com.adobe.AdobeDocumentServicesEJB.processRequest(Unknown Source)
at com.adobe.AdobeDocumentServicesEJB.rpData(Unknown Source)
at com.adobe.AdobeDocumentServicesLocalLocalObjectImpl0_0.rpData(AdobeDocumentServicesLocalLocalObjectImpl0_0.java:120)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sap.engine.services.webservices.runtime.EJBImplementationContainer.invokeMethod(EJBImplementationContainer.java:126)
at com.sap.engine.services.webservices.runtime.RuntimeProcessor.process(RuntimeProcessor.java:157)
at com.sap.engine.services.webservices.runtime.RuntimeProcessor.process(RuntimeProcessor.java:79)
at com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPost(ServletDispatcherImpl.java:92)
at SoapServlet.doPost(SoapServlet.java:51)
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: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:102)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
Caused by: com.adobe.internal.pdftoolkit.core.exceptions.PDFCosParseException: Stream does not represent a PDF document.
at com.adobe.internal.pdftoolkit.core.cos.CosDocument.init(Unknown Source)
at com.adobe.internal.pdftoolkit.core.cos.CosDocument.<init>(Unknown Source)
at com.adobe.internal.pdftoolkit.core.cos.CosDocument.newDocument(Unknown Source)
at com.adobe.internal.pdftoolkit.pdf.document.PDFDocument.<init>(Unknown Source)
at com.adobe.internal.pdftoolkit.pdf.document.PDFDocument.newInstance(Unknown Source)
... 35 more
at com.sap.tc.webdynpro.pdfobject.core.PDFObject.doSoapCall(PDFObject.java:413)
at com.sap.tc.webdynpro.pdfobject.core.PDFObject.getData(PDFObject.java:311)
at com.sap.caf.eu.gp.model.iforms.adapter.pdf.AdobePDFAdapter.processPDF(AdobePDFAdapter.java:816)
... 19 more
Caused by: com.sap.tc.webdynpro.pdfobject.core.PDFObjectRuntimeException: Processing exception during a "GetData" operation. Request start time: Thu May 01 12:33:23 CDT 2008 com.adobe.ProcessingException: Error creating PDF Document - PDF Exception: Stream does not represent a PDF document. [Ljava.lang.StackTraceElement;@309d01f5 Exception Stack Trace: com.adobe.ProcessingException: Error creating PDF Document - PDF Exception: Stream does not represent a PDF document. [Ljava.lang.StackTraceElement;@309d01f5
at com.adobe.ads.remote.PDFState.getDocumentFromFile(Unknown Source)
at com.adobe.ads.remote.PDFState.getDocument(Unknown Source)
at com.adobe.ads.remote.EJB_PDFAgent.exportFormData(Unknown Source)
at com.adobe.ads.operation.GetData.execute(Unknown Source)
at com.adobe.ads.operation.ADSOperation.doWork(Unknown Source)
at com.adobe.ads.request.Request.processOperations(Unknown Source)
at com.adobe.ads.request.Request.process(Unknown Source)
at com.adobe.AdobeDocumentServicesEJB.processRequest(Unknown Source)
at com.adobe.AdobeDocumentServicesEJB.rpData(Unknown Source)
at com.adobe.AdobeDocumentServicesLocalLocalObjectImpl0_0.rpData(AdobeDocumentServicesLocalLocalObjectImpl0_0.java:120)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sap.engine.services.webservices.runtime.EJBImplementationContainer.invokeMethod(EJBImplementationContainer.java:126)
at com.sap.engine.services.webservices.runtime.RuntimeProcessor.process(RuntimeProcessor.java:157)
at com.sap.engine.services.webservices.runtime.RuntimeProcessor.process(RuntimeProcessor.java:79)
at com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPost(ServletDispatcherImpl.java:92)
at SoapServlet.doPost(SoapServlet.java:51)
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: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:102)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
Caused by: com.adobe.internal.pdftoolkit.core.exceptions.PDFCosParseException: Stream does not represent a PDF document.
at com.adobe.internal.pdftoolkit.core.cos.CosDocument.init(Unknown Source)
at com.adobe.internal.pdftoolkit.core.cos.CosDocument.<init>(Unknown Source)
at com.adobe.internal.pdftoolkit.core.cos.CosDocument.newDocument(Unknown Source)
at com.adobe.internal.pdftoolkit.pdf.document.PDFDocument.<init>(Unknown Source)
at com.adobe.internal.pdftoolkit.pdf.document.PDFDocument.newInstance(Unknown Source)
... 35 more
at com.sap.tc.webdynpro.pdfobject.core.PDFObject.doSoapCall(PDFObject.java:400)
... 21 moreHi Praveen,
The concept what we have observed is When you click on Submit the values were sent to GP. There GP framework takes care of all these. After that when you try to login to Portal and click on GP Inbox and try to open the application, what ever the data that is sent previously will be retrieved.
Due to some reasons like Delegation and other conecpts where GP will not fit we have scrapped GP and got back to workflow. There we have used the concept of Portal Webservice inorder to send the data to R/3 by clicking on Submit button.
We have successfully implemented the Adobe Forms Offline Scenario using Portal Webservice. -
Error occurs when deploying interactive form in webdynpro application
Hi,
I have developed the application based on INTERACTIVE FORMS DEVELOPMENT BASED ON ADOBE SOFTWARE i.e. TravelRequest which is a standard application from SDN and on deploying I get the following error/exception.
com.sap.tc.webdynpro.pdfobject.core.PDFObjectRuntimeException: Service call exception; nested exception is:
java.net.ConnectException: Connection refused: connect
at com.sap.tc.webdynpro.pdfobject.core.PDFObject.doSoapCall(PDFObject.java:282)
at com.sap.tc.webdynpro.pdfobject.core.PDFObject.createPDF(PDFObject.java:224)
at com.sap.tc.webdynpro.clientserver.adobe.AdobeFormHelper.createPDFDocumentForUIElement(AdobeFormHelper.java:483)
at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.InteractiveForm.afterHandleActionEvent(InteractiveForm.java:185)
at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.afterHandleActionEvent(ClientApplication.java:1154)
at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleActionEvent(WebDynproMainTask.java:402)
at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:649)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:248)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:48)
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:390)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
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: java.rmi.RemoteException: Service call exception; nested exception is:
java.net.ConnectException: Connection refused: connect
at com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:85)
at com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:95)
at com.sap.tc.webdynpro.pdfobject.core.PDFObject.doSoapCall(PDFObject.java:279)
... 27 more
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:452)
at java.net.Socket.connect(Socket.java:402)
at java.net.Socket.<init>(Socket.java:309)
at java.net.Socket.<init>(Socket.java:124)
at com.sap.engine.services.webservices.jaxm.soap.HTTPSocket.initStreamsFromSocket(HTTPSocket.java:637)
at com.sap.engine.services.webservices.jaxm.soap.HTTPSocket.initializeStreams(HTTPSocket.java:459)
at com.sap.engine.services.webservices.jaxm.soap.HTTPSocket.getOutputStream(HTTPSocket.java:416)
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.HTTPTransport.getRequestStream(HTTPTransport.java:351)
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.outputMessage(MimeHttpBinding.java:471)
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.call(MimeHttpBinding.java:1271)
at com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:78)
... 29 more
Please help me, how I can solve it.
Regards
DeepHi Siarhei,
Thanks for informing about the Web Service. So I have added to the path as follows:
Services -> Web Services Security -> Web Service Clients -> tcwdpdfobject -> com.sap.tc.webdynpro.adsproxy.AdsProxy*ConfigPort_Document
Here I have added in <b>Connection Settings</b>
URL = http://host:port/AdobeDocumentServices/Config?style=document
System ID = ECC
Client = 400
Language = EN
and in <b>Logon Data</b> added as follows
Authentication : Basic
User Name : ADSUser
Password : XXXXXX
Then I saved the settings and restarted the server
But this time I am getting the following exception
com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Error during call to AdobeDocumentServer: Processing exception during a "Render" operation.
Request start time: Mon Jul 03 12:18:17 GMT+05:30 2006
at com.sap.tc.webdynpro.clientserver.adobe.AdobeFormHelper.createPDFDocumentForUIElement(AdobeFormHelper.java:486)
at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.InteractiveForm.afterHandleActionEvent(InteractiveForm.java:185)
at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.afterHandleActionEvent(ClientApplication.java:1154)
at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleActionEvent(WebDynproMainTask.java:402)
at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:649)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:248)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:48)
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:390)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
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)
Please help me, how I can resolve it.
Regards
Deep -
Submit Button Adobe Interactive forms in webdynpro application
Hi All,
I have a webdynpro requirement which contains only ineractive Fom ( Adobe From).
In adobe Form i have inserted webdynpro activeex Submit Button.
When i run my webdynpro application.I am not able click on the submit button and it is not triggering the backend logic.
Can anybody please let me know how can i solve this issue.
Thanks,
TaraginiHi Tarangini,
As how suggested by Thomas ensure that the button type which you are using within your Adobe form matches the "displayType" property that you have specified for the InteractiveForm UI element within your Web Dynpro component. Also specify an event name to be triggered when the user clicks on the Adobe form button. This can be done by specifying a value for onSubmit property of the InteractiveForm. Also ensure that your Adobe form is enabled by having the "enabled" checkbox property of the InteractiveForm checked.
Regards,
Uday -
Use of pdfSource in Interactive Forms in webdynpro
hi,
please let me know the use of "<b>pdfSource</b>" property while designing the Interactive form in webdynpro. i tried with and without creating the pdfSource property in my application and still there were no errors while deploying it.
Thanks
Regards
Poojith M VHello Poojith M V,
Let me answer your query in a little bit more details. The statement first: An interactive form can be rendered with or without a pdfSource attribute.
But there are significant differences in the way they work and the application is designed. When you have the pdfSource bound to a context attribute of type binary, you do a PDF interchange between the browser and the server. The whole point is that you will always have the latest PDF document (binary) available in that context attribute on the server and you can make use of this binary PDF to do anything your apllication requires (saving it onto the file system, storing it into the database, performing some other operations on the server, email it etc etc etc).
Now, the other side of it, when you do not have the pdfSource bound to a context attribute, only XML exchange happens in between the browser and the server. Well, that means you only have the latest XML data available on the server at any point in time and since you have not bound the pdfSource, you do not have the binary PDF available to you through the context. There are ways you can get it but not through the context and not the latest one. It would still contain the initial data it had in the first request response cycle as you have not updated the PDF after that.
Now, the question is, which one to use ? It completly depends on your application requirements. There are certain functionalities which are not possible without having the latest PDF binary in hand. For example, you want to apply a digital signature on the document, you want to add an attachment on the document etc. But, then in most of the scenarios, the application would just need to exchange data between the client and the server (and vice versa) and do not worry about the binary PDF. That is the ideal case when you need not bind the pdfSource. It will be faster as well.
Hope that clarifies your doubt to certain extent. Go ahead and start with you interactive form application.
Best Regards,
Krish -
Using Interactive forms in Webdynpro Abap
Hi all,
I need to learn using Interactive forms in Webdynpro Abap. Can any please tell me from where to start with and what are the things that needs to be installed extra in the client system.
Also please tell me where i can get the tutorials on it..
Thanks,Hi,
try this.
You can download the Adobe LiveCycle Designer installer from SAP Service
Marketplace:
http://service.sap.com/installations
Entry by Application Group
-> SAP NetWeaver
-> SAP NETWEAVER
-> SAP NETWEAVER 2004S
-> Installation and Upgrade
-> <Choose any OS and DB combination.>
-> Adobe LiveCycle Designer 7.1
Download this file and extract it to your local hard drive.
Regards, Heidi
PS: See <a href="https://service.sap.com/sap/support/notes/962763">note 962763</a>
Message was edited by:
Heidi von Geisau -
Unable to test Adobe interactive form from webdynpro
This is the out put i get when i test run the report 'FP_TEST_IA_01'.As suggested in SAP NOTE : 999998
ADS: com.adobe.ProcessingException: Could not retrieve a password for credential: ReaderRights(200.101).
Actually i was trying my first Adobe interactive form with webdynpro and when i tested it i got this message.
The following error text was processed in the system NED : WebDynpro Exception: The ADS call has failed. You can find information about the cause in the error.pdf on the application server
Does Adobe interactive form requires Java stack to be active??
Or is it only a configuration issue in ADS???
What all should i take care in order to successfully run an adobe interactive form???
Regards,
Venkar RaghavanDear Abhishake,
Thanks for your reply.
I had gone through the link you had mentioned detailly.what i understand that is ZCI needs to be installed thats comming with Support pack SAP NetWeaver SPS 10 .
Will this also take care of ADS configuration.Where can i find a guide to ADS configuration and ZCI installation.
When i ran a report check FP_CHK_REPORT below is the output i got.can you please throw more light on this.
ISR Prepare ISR templates for ZCI migration ISR-001 Prepare ISR templates for ZCI migration
ZCI SAPForms API to Zero-client template migration ZCI-002 Update enumerated DDL XFO bindItems node reference
ZCI SAPForms API to Zero-client template migration ZCI-003 Copy enumerated DDL XFO form:ready non-Adobe scripts to the layout::ready ev
ZCI SAPForms API to Zero-client template migration ZCI-004 Add an XFO name to each of the embedded P1 Enumerated DDL XFO event handlers
ZCI SAPForms API to Zero-client template migration ZCI-001 SAPForm API to Zero-Client template migrator
Regards,
Venkat -
How to create interactive forms using Webdynpro for ABAP
Hi All,
I have worked on Webdynpro for ABAP, and now I want to start creating adobe interactive forms using Webdynpro for ABAP. Please provide me with basic examples to start.
Also Please provide me introduction as how interactive forms are related to ISR senarios.
Thanks in Advance.
PhaniHi Varun!,
Can you please send me also the above said step by step tutorial on [email protected]
and can you please also guide me any configurations to be done on Sneak Preview SP12 before developing the interactive forms.
Thank you in advance.
regards
Ravi -
Interactive Forms by WebDynpro for ABAP
Hello,
I'd like to create Adobe Interactive Forms by "WebDynpro for ABAP".
Our business requirements are
- to download offline PDF forms.
- to upload PDF forms and display Forms online.
Please let me know how to do this and the document or blogs.
Best regards,
KojiHi,
Downloading a form is as simple as when u enduser opens a form online, he just saves a copy of it, fills it up and uploading is just the next step.
If u want to upload an offline PDF form:
Here's the link that'll give a fair idea about this:
/people/shruti.rathour/blog/2008/02/07/uploading-sap-interactive-form-on-the-abap-webdynpro-view
If still not clear ask me..
It's just that u've created a view in webdynpro ABAP and uploading an offline form from that.
regards
Amita -
How to use an Adobe interactive form in an Application service operation?
Hi,
I have a peculiar requirement here:
The user wants that on the trigger of a specific operation an operation of the Application service should get invoked: this operation should pick up a Adobe form template from a destination and then prefill this forms with some values and then store the same in the backend DMS.
It's very easy to accomplish this task in WD Java with the use of Interactive form element but here we don't want any kind of user interaction for these forms, just the form templates will be prefilled with some dynamic values and then the same will be saved as is.
Can some one please provide some insight into how the same can be acieved, any API's etc?.
Please reply ASAP.
Regards,
Manishhi
try this tutorial on
online interactive
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/tutorial on online interactive pdf form - 29.htm
for offline interactive form
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/tutorial on offline interactive pdf form using download - 30.htm
for downloading and uploading pdf forms
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/tutorial on offline interactive pdf form using e-mail - 31.htm
regards
saravana -
Uploading data from Interactive form in Webdynpro ABAP
Hello All,
I am uploading data from an Offline interactive form to an ABAP WebDynpro application. Form is first downloaded, data is filled and now I am trying to upload the form to another WebDynpro application. Form DataSource is mapped to Context node with same data structure. However when I upload the form, form data does not pass automatically to specified context node.
Do I miss any important step in between? I am on SAP NetWeaver 2004s SP10.
Thanks,
Nitesh Shelar.hi,
the data is automatically passed to the context when the "interactive form" UI element is there in the view.
when you just upload the pdf, just like that, it will treat it like a PDF file, not an interactive form....
try using the same interactive form which you used to create the offline form.
i hope this helps,
regards,
-ag. -
ADOBE Interactive Form in webdynpro not allowing to enter value
Hi,
I have developed a Adobe interactive form in SFP and then i developed webdynpro component , then integrated into webdynpro. while running the webdynpro application which is showing the adobeform but the input fields are not allowed to enter value.
The same adobe form can be allowed to enter values while running from the report. i dunno how to set the value of the importing parameter fillable = 'X' in webdynpro.
regards,
RoopsHi friends,
The above mentioned setting are all active like Zc...Layout, enabled check box etc.. but when i make it to Activex which is not displaying form in the portal while running the application instead it shows red color X mark.. is there any setting required to run adobe with webdynpro ..
1.) any notes or patches ???
2.) is activex mandatory for running interactive form in webdunpro? if yes what are system setting required....
Regards,
Roops. -
Problem with native offline Interactive Forms in webdynpro java.
I have a java webdynpro project build like the one in this tutorial:
http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/how-to-guides-rig-official/netweaver-2004/web-application-server/how%20to%20create%20online%20and%20offline%20forms%20in%20web%20dynpro%20(NW2004).pdf
The "Online" part of the tutorial is working but in the offline scenario I get no data in WebDynpro from the Interactive form (all of Context Attributes have a value "null") after the use of "Submit to SAP" button. this is the button from the Web Dynpro Native Library in the LC Designer.
the versioning information:
Netweaver 7.0 WAS on SP13
ADS SP13
Lifecycle designer 7.1
We updated the ZCI template according to the SAP notes.
Does anyone know this problem and how to fix it ?Hi niru,
To work on adobe forms in webdynpro java you need to install ALCD(Adobe Life Cycle Designer) along with NWDS(NetWeaver Developer Studio).
To know about adobe forms in webdynpro check the following link
http://wwwimages.adobe.com/www.adobe.com/enterprise/partners/pdfs/solution_in_detail_interactive_forms.pdf
https://www.sdn.sap.com/irj/scn/elearn?rid=/webcontent/uuid/f5718380-0c01-0010-aebf-8786fb890302 [original link is broken]
For example check the follwoing link
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0401535-f81c-2a10-0192-ffd41e8e8d59
/docs/DOC-8661#section20 [original link is broken]
Regards,
Sam Charles J. -
Add Subform dynamically,in Interactive form in WebDynpro
HI,
I an using NW2004s SP9 and have an Interactive form designed by Adobe Designer 7.1 from within the NetWeaver Developer Studio, with the following hierarchy of elements:
-form1(root)
--Button
--tmpForm (subform - Repeat subform for each data entry )
---ST (Text)
The Webdynpro application displays the Interactive PDF form with Reader Rights enabled by the Adobe Document Services.
On click of button, the following javascript is executed on client side:
var df = _tmpForm.addInstance(1);
df.ST.rawValue = "HI" ;
xfa.host.messageBox( "Instances" + tmpForm.all.length ) ;
On clicking the button, i get the number of the instances of the subform and the size increases on each click, but no element is added "visibly" to the pdf.
But when i try to do the same by saving the XDP file as Dynamic PDF form for Acrobat 8.0, and open it using Adobe Acrobat PRO 8.0, it works fine.
My question is,I s it not possible to add subforms dynamically in PDF's generated by Adobe Document Services with Reader Rights enabled?
Or, is there something that i am missing?
Please guide.
Thanks.
Regards,
SiddharthaHI Dezpo,
Thanks a lot for replying.
I had checked the updated <b>SAP Note 834573</b> -Interactive Forms based on Adobe software: Acrobat/Reader version, which states that:
For SAP Interactive Forms by Adobe, you require the following:
Adobe Acrobat as of Version 7.0.9
Adobe Reader as of Version 7.0.9
<b>Important:</b>
Note that you can only have limited use of Reader 8.0 for forms that, at runtime, are integrated in a WebDynpro application through the xACF technology (Active Components Framework). In this runtime environment, Reader 8.0 currently only supports static interactive forms. If you are using <b>dynamic interactive PDF forms</b>, we recommend that you use <b>Reader 7.0.9.</b> In the application, you can use parameters, or you can call methods, to determine whether you want to create a static or dynamic PDF form.
I tried with the reader versions - 7.0.7, 7.0.9 and 8.01, but it doesn't work for either of them.
Regards,
Siddhartha Jain -
How to add table in SAP Non interactive forms in webdynpro java
Hi Experts,
I have a requirement in webdynpro java.I have a print button.On clicking print button a pdf will be opened.
This pdf will have data from the webdynpro view.I want to know how to add table in the adobe pdf.The webdynpro view will have many rows of table(rows will keep changing as per the size of the data output).How to send this data to adobe.How do we bind the node to the table in the adobe.How to automatically
Please suggest.
Thanks,
Rajani
Edited by: Rajani Nandagiri on Dec 26, 2008 8:58 AMRajani,
Take a look at below links, it will help you.
[Handling Dynamic Length Tables in Adobe Forms|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0859ad1-53aa-2a10-78ae-99e41c407669]
[Integrate tables & Images in Adobe Web Dynpro|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/user-interface-technology/wd%20java/wdjava%20archive/dynamic%20non-interactive%20pdf%20form.pdf]
[How to Handle Table Input and Output|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/user-interface-technology/wd%20java/7.0/adobe/how%20to%20handle%20table%20input%20and%20output.pdf]
[How Tou2026deal with Table input and display in Interactive Forms|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00c4041d-188d-2910-6ea2-b4d5155f56e0]
Chintan
Maybe you are looking for
-
All ok for 64 bit apps, printer INVISIBLE to 32 bit apps
Hello, I'm running Win7Pro64SP1 on a Z800 workstation, and recently had a partial disk crash in which a few sectors went into oblivion - after disk repair etc. and a few reinstalls, most everything came back ok, but here and there I still do stumble
-
What is this menu, and how do I move it/get rid of it?
Ok, that menu, where is shows the PS box, as well as the Bridge box, and other things like "What's new in CS4", just below the program menu. How do I get rid of it? I haven't used PS in about a month or maybe longer, and I want to adjust the brush
-
Bad date format in generated client API (weblogic server Workshop)
Hello, i'm making web service client from oracle weblogic workshop. I have used "clientgen" Ant task to generate the client library. The WSDL indicates that certain fields are of type xsd:date. <xs:complexType name="declarationType"> <
-
Flash loading slowly on website
Hi, I created a website in dreamweaver that has flash elements to it, however when I view my website it takes awhile for the flash to load, the flash is a image viewer that contains jpegs of images, do I need to use lower resolution images? How can I
-
Listener Core Dumping..
There seems to be a problem with tnslsnr. A couple of seconds after I execute "lsnrctrl start listener" tnslsnr disappears and there is suddenly a core file in my directory. I can't seem to figure out why it is doing this suddenly. We have had the or