Attachments in interactive form

Hi,
In online interactive form if I attache few files in the form and submit the data will these files will be appended in pdfsource of Interactive UI element? I have already tested pdfsource but there are no attachments only form with data is displaying..
Can some one give guide line how to acheive this?
I have gone through following weblogs,
/people/ashwini.kumar4/blog/2008/09/02/demystifying-attachments-in-pdf-in-wd-abap-application-part-ii
https://weblogs.sdn.sap.com/pub/wlg/8498. [original link is broken] [original link is broken] [original link is broken]
But mine is online scenario.
Regards,
Ravi

Hi Ravi,
Yes your attachments will be appeared in the PDF Content i.e., your Data source property contains it.
The entire PDF content will be stored in the Xstring format.
You need to get the attachments from that PDF content.
Then the code written in a FM in the very first blog needs to be used inorder to get the attachments seperately.
I am pasting the same code for your reference. I hope it helps you.
Regards,
Shashikanth. D
type-pools slis.
  Data: c_ads       type rfcdest value 'ADS'.
  data: l_fp          type ref to if_fp,
  l_pdfobj      type ref to if_fp_pdf_object,
  l_pdf         type xstring,
  l_fpex        type ref to cx_fp_runtime,
  l_layout      type slis_layout_alv.
Get FP reference.
  l_fp = cl_fp=>get_reference( ).
  try.
    Create PDF Object.
      l_pdfobj = l_fp->create_pdf_object( connection = c_ads ).
    Set document.
      l_pdfobj->set_document( pdfdata = p_content ).
    Set task to get attachments.
      l_pdfobj->set_task_getattachments( ).
    Execute, call ADS.
      l_pdfobj->execute( ).
    Get result.
      l_attachments = l_pdfobj->get_attachments( ).

