Code: Alles auswählen.
ls_output_options-tdcopies = '1'. " Anzahl der Ausdrucke
ls_output_options-tdnewid = abap_true. " neuen Spoolauftrag
ls_output_options-tdimmed = abap_true. " sofort ausgeben
ls_control_parameters-no_dialog = abap_true. " ohne Dialog drucken
ls_control_parameters-preview = abap_false. " keine Druckansicht
* Set output parameters and open spool job.
* fp_outputparams-DEVICE = 'PRINTER'.
* fp_outputparams-getpdf = abap_true.
fp_outputparams-preview = abap_true.
fp_outputparams-copies = '1'.
fp_outputparams-nodialog = abap_true.
fp_outputparams-connection = 'ADS'.
call function 'FP_JOB_OPEN'
changing
ie_outputparams = fp_outputparams
exceptions
cancel = 1
usage_error = 2
system_error = 3
internal_error = 4
others = 5.
try.
call function 'FP_FUNCTION_MODULE_NAME'
exporting
i_name = 'ZEWM_IFA_BSP_FORM'
importing
e_funcname = lv_funcnam
* E_INTERFACE_TYPE =
* EV_FUNCNAME_INBOUND =
.
catch cx_fp_api_repository.
catch cx_fp_api_usage.
catch cx_fp_api_internal.
endtry.
if sy-subrc <> 0.
lo_applog->message( ).
endif.
call function lv_funcnam "'/1BCDWB/SM00000006'
exporting
control_parameters = ls_control_parameters
output_options = ls_output_options
user_settings = 'X'
is_adrc_abs = is_adrc_abs
is_adrc_empf = is_adrc_empf
iv_refdoc = iv_refdocno
it_dlvdat = it_dlv_dat
exceptions
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
others = 5.
call function 'FP_JOB_CLOSE'
exceptions
usage_error = 1
system_error = 2
internal_error = 3
others = 4.
Code: Alles auswählen.
Begin trace
Adobe Document Services Thu Mar 07 15:49:05 CET 2013 Trace
Fully encoded destination: xxx//sap/bc/fp/form/layout/ZEWM_IFA_BSP_FORM.XDP?fp-language=DE
Problem accessing data from Destination: dest:FP_ICF_DATA_SCM//sap/bc/fp/form/layout/ZEWM_IFA_BSP_FORM.XDP?fp-language=DE&fp-cacheinfo=2013-03-07T11%3a35%3a19Z%240b8301d0-28fc-4daf-a7a2-3d8f5ca8382e%240%24de%24v0.9
com.adobe.ads.destination.DestinationException: HTTP-404 Error.
File Not Found while reading Dest URL: xxx//sap/bc/fp/form/layout/ZEWM_IFA_BSP_FORM.XDP?fp-language=DE
Resource Not Found
Exception Stack Trace:
com.adobe.ads.destination.DestinationException: HTTP-404 Error.
File Not Found while reading Dest URL: xxx//sap/bc/fp/form/layout/ZEWM_IFA_BSP_FORM.XDP?fp-language=DE
Resource Not Found
at com.adobe.ads.destination.Destination.readUrlStream(Unknown Source)
at com.adobe.ads.destination.Destination.readTemplate(Unknown Source)
at com.adobe.ads.data.DestStreamData.getByteArray(Unknown Source)
at com.adobe.ads.data.StreamData.getData(Unknown Source)
at com.adobe.ads.data.StreamData.getRemoteData(Unknown Source)
at com.adobe.ads.operation.support.RemoteRenderer.renderAll(Unknown Source)
at com.adobe.ads.operation.support.RemoteRenderer.renderAll(Unknown Source)
at com.adobe.ads.operation.Render.renderWithoutCache(Unknown Source)
at com.adobe.ads.operation.Render.execute(Unknown Source)
at com.adobe.ads.operation.ADSOperation.doWork(Unknown Source)
at com.adobe.ads.request.ADSRequest.processOperations(Unknown Source)
at com.adobe.ads.request.ADSRequest.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:331)
at com.sap.engine.services.webservices.runtime.EJBImplementationContainer.invokeMethod(EJBImplementationContainer.java:126)
at com.sap.engine.services.webservices.runtime.RuntimeProcessor.process(RuntimeProcessor.java:174)
at com.sap.engine.services.webservices.runtime.RuntimeProcessor.process(RuntimeProcessor.java:81)
at com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPost(ServletDispatcherImpl.java:90)
at SoapServlet.doPost(SoapServlet.java:47)
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:1060)
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)