WD Java - removing attachment from interactive form

Hi developers,
I am working on Interactive Form by Adobe for WD JAVA.
Can anyone please explain how to REMOVE attachments from a PDF document?
I have only found way to attach items or lists of items.
Thanks, regards
Vincenzo

Hi,
For attaching and removing the File form the form using Adobe Java Script
var sFile;
// Assign an Unique Value to sFile if you are attaching multiple files.
event.target.importDataObject(sFile);
oFile = event.target.getDataObject(sFile);
var pFile = event.target.getDataObjectContents(sFile);
var cFile = util.stringFromStream(pFile, "utf-16");
For the removing the attachments form the form
var sFile;
var myDoc = event.target;
myDoc.removeDataObject(sFile);
Regards,
Chandran S

Similar Messages

  • Taking the data from interactive forms and load the data into SAP system?

    hi all,
    I want to know how to take the data from interactive forms and load the data into sap system?
    if u have any sample scenario, explain with that.
    thanks in advance
    Raja

    Hello,
    Check the program...
    SAPBC480_DEMO.
    Check the below threads
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/88e7ea34-0501-0010-95b0-ed14cfbeb85a
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/bfbcd790-0201-0010-679d-e36a3c6b89fa
    Thanks
    Seshu

  • Java.lang.IllegalArgumentException: PDFDocumentRuntimeException: Interactive Form Operation Failed (DC Migrated from 7.0 to 7.4)

    Hi Experts,
    We have migrated one of our portal systems from 7.0 to 7.4. There is one application which uses Adobe Interactive Forms. The same DC when we tested on Development environment works fine as expected. The same thing when deployed to QA system, I am getting the below error:
    java.lang.IllegalArgumentException: can't parse argument number urn:AdobeDocumentServicesWsd/AdobeDocumentServicesVi/document
        at java.text.MessageFormat.makeFormat(MessageFormat.java:1339)
        at java.text.MessageFormat.applyPattern(MessageFormat.java:458)
        at java.text.MessageFormat.<init>(MessageFormat.java:350)
        at java.text.MessageFormat.format(MessageFormat.java:811)
        at com.sap.tc.adobe.pdfobject.base.core.PDFObjectRuntimeException$DummyLocalizableTextFormatter.<init>(PDFObjectRuntimeException.java:43)
        ... 98 more
    See full exception chain for details.
    //Full Exception chain
    Detailed Exception Chain
    com.sap.tc.adobe.pdfdocument.base.core.PDFDocumentRuntimeException: Interactive Form Operation Failed
      at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.InteractiveForm.afterHandleActionEvent(InteractiveForm.java:774)
      at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.afterApplicationModification(ClientApplication.java:1105)
      at com.sap.tc.webdynpro.clientserver.phases.RespondPhase.execute(RespondPhase.java:59)
      at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequestPartly(WindowPhaseModel.java:162)
      at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doProcessRequest(WindowPhaseModel.java:110)
      at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:97)
      at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:515)
      at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:58)
      at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.doExecute(ClientApplication.java:1671)
      at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.doProcessing(ClientApplication.java:1485)
      at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doApplicationProcessingEmbedded(ApplicationSession.java:919)
      at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doApplicationProcessing(ApplicationSession.java:878)
      at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:357)
      at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:326)
      at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.delegateToRequestManager(AbstractExecutionContextDispatcher.java:62)
      at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.DispatchHandlerForRequestManager.service(DispatchHandlerForRequestManager.java:39)
      at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.DispatchHandlerForRequestManager.service(DispatchHandlerForRequestManager.java:46)
      at com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:292)
      at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.ExecutionContextDispatcher.dispatchToAppContext(ExecutionContextDispatcher.java:68)
      at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.dispatch(AbstractExecutionContextDispatcher.java:53)
      at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:245)
      at com.sap.tc.webdynpro.clientserver.embedding.JavaApplicationProxy$Runner.callRequestManager(JavaApplicationProxy.java:1244)
      at com.sap.tc.webdynpro.clientserver.embedding.JavaApplicationProxy$Runner.callEmbeddedApplication(JavaApplicationProxy.java:1122)
      at com.sap.tc.webdynpro.clientserver.embedding.JavaApplicationProxy$SendDataAndProcessActionCommand.doExecute(JavaApplicationProxy.java:1605)
      at com.sap.tc.webdynpro.clientserver.embedding.JavaApplicationProxy$AbstractCommand.execute(JavaApplicationProxy.java:1488)
      at com.sap.tc.webdynpro.clientserver.embedding.JavaApplicationProxy$Runner.execute(JavaApplicationProxy.java:1028)
      at com.sap.tc.webdynpro.clientserver.embedding.JavaApplicationProxy.execute(JavaApplicationProxy.java:859)
      at com.sap.tc.webdynpro.clientserver.embedding.JavaApplicationProxy.sendDataAndProcessAction(JavaApplicationProxy.java:468)
      at com.sap.tc.webdynpro.portal.pb.impl.JavaApplicationProxyAdapter.sendDataAndProcessAction(JavaApplicationProxyAdapter.java:191)
      at com.sap.portal.pb.PageBuilder.updateApplications(PageBuilder.java:1698)
      at com.sap.portal.pb.PageBuilder.SendDataAndProcessAction(PageBuilder.java:369)
      at com.sap.portal.pb.PageBuilder$PhaseListenerImpl.doPhase(PageBuilder.java:2123)
      at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processPhaseListener(WindowPhaseModel.java:251)
      at com.sap.tc.webdynpro.clientserver.phases.PortalDispatchPhase.execute(PortalDispatchPhase.java:50)
      at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequestPartly(WindowPhaseModel.java:162)
      at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doProcessRequest(WindowPhaseModel.java:110)
      at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:97)
      at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:515)
      at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:58)
      at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.doExecute(ClientApplication.java:1671)
      at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.doProcessing(ClientApplication.java:1485)
      at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doApplicationProcessingStandalone(ApplicationSession.java:908)
      at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doApplicationProcessing(ApplicationSession.java:880)
      at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:357)
      at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:326)
      at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doContent(AbstractDispatcherServlet.java:87)
      at com.sap.tc.webdynpro.serverimpl.wdc.DispatcherServlet.doContent(DispatcherServlet.java:101)
      at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doPost(AbstractDispatcherServlet.java:62)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
      at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:152)
      at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:38)
      at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:466)
      at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:210)
      at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:441)
      at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:430)
      at com.sap.engine.services.servlets_jsp.filters.DSRWebContainerFilter.process(DSRWebContainerFilter.java:38)
      at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
      at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:81)
      at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
      at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:278)
      at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
      at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:81)
      at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
      at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
      at com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)
      at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
      at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
      at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)
      at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
      at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
      at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)
      at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
      at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
      at com.sap.engine.services.httpserver.filters.SessionSizeFilter.process(SessionSizeFilter.java:26)
      at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
      at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
      at com.sap.engine.services.httpserver.filters.MemoryStatisticFilter.process(MemoryStatisticFilter.java:57)
      at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
      at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
      at com.sap.engine.services.httpserver.filters.DSRHttpFilter.process(DSRHttpFilter.java:43)
      at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
      at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
      at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:475)
      at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:269)
      at com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:56)
      at com.sap.engine.core.thread.execution.Executable.run(Executable.java:122)
      at com.sap.engine.core.thread.execution.Executable.run(Executable.java:101)
      at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:328)
    Caused by: com.sap.tc.adobe.pdfdocument.base.core.PDFDocumentRuntimeException: PDFDocument Processor failed to process RenderRequest Due to the following Reason
    can't parse argument number urn:AdobeDocumentServicesWsd/AdobeDocumentServicesVi/document
      at com.sap.tc.adobe.pdfdocument.base.core.PDFDocumentProcessor.process(PDFDocumentProcessor.java:55)
      at com.sap.tc.adobe.pdfdocument.base.core.PDFDocumentInteractiveFormHandlingContext.execute(PDFDocumentInteractiveFormHandlingContext.java:110)
      at com.sap.tc.adobe.pdfdocument.base.core.PDFDocumentInteractiveFormHandlingContext.execute(PDFDocumentInteractiveFormHandlingContext.java:135)
      at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.AdobeFormHelper.createPdf(AdobeFormHelper.java:689)
      at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.InteractiveForm.afterHandleActionEvent(InteractiveForm.java:641)
      ... 88 more
    Caused by: java.lang.IllegalArgumentException: can't parse argument number urn:AdobeDocumentServicesWsd/AdobeDocumentServicesVi/document
      at java.text.MessageFormat.makeFormat(MessageFormat.java:1339)
      at java.text.MessageFormat.applyPattern(MessageFormat.java:458)
      at java.text.MessageFormat.<init>(MessageFormat.java:350)
      at java.text.MessageFormat.format(MessageFormat.java:811)
      at com.sap.tc.adobe.pdfobject.base.core.PDFObjectRuntimeException$DummyLocalizableTextFormatter.<init>(PDFObjectRuntimeException.java:43)
      at com.sap.tc.adobe.pdfobject.base.core.PDFObjectRuntimeException.<init>(PDFObjectRuntimeException.java:26)
      at com.sap.tc.adobe.pdfobject.base.core.PDFObjectDII.invoke(PDFObjectDII.java:393)
      at com.sap.tc.adobe.pdfobject.base.core.PDFObjectDII.doSoapCall(PDFObjectDII.java:91)
      at com.sap.tc.adobe.pdfobject.base.core.PDFObject.execute(PDFObject.java:111)
      at com.sap.tc.adobe.pdfdocument.base.core.PDFDocumentRenderHandler.handle(PDFDocumentRenderHandler.java:176)
      at com.sap.tc.adobe.pdfdocument.base.core.PDFDocumentProcessor.process(PDFDocumentProcessor.java:52)
      ... 92 more
    I dont know how to proceed further. I checked the ADS connection which is fine. Reader Rights is also fine.How I will debug this error further?

    Hello,
    This may caused by:
    1, ReaderRights
    2, Destination ConfigPort_Document
    It seems you have already confirmed point 1, so please check point 2.
    Also check SAP note 1443819 part "Check the configuration", if the service is not working, you have to config the service according to SAP note 1443819.
    Regards,
    David

  • Problem by  Sending an Email with attached Adobe Interactive Form (Code)

    Thanks. I have written Programm, but it does not work as i want it to do. I will send an Email with attached Adobe Interactive Firm to [email protected]. I tried it with "*lo_recipient = cl_sapuser_bcs=>create( sy-uname )" at the marked(bold, fat) position. It worked but the Email was send to my SAP-Account, but i want to send to [email protected], so I tried this (see at code in bold, fat):
    lo_rec TYPE adr6-smtp_addr VALUE '[email protected]'. " Empfänger Receiver
    lo_recipient = cl_cam_address_bcs=>create_internet_address( lo_rec ).
    But it doens`t send the email.
    Can anybody help me please???
    Kevin
    Here my Code:
    Report FP_EXAMPLE_01
    Printing of documents using PDF based forms
    REPORT z_example_02.
    Data declaration
    DATA: carr_id TYPE sbook-carrid,
    customer TYPE scustom,
    bookings TYPE ty_bookings,
    connections TYPE ty_connections,
    fm_name TYPE rs38l_fnam,
    fp_docparams TYPE sfpdocparams,
    fp_outputparams TYPE sfpoutputparams,
    error_string TYPE string,
    l_booking TYPE sbook,
    t_sums TYPE TABLE OF sbook,
    l_sums LIKE LINE OF t_sums,
    fp_formoutput TYPE fpformoutput.
    PARAMETER: p_custid TYPE scustom-id DEFAULT 38.
    SELECT-OPTIONS: s_carrid FOR carr_id DEFAULT 'AA' TO 'ZZ'.
    PARAMETER: p_form TYPE tdsfname DEFAULT 'FP_EXAMPLE_01'.
    PARAMETER: language TYPE sfpdocparams-langu DEFAULT 'E'.
    PARAMETER: country TYPE sfpdocparams-country DEFAULT 'US'.
    Get data from the following tables: scustom(Flight customer)
    sbook (Single flight reservation)
    spfli (Flight plan)
    SELECT SINGLE * FROM scustom INTO customer WHERE id = p_custid.
    CHECK sy-subrc = 0.
    SELECT * FROM sbook INTO TABLE bookings
    WHERE customid = p_custid
    AND carrid IN s_carrid
    ORDER BY PRIMARY KEY.
    SELECT * FROM spfli INTO TABLE connections
    FOR ALL ENTRIES IN bookings
    WHERE carrid = bookings-carrid
    AND connid = bookings-connid
    ORDER BY PRIMARY KEY.
    Print data:
    First get name of the generated function module
    CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
    EXPORTING
    i_name = p_form
    IMPORTING
    e_funcname = fm_name.
    IF sy-subrc <> 0.
    MESSAGE e001(fp_example).
    ENDIF.
    Set output parameters and open spool job
    fp_outputparams-nodialog = 'X'. " suppress printer dialog popup
    fp_outputparams-getpdf = 'X'. " launch print preview
    CALL FUNCTION 'FP_JOB_OPEN'
    CHANGING
    ie_outputparams = fp_outputparams
    EXCEPTIONS
    cancel = 1
    usage_error = 2
    system_error = 3
    internal_error = 4
    OTHERS = 5.
    Set form language and country (->form locale)
    fp_docparams-langu = language.
    fp_docparams-country = country.
    *fp_docparams-fillable = 'X'.
    *fp_docparams-langu = 'E'. "wird jetzt automatisch gesetzt, bzw. kann dynamisch verändert werden
    *fp_docparams-country = 'GB'. "wird jetzt automatisch gesetzt, bzw. kann dynamisch verändert werden
    currency key dependant summing
    LOOP AT bookings INTO l_booking.
    l_sums-forcuram = l_booking-forcuram.
    l_sums-forcurkey = l_booking-forcurkey.
    COLLECT l_sums INTO t_sums.
    ENDLOOP.
    Now call the generated function module
    CALL FUNCTION fm_name
    EXPORTING
    /1bcdwb/docparams = fp_docparams
    customer = customer
    bookings = bookings
    connections = connections
    t_sums = t_sums
    IMPORTING
    /1bcdwb/formoutput = fp_formoutput
    EXCEPTIONS
    usage_error = 1
    system_error = 2
    internal_error = 3
    OTHERS = 4.
    IF sy-subrc <> 0.
    CALL FUNCTION 'FP_GET_LAST_ADS_ERRSTR'
    IMPORTING
    e_adserrstr = error_string.
    IF NOT error_string IS INITIAL.
    we received a detailed error description
    WRITE:/ error_string.
    EXIT.
    ELSE.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    ENDIF.
    Close spool job
    CALL FUNCTION 'FP_JOB_CLOSE'
    EXCEPTIONS
    usage_error = 1
    system_error = 2
    internal_error = 3
    OTHERS = 4.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    *********************Send the form*******************
    *********************to the Customer*****************
    *********************via Email***********************
    *IF i_down = abap_true.
    DATA: filename TYPE string,
    path TYPE string,
    fullpath TYPE string,
    default_extension TYPE string VALUE 'PDF'.
    Data:
    lt_att_content_hex TYPE solix_tab.
    *DATA: data_tab TYPE TABLE OF x255.
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
    EXPORTING
    buffer = fp_formoutput-pdf
    TABLES
    binary_tab = lt_att_content_hex.
    CLASS cl_bcs DEFINITION LOAD.
    DATA:
    lo_send_request TYPE REF TO cl_bcs VALUE IS INITIAL.
    lo_send_request = cl_bcs=>create_persistent( ).
    DATA:
    lt_message_body TYPE bcsy_text VALUE IS INITIAL.
    DATA: lo_document TYPE REF TO cl_document_bcs VALUE IS INITIAL.
    APPEND 'Dear Vendor,' TO lt_message_body.
    APPEND ' ' TO lt_message_body.
    APPEND 'Please fill the attached form and send it back to us.'
    TO lt_message_body.
    APPEND ' ' TO lt_message_body.
    APPEND 'Thank You,' TO lt_message_body.
    lo_document = cl_document_bcs=>create_document(
    i_type = 'RAW'
    i_text = lt_message_body
    i_subject = 'Vendor Payment Form' ).
    DATA: lx_document_bcs TYPE REF TO cx_document_bcs VALUE IS INITIAL.
    TRY.
    lo_document->add_attachment(
    EXPORTING
    i_attachment_type = 'PDF'
    i_attachment_subject = 'Vendor Payment Form'
    i_att_content_hex = lt_att_content_hex ).
    CATCH cx_document_bcs INTO lx_document_bcs.
    ENDTRY.
    lo_send_request->set_document( lo_document ).
    DATA:
    lo_sender TYPE REF TO if_sender_bcs VALUE IS INITIAL,
    lo_send TYPE adr6-smtp_addr VALUE '[email protected]'. "Absender SENDER
    lo_sender = cl_cam_address_bcs=>create_internet_address( lo_send ).
    Set sender
    lo_send_request->set_sender(
    EXPORTING
    i_sender = lo_sender ).
    Create recipient
    DATA:
    lo_recipient type ref to if_recipient_bcs value is initial.
    Data:
    lo_rec TYPE adr6-smtp_addr VALUE '[email protected]'. " Empfänger Receiver
    lo_recipient = cl_cam_address_bcs=>create_internet_address( lo_rec ).
    *lo_recipient = cl_sapuser_bcs=>create( sy-uname ).
    Set recipient
    lo_send_request->add_recipient(
    EXPORTING
    i_recipient = lo_recipient
    i_express = 'X' ).
    *lo_send_request->add_recipient(
    *EXPORTING
    *i_recipient = lo_recipient
    *i_express = 'X' ).
    Send email
    DATA: lv_sent_to_all(1) TYPE c VALUE IS INITIAL.
    lo_send_request->send(
    EXPORTING
    i_with_error_screen = 'X'
    RECEIVING
    result = lv_sent_to_all ).
    COMMIT WORK.
    MESSAGE 'The payment form has been emailed to the Vendor' TYPE 'I'.

    Hi Kevin,
    Please try this code to send your mail, i wrote it and works well in many system.
    Take care if in your profile you got an e-mail adress define .
    Take care also of trnasaction SCOT customizing, are you able to send mail to e-mail adress ?
    Let me know if it's works.
    Best regards.
    <i>**----
    CLASS-DEFINITIONS
    DATA: send_request       TYPE REF TO cl_bcs.
    DATA: document           TYPE REF TO cl_document_bcs.
    DATA: sender             TYPE REF TO cl_sapuser_bcs.
    DATA: recipient          TYPE REF TO if_recipient_bcs.
    INTERNAL TABLES
    DATA: l_mailtext TYPE soli_tab.
    DATA: iaddsmtp   TYPE TABLE OF bapiadsmtp.
    DATA: ireturn    TYPE TABLE OF bapiret2.
    VARIABLES
    DATA: mail_line  LIKE LINE OF l_mailtext.
    DATA: bapiadsmtp         TYPE bapiadsmtp.
    DATA: subject    TYPE so_obj_des.
    DATA : att_subject TYPE so_obj_des.
    DATA : w_except TYPE REF TO cx_root .
    CONSTANTS : c_defmail TYPE ad_smtpadr VALUE
                     '[email protected]' .
    FIELD-SYMBOLS : <smtp> TYPE bapiadsmtp.
    *Convert the pdf given by function module into Binary .
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
      EXPORTING
        buffer     = output-pdf "PDF file from function module
      TABLES
        binary_tab = hexa.
    *Set subject of the mail
    subject = 'Exemple de PDF interactif'.
    Set text of the mail
    mail_line = 'Merci de remplir le formulaire et nous le retourner'.
    APPEND mail_line TO l_mailtext .
    Set the name of the attached document
    att_subject = 'Template du PDF'.
    TRY.
    Create persistent send request
        send_request = cl_bcs=>create_persistent( ).
    Get sender object
        sender = cl_sapuser_bcs=>create( sy-uname ).
    Add sender
        CALL METHOD send_request->set_sender
          EXPORTING
            i_sender = sender.
    Read the E-Mail address for the user
        CALL FUNCTION 'BAPI_USER_GET_DETAIL'
          EXPORTING
            username = sy-uname
          TABLES
            return   = ireturn
            addsmtp  = iaddsmtp.
        LOOP AT iaddsmtp ASSIGNING <smtp> WHERE std_no = 'X'.
          CLEAR bapiadsmtp.
          MOVE <smtp> TO bapiadsmtp.
        ENDLOOP.
        CASE bapiadsmtp-e_mail.
          WHEN space.
    No adress main for user, so send it to the default mail adress
            recipient =
         cl_cam_address_bcs=>create_internet_address( c_defmail ).
          WHEN OTHERS.
            recipient =
         cl_cam_address_bcs=>create_internet_address( bapiadsmtp-e_mail ).
        ENDCASE.
    Add recipient with its respective attributes to send request
        CALL METHOD send_request->add_recipient
          EXPORTING
            i_recipient  = recipient
            i_express    = 'X'
            i_copy       = space
            i_blind_copy = space
            i_no_forward = space.
    Set that you don't need a Return Status E-mail
        CALL METHOD send_request->set_status_attributes
          EXPORTING
            i_requested_status = 'E'
            i_status_mail      = 'E'.
    set send immediately flag
        send_request->set_send_immediately( 'X' ).
    *Build Document
        document = cl_document_bcs=>create_document(
                            i_type    = 'RAW'
                            i_text    = l_mailtext
                            i_subject = subject ).
        add attachment to document
        CALL METHOD document->add_attachment
          EXPORTING
            i_attachment_type    = 'PDF'
            i_attachment_subject = att_subject
            i_att_content_hex    = hexa.
    Add document to send request
        CALL METHOD send_request->set_document( document ).
    Send document
        CALL METHOD send_request->send( ).
        COMMIT WORK.
      CATCH cx_send_req_bcs INTO w_except.
      CATCH cx_address_bcs INTO w_except.
      CATCH cx_document_bcs INTO w_except.
    ENDTRY.</i>

  • Save an image from interactive form to R/3 system table

    Hi to all,
    my scenario is this: Web AS 7.0 (probably patched to the last available patch), NWDS 7.0 and, at the moment, a 4.6c R/3 backend system (within some months we will upgrade to ECC 6.0). I have an online interactive form with some input fields and a user, logged in, fills these fields and pressing the "Submit to SAP" button will save the datas to a custom table on 4.6c backend. All this is simple and is working, but my problem is that one of these fields is an image. The purpose is that the user click on the image field and load an image from local PC and then, pressing submit to SAP button, will save the image on the custom table.
    How can I make this? Which kind of context I have to bind to the image field? I have to add a java script/form calc code to image field? And to backend side, how can I do?
    Thank you very much in advance,
    Enrico

    Hi,
    In your forms you got the image or a link to the image ? If it's the image the field is define as an XSTRING is supposed. If yes you can add it easily in a database table.
    If it's a link, your SAP system ( 4.6 C ) need to the the repository where the image is and then you can add it in the database.If you SAP system doesn't see the repository it's impossible to do so.
    Hope this help you.
    Best regards

  • Call a user defined method in web dynpro from interactive forms

    Hi All,
    how to call a user defined method in web dynpro java, when a selecting value from drop down list which is in interactive forms by adobe
    thanks.
    Edited by: venkat99 on May 24, 2010 4:52 PM

    Well, you can use F4 help, of course, check here: http://help.sap.com/saphelp_nw70ehp1/helpdata/en/48/a1900622ec062be10000000a42189d/frameset.htm
    You need to select the value first and then use the submit button, which is mapped to the WD action submit (you have to set this up in WD designer!!). To use the submit button for more actions, you need to use something like a hidden field, where the value is set according to the action you want to do with your submit button. The submit sends this value back to WD, where you can switch the program code according to the value.
    Otto
    p.s.: and maybe this blog can help: /people/shruti.rathour/blog/2008/02/07/uploading-sap-interactive-form-on-the-abap-webdynpro-view

  • Adaptive RFC - WD Java - Display Smartform in Interactive Form (PDF)

    Hi everyone, i need your help. I get data type xstring from my backend function module. This data will use to fill property PDF Source from my Interactive Form UI Element in my iView. But before i get this data, my backend function module throw exception like this :
    <b>"com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException: Please maintain an output device in your user master data., error key: RFC_ERROR_SYSTEM_FAILURE"</b>
    And The print stack trace :
    <b>com.sap.aii.proxy.framework.core.BaseProxyException: Please maintain an output device in your user master data., error key: RFC_ERROR_SYSTEM_FAILURE
        at com.sap.aii.proxy.framework.core.AbstractProxy.send$(AbstractProxy.java:150)
        at com.cnooc.performancemanagementsystem.model.getappraiseedetail.GetAppraiseeDetail.z_Hr_Pms_Display_Appr_Form(GetAppraiseeDetail.java:196)
        at com.cnooc.performancemanagementsystem.model.getappraiseedetail.Z_Hr_Pms_Display_Appr_Form_Input.doExecute(Z_Hr_Pms_Display_Appr_Form_Input.java:137)
        at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClassExecutable.execute(DynamicRFCModelClassExecutable.java:92)
        at com.cnooc.performancemanagementsystem.Core.executeZ_Hr_Pms_Display_ApprForm(Core.java:1083)
    </b>
    I have search in this forum, but i cannot find similiar case. I suspect if the size of xstring (byte[] in Java) is too big (approximately 8 MB), is this the cause i get the exception ?
    My code in custom controller like this :
    <b> public void executeZ_Hr_Pms_Display_ApprForm( )
        //@@begin executeZ_Hr_Pms_Display_ApprForm()
        GetAppraiseeDetail model = (GetAppraiseeDetail)WDModelFactory.getModelInstance(GetAppraiseeDetail.class);
        Z_Hr_Pms_Display_Appr_Form_Input inputDisplay = new Z_Hr_Pms_Display_Appr_Form_Input();
        wdContext.nodeDisplaySmartForm().bind(inputDisplay);
        Zappraisal_Param_Struc.Zappraisal_Param_Struc_List listForm = new Zappraisal_Param_Struc.Zappraisal_Param_Struc_List();
         Zappraisal_Param_Struc elementForm = new Zappraisal_Param_Struc();
         elementForm.setPernr("20071000");
         elementForm.setBegda("20070101");
         elementForm.setEndda("99991231");
         elementForm.setOrgeh("");
         elementForm.setPlans("");
         elementForm.setStell("");
         elementForm.setEname("");
         elementForm.setPhase("C");
         elementForm.setAtype("A");
         elementForm.setSpras("EN");
         listForm.addZappraisal_Param_Struc(elementForm);
         inputDisplay.setT_Appraisal_Param(listForm);
         wdContext.currentDisplaySmartFormElement().setP_Caller(" ");
         wdContext.currentDisplaySmartFormElement().setP_Langu("E");
         wdContext.currentDisplaySmartFormElement().setP_Type("A");
        try
              wdContext.currentDisplaySmartFormElement().modelObject().execute();
         catch(WDDynamicRFCExecuteException e)
              logger.traceThrowableT( Severity.ERROR, "executeZ_Hr_Pms_Display_ApprForm( )", "ERROR", e );
              model.disconnectIfAlive();
              e.printStackTrace();
              throw new FeedbackException( e );
         catch(WDRuntimeException e1)
              logger.traceThrowableT( Severity.ERROR, "executeZ_Hr_Pms_Display_ApprForm( )", "ERROR", e1 );
              model.disconnectIfAlive();
              throw new FeedbackException( e1 );
         wdContext.nodeReturnDisplayForm().invalidate();     
         wdContext.nodeOutputDisplayForm().invalidate();
         model.disconnectIfAlive();
        //@@end
      }</b>
    My context like this
    <b>- DisplaySmartForm (model node)
    --OutputDisplayForm (model node)
    ---ReturnDisplayForm(model node)
    ---T_Appraisal_Param_Output(model node)
    ---T_PDF_Lines (model node)
    ---Bin_File (model value)
    ---P_Bin_Size (model node) --> display size of bin_file (xstring)
    --T_Appraisal_Param
    --P_Caller
    --P_Langu
    --P_Type
    </b>
    My parameter FM like this :
    <b>FUNCTION z_hr_pms_display_appr_form.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(P_CALLER) TYPE  CHAR1 DEFAULT 'X'
    *"     VALUE(P_LANGU) TYPE  SYLANGU DEFAULT SY-LANGU
    *"     VALUE(P_TYPE) TYPE  CHAR1 DEFAULT 'A'
    *"  EXPORTING
    *"     VALUE(RETURN) TYPE  BAPIRETURN
    *"     VALUE(BIN_FILE) TYPE  XSTRING
    *"     VALUE(P_BIN_SIZE) TYPE  I
    *"  TABLES
    *"      T_APPRAISAL_PARAM STRUCTURE  ZAPPRAISAL_PARAM_STRUC
    *"      T_PDF_LINES STRUCTURE  TLINE OPTIONAL
    </b>
    Please anyone, can you help me ? Thank you.
    Regards,
    Satria B

    Hi guys, I still not solve this problem. Strange that my RFC can call successfully when execute through R3 (SE37) but when i call this in my webdynpro application, i get exception "Please maintain output device" (this strange because i have set default output device in SU01 for user that execute this function in webdynpro)
        CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
          EXPORTING
            formname           = v_form_name
          IMPORTING
            fm_name            = v_funcname
          EXCEPTIONS
            no_form            = 1
            no_function_module = 2
            OTHERS             = 3.
        IF sy-subrc <> 0.
          CALL FUNCTION 'BALW_BAPIRETURN_GET'
            EXPORTING
              type       = 'E'
              cl         = 'ZH'
              number     = '036'
            IMPORTING
              bapireturn = return.
          EXIT.
        ENDIF.
        "Data used only by stream creation.
        DATA: ctr_param TYPE ssfctrlop,
              out_opt   TYPE ssfcompop,
              out_info  TYPE ssfcrescl,
              lt_pdf_lines TYPE STANDARD TABLE OF tline.
        ctr_param-no_dialog = 'X'.
        ctr_param-preview   = space.
        ctr_param-getotf    = 'X'.
               out_opt-tdnoprev = 'X'.
        out_opt-tddest = 'JKT018MISLJB2-01'.
        CALL FUNCTION v_funcname
             EXPORTING
                    ARCHIVE_INDEX              =
                    ARCHIVE_INDEX_TAB          =
                    ARCHIVE_PARAMETERS         =
              control_parameters         = ctr_param
                    MAIL_APPL_OBJ              =
                    MAIL_RECIPIENT             =
                    MAIL_SENDER                =
              output_options             = out_opt
                    USER_SETTINGS              = 'X'
             v_year                        = v_year
             v_ename                       = v_ename
             v_pernr                       = v_pernr
             v_position                    = v_position
             v_department                  = v_department
             v_jobfam                      = v_jobfam
             v_last_promotion              = v_last_promotion
             v_appr_no                     = v_appr_no
             v_appr_nm                     = v_appr_nm
             v_evmy                        = v_evmy
             v_evey                        = v_evey
             v_evcc                        = v_evcc
             v_evmc                        = v_evmc
             v_evjf                        = v_evjf
             v_eeio                        = v_eeio
             v_eent                        = v_eent
             v_eest                        = v_eest
             v_eetd                        = v_eetd
             v_ka_score                    = v_ka_score
             v_ka_weight                   = v_ka_weight
             v_cc_score                    = v_cc_score
             v_mc_score                    = v_mc_score
             v_jf_score                    = v_jf_score
             v_weight                      = v_weight
             v_tot_score                   = v_tot_score
             v_cc_subtotal                 = v_cc_subtotal
             v_mc_subtotal                 = v_mc_subtotal
             v_jf_subtotal                 = v_jf_subtotal
             ls_competency_cc_form1        = ls_competency_cc_form1
             ls_competency_cc_form2        = ls_competency_cc_form2
             ls_competency_cc_form3        = ls_competency_cc_form3
             ls_competency_cc_form4        = ls_competency_cc_form4
             ls_competency_cc_form5        = ls_competency_cc_form5
             ls_competency_cc_form6        = ls_competency_cc_form6
             ls_competency_cc_form7        = ls_competency_cc_form7
             ls_competency_mc_form1        = ls_competency_mc_form1
             ls_competency_mc_form2        = ls_competency_mc_form2
             ls_competency_mc_form3        = ls_competency_mc_form3
             ls_competency_jf_form1        = ls_competency_jf_form1
             ls_competency_jf_form2        = ls_competency_jf_form2
             ls_competency_jf_form3        = ls_competency_jf_form3
         IMPORTING
                  document_output_info       =
           job_output_info            = out_info
                  JOB_OUTPUT_OPTIONS         =
          TABLES
            t_emp_strength        = lt_emp_strength
            t_emp_imprv_opp       = lt_emp_imprv_opp
            t_train_dev_need      = lt_train_dev_need
            t_emp_notes           = lt_emp_notes
            t_key_acct            = lt_key_acct
            t_evmy                = lt_evmy
            t_evey                = lt_evey
            t_competency          = lt_competency
         EXCEPTIONS
           formatting_error           = 1
           internal_error             = 2
           send_error                 = 3
           user_canceled              = 4
           OTHERS                     = 5.
        IF sy-subrc <> 0.
          DATA: v_message1 TYPE SY-MSGV1,
                v_message2 TYPE SY-MSGV2,
                v_message3 TYPE SY-MSGV3,
                v_message4 TYPE SY-MSGV4.
    <b>     v_message1 = sy-msgid.
          v_message2 = sy-msgno.
          v_message3 = v_department.
          v_message4 = v_jobfam.
          CALL FUNCTION 'BALW_BAPIRETURN_GET'
            EXPORTING
              type       = 'E'
              cl         = 'ZH'
              number     = '000'
              par1       = v_message1
              par2       = v_message2
              par3       = v_message3
              par4       = v_message4
             IMPORTING
              bapireturn = return.
          EXIT.
        ENDIF.</b>
    When i print this bapi_return message in my iview,I get this <b>SSFCOMPOSER 010</b> which is "Please maintain output device" (SE91).
    Can anyone help me ?
    Thank you and Regards,
    Satria B

  • 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.

  • 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 more

    Hi 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.

  • How to remove javascript from a form?

    Because some users have javascript disabled in their Acrobat readers I’d like to remove all javascript from a pdf-form I have so that the users with js disable don’t get the dialog every time opening a file. As far as I know there’s no need for javascript on the page. How do I disable or remove js from a pdf-form in Adobe Livecycle Designer ES 8.2 ? Thanks!

    Thanks Paul! I had not noticed that there was more to the script editor than met the eye (the resize thing) Here is a picture of what I found.
    I followed your instructions and deleted the lines with line numbers. Now when I saved and re-opened the document my “Events with Scripts” view is completely empty. Still when I open the document in Reader it says “This document contains JavaScripts. Do you want to enable JavaScripts from now on? The document may not behave correctly if they’re disabled”.
    Any ideas what to do? When I select “Show all events” there’s a lot of lines with (JavaScript, client) after them.. could this have something to do with it?
    - Janne

  • Remove Attachments from Leopard Mail does not remove attachment from .emix

    Every day I back up my mail (and other items) to an external hard drive using an Automator workflow, in order that I can synchronize mail on my work and home Macs. In order to make this process as quick as possible, I routinely remove attachments from all mail messages once I have saved them to where they need to go on my hard drive.
    I have noticed that since upgrading to Leopard (archive and install), the size of the mail folder which I back up (user>library>mail) is getting significantly bigger every day, despite removing all attachments. Upon investigation it seems that although the attachment has been removed from the mail message, the attachment is still in it's associated .emix file (e.g. user>library>mail>POP???mailaccountfolder>INBOX.mbox>messages>?????.emix - if this email contained a 5mb attachment which was removed using mail>message>remove attachments, the .emix file will still be 5mb).
    Anyone else experiencing this problem? know a workaround? It didn't happen with mail in 10.4!

    I am not sure when I will get the chance to test this -- maybe this afternoon. But I had not understood that what you called original continued to have the attachments. If so, this strongly suggests to me that it indeed may be the way Gmail maintains the All Mail folder that is causing this. See:
    http://mail.google.com/support/bin/answer.py?hl=en&answer=6581
    If there is a setting to help this, it will have to be one that is selected in the Settings webpage of Gmail, I suspect.
    Ernie

  • Saving values into table from Interactive Form

    Hallo together,
    iam trying to do the example "Include Tables" (SAP Interactive Forms by Adobe - Galileo Press).
    It works, but not as described. When i want to change data in the interactive_forms ui element and press the webdynpro native button send, the value at the webdynpro table does not change. When i change the value at the webdynpro table and press the send button at the form or change the line at the webdynpro, the value in the adobe formular changes too. Thats one problem.
    The other problem is that i want to save the changed/added data from the formular at the database. What to do? The form layout is "ZCI Layout" and i added the script:
    DO NOT MODIFY THE CODE BEYOND THIS POINT - 800.20070708051308.406522.403406 - ContainerFoundation_JS
    I also added this into "wddomodifyview":
    METHOD wddomodifyview .
      DATA: lr_interactive_form TYPE REF TO cl_wd_interactive_form,
                 lr_method_handler TYPE REF TO if_wd_iactive_form_method_hndl.
      CHECK first_time = abap_true.
      lr_interactive_form ?= view->get_element( 'FORM' ).
      lr_method_handler ?= lr_interactive_form->_method_handler.
      lr_method_handler->set_legacy_editing_enabled( abap_true ).
    ENDMETHOD.
    I selected also:
    execute at: "Server and Client"
    I dont know what to do anymore.
    Best regards
    Philip

    Hi,
    To make an input enabled table. I would suggest to use TABLE element from the PDF library and then binding the columns from your context.
    Step 1: Library -> Standard ->Table
    Select create using assistance.
    Select body rows vary depending on data .
    Select number of Columns in your case it will be 4.
    Then proceed further and finish as per your need.
    Step 2:
    Select a table Column .
    Select Pallets->Object then chnage the cell type from Text to text field.
    Then click on binding tab and bind it to the respective field from hierarchy.
    Select upgrade the following properties radio button and check only "default value" option.
    This will create binding something like this $record.SCARR.DATA[*].CARRID
    Follow this for all other columns.
    Step 3:
    Now create a button in the View holding your form(you can also use SUBMIT button of form). On action event of this button right the following code to get all the changed values from Table.
    data lt_scarr type wd_this->elements_scarr.
      call method lo_nd_scarr->get_static_attributes_table
        importing
          table = lt_scarr.
    LT_SCARR will contain all the new values from Form. Then use this table to update ur database table.
    Thanks,
    Abhishek

  • Java Scrpting for adobe interactive forms !!

    Hi All
             I have just started to work on adobe interactive forms. but for that i want to know some coding principals of java scrpts. For example if I want to do some eventing on a button or on a radiobutton and get the inputs filled in interactive form back to web dynpro application .Also please sugest me which one is better , I mean whether I should go for  java scrpts or Form calc
    Regards
    Abhay

    Hello,
    On the menu, goto "Getting started " in the Adobe Life cycle designer, there you get information on events, java script and form calc.
    Hope this helps.
    Best Regards,
    Saujanya

  • Brining data from Interactive Form to Web Dynpro Context

    Hi All,
             i have a dynamic table in interactive form. The table fields are binded to a context attributes.
         i have created the elements for the context in the weddynpro and when i fill the table in the interactive form and click SubmittoSAP button, it fetches only the first row of the table and for other rows it shows null.
    Can some one help on this?
    Thanks
    Gopal

    Hi,
    Wat is the PDF Mode property u have given?
    Try generate PDF
    GS

  • Need Java API for Adobe interactive forms

    Hi Gurus,
    Anybody help me to write JAVA code for Validation, interact to BAPI or RFC of R/3, mail system and etc... respective of Adobe elements.
    Is there any possible to write ABAP code in NetWeaver Development Studio instead of JAVA. Because I am Quit comfortable to use ABAP code.
    Best regards
    Ramana

    Hi,
    Why dont you check this SDN Contribution for your Simple Validations using Java Script and HTMLB...
    <i>https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/94e976d3-0801-0010-92a0-c0725f115860</i>
    Also, please check the Exercises for JAVA WD Development in this link...
    <i>https://www.sdn.sap.com/irj/sdn/developerareas/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d</i>
    I dont think you can write ABAP coding in NWDS as per my knowledge...
    I hope this will help you...
    Regards,
    <i><b>Raja Sekhar</b></i>
    Do award us the marks in case of satisfactory reply
    Message was edited by: Raja Sekhar

Maybe you are looking for

  • Printing wirelessly on officejet pro 8600 plus

    I have recently purchased an e printer (Officejet pro 8600 plus).  I have set it up on my laptop as well as mobile phone.  I have printed photos from my phone, emails from my phone, emails from my laptop, word documents and excel documents from my la

  • Output proposed  from customer master

    Hello SDN! I could not find output info in customer master. Can I check with you if output can be proposed from the customer master when creating a sales order? Or the only way output is determined is from output determination procedure where custome

  • How to activate wastebasket service in KW?

    Hi Gurus, we are just starting to use KM - i found out, that we can use a waste basket, so that we first can transfer files which we would likt to delete to the wastebasket. Could you please explain me the functionality and also, how we can activate

  • GRC AC User Provisioning

    Hello all, I know we can create users for ECC, CRM, PI, Portal and others bases on NetWeaver through GRC AC standar solutions. But what about BO BI, DS, BPC? I read some posts about the subject but they were not clear as I need. Can I create users in

  • How can I turn off "tooltips"?

    I'm using the Mac and Dreamweaver CS6. Every time I use Dreamweaver to edit documents an annoying "tooltip" follows my cursor, telling me "Shift-drag to maintain column widths" and "Command-click to select cell." It's nearly as annoying as the "hold