Similar Messages

  • How to embed attachments in interactive form?

    Hi guys,
    current, customer wants to embed files(doc, exl or something like that) in adobe form,
    is it supported in interactive form? or which version of interactive form support?
    does that need a lot of coding?  any tutorial is available?
    thanks
    John

    Attachments
    http://eslifeline.wordpress.com/2009/04/06/adding-attachments-to-pdf-form/
    WD Java - removing attachment from interactive form
    Attachments for WDA form
    Re: Attachments with Adobe Interactive Forms in WDA
    Regards Otto
    p.s.: depends if you want the system to add/read/remove the attachments for you or you want the user to work with it, you can learn about both from the links above

  • Attachments added to the Interactive form is lost after submit

    Hi All,
    I have a scenario where the user can add attachments to the Interactive Form Online and click on Submit to archive the filled form. The problem is that i am not able to retrieve the attachments added to the form.
    The datasource of the ITF is bound to the View Context node and the pdfsource is bound to an attribute of XSTRING type.
    Here i am able to see the changed values of the Input fields in my context node. But, any attachments added is lost.
    How can i retrieve the attachments? I tries calling the Methods SET_TASK_GETATTACHMENTS and GET_ATTACHMENTS of PDF Objects but it always returns null.
    FYI,
    if i use file upload UI Element and upload an existing form with attachments then i am able to get the list of attachments by calling the Methods SET_TASK_GETATTACHMENTS and GET_ATTACHMENTS of PDF Objects before this PDF is displayed in the next view. (binding the XSTRING of FIle Upload UI to the PDFSOURCE of the ITF).
    Here also if i add some new attachments to the PDF and click on submit then these new docs are  lost.
    In short whenever i add attachments to the pdf dynamically via add attachment option after the PDF is displayed the new attachments are lost.
    Please let me know how to correct this.
    Thanks,
    Abhishek

    There is a default functionality provided by Adobe... If all your fields are field, you can not submit. It will prompt .. to fill the form.
    Only you have to mark those field as mandatory.
    So select the field -> Go to Object Pallet -> Value Tab -> select the type as User entered Required
    This will solve your problem.
    You can also customise the requirements through scripting language.
    cheers
    Satya

  • Transfer attachments and Digital Signatures,from a PDF, to Interactive Form

    Hi,
    I am developing an an application in WebDynpro Java.
    I have a requirement that a user A creates a new interactive form & fills some of the details, & then saves the form.
    User B then fetches the form & fills the remaining details.
    User A can add attachments & digitally sign the form(using digital signatures).
    When user A  saves the form, the application saves it in the JDT. The application fetches the pdf from the JDT & shows it to the user B.
    The problem is that, when the form is displayed to user B, i need to pass a variable(using context nodes) to the form, so that some of the properties(visibility,read-only,etc) of the UI elements(of the form) changes, depending on the variables' value.
    For this purpose, i need to use the Form for user B in ""UpdateDataInPdf" mode.
    But if i do this, then all the attachments, signatures saved in the pdf form(by user A), do not get transfered to the Interactive Form of User B!!
    How do i overcome this problem??
    I am using NW7.0 SP13.; Designer7.1, xACF is installed.

    Hi everyone,
    I solved this issue using the transferPDFDataIntoContext of the WDInteractiveFormHelper class.
    The AIF mode must be set to usePdf.
    I hope it will be useful.
    Regards,
    Mirco

  • Reading attachments from adobe interactive form

    Hi,
    My requirement is- vendor should fill all the detail in an offline interactive form and attach necessary documents in the form itself. How can i read the attachments from the form inside my program and how can i store it in SAP. I am using FM ' SMUM_XML_PARSE' to read all the data in the form.
    Best Regards,
    Tofan

    Hi Ali,
    Thank you for the reply. But i want to read the attachments which are attached inside the adobe forms.
    How to read the form and get all the data i know but i want to extract the attachments which are attached in the form and save it in sap.
    For example- in an adobe form customer is attaching the PAN copy, Registration certificate etc, how to read these attachment from the adobe form and store in sap?
    Regards.
    Tofan

  • UI Interactive form and attachments

    Hi friends,
    My WDA has UI Interactive form.
    At runtime User enters data into the form.
    Then WDA saves the form thru UI Interactive form property pdfSource.
    UI property pdfSource contains the whole form (data + template) in binary format.
    Adobe Reader has a capability of adding attachments to a form using Adobe toolbar "Attachments".
    I tried to add attachments at runtime.
    But they don't go into pdfSource.
    Where the attachments go?
    Is there a way to save Attachments programmatically?
    Thank you
    Tatyana

    Hi
    My friend is right, the attachments are there in the attachments attribute.
    Please refer to the standard report     FP_PDF_TEST_15
    You willl get the fair idea of the how the attchments are stored.
    Hope you find it helpful

  • Questions About Interactive Forms

    I have a project that reqires an application and background check authorization. I want to have these forms on my website as an interactive form that can be opened by a potential applicant, filled out on their computer and submitted back to me. I want to receive the completed application back in PDF form filled out and with a signature.
    What do I need with my website and background apps to make this happen. Do I need some type of server application to make this happen.
    Next, what are the accepted ways of having a document/application signed by an applicant and delivered to me digitally.
    Thanks

    George
    Thanks for the quick reply. If it's an e-mail would I receive the actual
    form used or just the content the applicant input. I would want the actual
    document with a signature. If storing on my server would it be the document
    and input if so that would be a better option so I could download and print
    out if needed.
    A digital signature field I would trust would be the way to go for us.
    Here's a synopsis of my needs.
    I am hiring guys to play the role of Santa and make phone calls to children
    at Christmas and I need a multi-part  application so I can have background
    checks run so I have an extensive multi-page application and contract plus
    background check authorization already designed in PDF form but this last
    year we had to e-mail it and wait for US Postal delivery of the completed
    application and I want a streamlined online way to handle the application
    and hiring process because I will have 75 - 100+ possible applicants this
    year.
    Barry Whitten
    PRIVILEGED & CONFIDENTIAL COMMUNICATION CONTAINING COPYRIGHTED INFORMATION
    This e-mail message (including any attachments) is proprietary or privileged
    and intended only for the named recipient(s).  It may contain material
    including photographs, designs and or illustrations that are covered under
    federal copyright laws and as such is privileged and confidential. Any
    photographic works, drawings, illustrations or files contained herein are
    the sole property of the sender and may not be used, either commercially or
    non-commercially nor distributed without senders written approval and full
    payment of any fees due.
    No one other than the named recipient(s) may read, copy, rely on, redirect,
    save or alter all or any part of the message, or any attachments, in any
    way.  If you have received this message in error, please Notify us
    immediately by return message so that we may arrange return of the
    document(s).
    This email was scanned for viruses prior to sending.

  • Check the attachments in PDF Form

    I am currently working on a offline interactive form wherein the requestor is supposed to attach a file to his pdf Form before submitting. Now my requirement is to check if there is an attachment with the form(offline) on the click of the submit button.
    If attachment is not there pop up an error messages "No attachements'.
    Help is greatly appreciated ...

    Hello
    var oObj = event.target;
    var fileAttachments = oObj.dataObjects;//dataObjects returns all dataObjects(attachments)in the pdf
    if(attachmentsList.length > 0) {  ... }
    also search at google, you´ll find a page by Mr. Cameron where you can find the whole attachments demo solution.
    Regards, Otto

  • Attachments in PCR form?

    Hi
    I have a question with regard to Attachments in Adobe Interactive forms in PCR scenarios of MSS.
    I was wondering if this feature is available on NW2004s SP10?
    I checked Markus Meisl post at
    Re: Adobe IF Attachments
    where they say it may be in SP11
    Is this feature scheduled to be available from NW2004s SP11 ? When is SP11 scheduled to be released?
    Is there any Document regarding this?
    Please provide me some information or link regarding this
    Thanks
    Regards
    Michael

    Yes,
    We do have to wait till SP11 is released.
    I dont think this feature is there in SP10.
    Let's wait and see.
    Regards
    <i><b>Raja Sekhar</b></i>

  • ABAP Webdynpro ADOBE interactive form

    Hi All,
    I have a problem when reading attachments from online adobe interactive form in Webdynpro ABAP.
    I have tried two options:
    Option1:
    Get FP reference.
    l_fp = cl_fp=>get_reference( ).
    try.
    Create PDF Object.
    l_pdfobj = l_fp->create_pdf_object( connection = 'ADS' ).
    Set document.
    l_pdfobj->set_document( pdfdata = lv_pdf ).
    Set task to get attachments.
    l_pdfobj->set_task_getattachments( ).
    Execute, call ADS.
    l_pdfobj->execute( ).
    Get result.
    l_attachments = l_pdfobj->get_attachments( ).
    CATCH cx_fp_runtime_system INTO exc.
    xslt_message = exc->get_text( ).
    ENDTRY.
    option 2: in wdomodify method
    DATA l_ifba TYPE REF TO cl_wd_interactive_form.
    l_ifba ?= view->get_element( 'IF_001' ).
    DATA l_form_method_handler TYPE REF TO IF_WD_IACTIVE_FORM_METHOD_HNDL.
    l_form_method_handler ?= l_ifba->_method_handler.
    DATA l_attachments TYPE tfpattachments.
    l_attachments = l_form_method_handler->get_attachments( ).
    Both options are not getting the attachments.
    Our SAP Netweaver version is 7 and ehp 4, ADS configured.
    If i save the pdf with attachments locally and then use the UI upload and read the attachments it works. But not when the interactive form is online and when i add attachments to it and click submit(where submit code is the option 1 code), it is not finding any attachments. I wonder whether pdfsource context stores the attachments or not.
    When i check the note, SAP say that attachments are supported from ehp2.
    What is that i am missing? Any direction would be good.
    In worst case i will do webdynpro screens for attachments maintenance, wanted to check with all experts before taking this option.
    Please someone answer.
    Thanks
    Anu

    >When i check the note, SAP say that attachments are supported from ehp2.
    That is correct.  Attachments are supported as of NetWeaver 7.0 Enhancement Package 2.
    >Our SAP Netweaver version is 7 and ehp 4, ADS configured.
    Not possible.  NetWeaver 7.0 Enhancement Package 4 doesn't even exist yet.  In fact 7.0 Enhancement Package 2 won't start ramp-up until December 20th. I think you are confusing your ERP Enhancement Package level with your NetWeaver Enhancement Package level.  I'm guessing that it is much more likely that you are on ERP 6.0 Enhancement Package 4.  This level of ERP actually runs on NetWeaver 7.0 Enhancement Package 1.

  • Adobe Interactive Forms - ADS Configuration

    Hello experts,
    I'm setting up my CE7.2 system to use Adobe Forms. Now I configged my ADSUser and tested it through WebService Navigator using com.adobe/AdobeDocumentServces_com.adobe_AdobeDocumentServicesVi. It was ok and received my version number.
    Now when I try to run my process, my process task (which is the Human Activity with the form) has the status Inactive. When I try "Resend form" I get an error. (see image below).
    Following image is of my log files with error's on my ReaderRights, and top error is based on the "Resend Form".
    http://i53.tinypic.com/iley36.jpg
    Q1: Would the only problem be the Credentials I need to request? Or am I missing something else..
    As I am a only an IT student, I'm looking into how I can request these credentials at the moment.
    Q2: According to http://help.sap.com/saphelp_nw73/helpdata/de/4b/95ae5426f26e83e10000000a421937/content.htm I would only need credentials when having an 'Interactive' form. How do I make a ViewOnly form then?
    Q3 Is it possible to have a step in your process which only sends a pdf with information and moves to the next process step automaticly without the need of a 'Submit' in the pdf? I'm thinking of a Mail Notification Activity here.
    Thanks in advance.

    Hi Wouter,
    if you only want to send a PDF without any user response, you do not need to use a human activity.
    I think the notification activity doesn't support attachments, so you would need to write a piece of java code to send out the PDF via mail, and then call it from the process via an automated activity.
    Regards,
    Christian

  • Can I link an Adobe Interactive Form to a business transaction type

    Hi
    Is there a way to link an Adobe Interactive Form to a business transaction type?
    We want to make sure that any AIF attachments sent to Outlook for our Sales Managers are related to a specific activity.
    Cheers
    Declan

    i don't think this is possible.
    you can create documante templete profiles in spro>crm>basic functions>content management>define document template profile
    and in spro>crm>transactions>Assign Transaction Types to Templates for Folder and Doc. Template profiles you can assign folder and document profiles to specific transaction types
    But unfortunately this works only for folders, but not for document tempaltes. at least i did not find the solution to link document template to document template profile

  • How to read attachment from adobe interactive form

    Hi,
    My requirement is- vendor should fill all the detail in an offline interactive form and attach necessary documents in the form itself. How can i read the attachments from the form inside my program and how can i store it in SAP. I am using FM ' SMUM_XML_PARSE' to read all the data in the form.
    Best Regards,
    Tofan

    mailForm
    Parameters: bUI, cTo, [cCc], [cBcc], [cSubject], [cMsgBody]
    Returns: nothing
    This method exports the form data and mails the resulting FDF file as an attachment to all recipients,
    with or without user interaction depending on the value of  bUI.
    If it is set to true then the rest of the parameters are used to seed the compose new message window that is displayed to the user.
    If bUI is set to false, the cTo parameter is required and all others are optional.
    You must use a semicolon u201C;u201D to separate multiple recipients in cTo, cCc, cBcc parameters.
    The length limit for cSubject and cMsgBody is 64k bytes.
    Example:
    /* This will pop up the compose new message window */
    this.mailForm(true);
    /* This will send out the mail with the attached FDF file to fun1 @ fun . com and fun2 @ fun . com */
    this.mailForm(false, "fun1 @ fun . com; fun2 @ fun . com", "", "", "This is the subject", "This is the body of the mail.");
    Note:
    This is a Windows-only feature. In addition, the client machine must have its
    default mail program configured to be MAPI enabled in order to use this method.
    I had to change the code:
    instead of this.mailDoc :
    var myDoc = event.target;
    myDoc.mailDoc(false, "fun1 @ fun . com; fun2 @ fun . com", "", "", "This is the subject", "This is the body of the mail." );       
    But the outlook new message window still opens...
    Any Idea's?
    Eran

  • 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

  • Interactive  Form  Attach File

    Hi All....,
    How can I attach a file inside form and send via email ?
    Thanks in Advance.
    Best Regards,
    Sheetal.

    Hi Shital,
    If you dont want to use a program to attach file, please see the blog:
    /people/amit.rai4/blog/2008/02/01/demystifying-attachments-with-sap-interactive-forms
    Or, you can refer FP_PDF_TEST_16 program in SAP.
    Hope this helps,
    Amit

Maybe you are looking for