Automate the download interactive form

Hi all,
I have designed a PDF file in tcode: SFP in order to take into account a table of data ..
In the other side of my WEBDYNPRO application i display this table data in an  ALV
and what i want is :
When the user clik on a button, i want to automate the download of
this file :(with taking into account its template + DATA issues from the ALV) .
otherwise : to display the pop up of downloading the PDF file
I do not want to navigate to an other VIEW that contain an interractive form which contain the template of the PDF
So please if you have any idea, that will be helpful
Best regards

It solved now !
Thank you Otto .
1) note the execution FP_FUNCTION_MODULE_NAME and pass the form name to it. The parameter e_funcname will contain the name of the generated function module name fm_name.
2) call function 'FP_JOB_OPEN'
changing
ie_outputparams = fp_outputparams
exceptions
cancel = 1
usage_error = 2
system_error = 3
internal_error = 4
others = 5.
3) call function fm_name
exporting
/1bcdwb/docparams = fp_docparams " not obligatory
Z_DATA = wa_vndbnk  " check the fm_name parametters
importing
/1BCDWB/FORMOUTPUT = fp_formoutput
exceptions
usage_error = 1
system_error = 2
internal_error = 3
others = 4.
4)  Close spool job
call function 'FP_JOB_CLOSE'
exceptions
usage_error = 1
system_error = 2
internal_error = 3
others = 4.
5) finally call
  DATA pdf_stream TYPE fpcontent.
  pdf_stream = fp_form_out-pdf.
  cl_wd_runtime_services=>attach_file_to_response(
  i_filename      = 'PDF.pdf'
  i_content       = pdf_stream
  i_mime_type   =   '/Desktop').

Similar Messages

  • How to binnding the data in the adobe interactive forms for making a table?

    Hi, experts,
    Function:
    Through the sharing context node between adobe interactive form and a WDA for ABAP, display the data of the sflight_node in the ADOBE.
    version:
    Acrobat Reader 8.1.0
    currently both of the SAP-ABA and SAP-BASIS SP level: 9
    ADS : Successful.
    The following is my action:
    1.     Create a interface (Z_SFLIGHT_INTF) with a attribute node (SFLIGHT_NODE) that type is "sflight"  using the transaction code "sfp"
    2.     Create a form (Z_SFLIGHT_FORM) using the transaction code "sfp" with the interface Z_SFLIGHT_INTF.
    3.     Trag the sflight_node in the Z_SFLIGHT_INTF to the form( Z_SFLIGHT_FORM).
    4.     Open the layout tab in the form(Z_SFLIGHT_FORM), and create a table(table1). Click the table created just now, select the binding tab in the object tab, and in the Default Binding, select the SFLIGHT_NODE under the Z_SFLIGHT_FORM.
    Problem 1:
    Do you tell me whether is right for binding the context SFLIGHT_NODE using this way? If bind 3 context attributes in the sflight, how can I do it?
    5.     Create a WDA for abap (ZZ_02_SFLIGHT), and create a view(MAINVIEW) using transaction code "se80" in the sap-gui with adobe interactive form. Set the templatesource(Z_SFLIGHT_FORM) in the  adobe interactive form properties and saved, and then, datasource is "MAINVIEW_Z_SFLIGHT_FORM" automatically.
    6.     But I only found the attribute SFLIGHT_NODE under the context node(Z_SFLIGHT_NODE), and  I don't found the NODE ( SFLIGHT_NODE ) context in the context tab in the WDA for abap so that I don't set data to the context NODE (SFLIGHT_NODE).
    Problem 2:
    Do you tell me what can I do it so that I get the node SFLIGHT_NODE rather than attribute in the WDA for setting the data to the CONTEXT NODE (SFLIGHT_NODE)?
    Thanks a lot.
    Best regards,
    Tao

    Hi, experts,
    You can reply back to me via e-mail if you think we should discuss this internally at [email protected] or [email protected]
    Thanks a lot.
    Best regards,
    tao

  • Drop down in dynamic table in the Adobe Interactive Form (Web dynpro ABAP)

    Hi All,
    I have scenario use drop down in dynamic table in the adobe interactive form (Using the button the dynamic table row will be increasing and decreasing).
    Assume I Add five rows dynamically in the dynamic table. The Last column contains Drop down.
    I have button in the adobe form.
    Button Name = u201CSAVEu201D
    Button type    = SAP Submit button (Native type u2013 I am Using ZCI).
    While clicking save button, I need to store the dynamic table datau2019s to back end system. I can able to store the data to back end system. After form data getting saved those particular values need to display in the adobe form. 
    Here I am facing a problem.
    I cannot able to view as a default value in the drop down, which I have selected some values after save operation I am not getting any values in the drop down as a default.
    Example:
    The dynamic table contains 5 rows (Each and every row Drop down contains one to ten values).
    1)     I have selected second value in the Drop down (ROW1)
    2)     I have selected fourth value in the Drop down (ROW2)
    3)     I have selected fifth value in the Drop down (ROW3)
    4)     I have selected seventh value in the Drop down (ROW4)
    5)     I have selected third value in the Drop down (ROW5)
    I press the save button that particular Drop down value gets saved in back end system and that particular values want display in the Drop down as a default value.
    How to resolve this problem.
    Regards,
    Boopathi M

    Hi,
    Solve the problem .
    I have created the New node for dropdown. also i have one node already for table.
    The new node i bind to dropdown, the table same for table.
    Its working fine
    Boopathi M

  • Automate the database and forms / reports services to start on windows 2008 server R2 startup

    Dear memebers,
    I want to automate the database and forms / reports services to start on windows 2008 server R2 startup. whats the possibilities and which method is the best?
    Regards:

    Hi,
    type services.msc at run
    then check for Oracle Services--> Right Click-->Properties-->Startup type-->start automatic
    HTH

  • This program was created to automate the download of joblogs and spools for

    Hi All,
    please suggest me the ways through which i can create a  program  to automate the download of joblogs and spools for the ARCHIVE process.
    thanks
    Ankit

    Please select all open PO according to the following conditions - select if the PO satisfies any one of the below conditions:
    1) Open Quantity is less than 10% of total quantity
    2) Delivery date is more than 3 months in the past
    3) Delivery completed indicator is set and delivery date is more than 6 months in the past.
    Then a manual decision is required. Best is to develop a report which will display the list and user can select and block from the report itself.
    Also, the 10%, 3 months, etc values are depending on the customer. You may want to modify these as suitable.
    Regards,
    Lakshman

  • On Mac, why won't the downloaded PDF form SUBMIT after being filled out?

    On Mac, why won't the downloaded PDF form SUBMIT after being filled out?
    Thank you for the help.
    Kind regards
    Ryan Kohler

    Hi;
    This FAQ should describe the issue - you need to be using Adobe Reader (free) or Adobe Acrobat to fill out the PDF, Preview on the Mac breaks the PDF so it is no longer usable: http://forums.adobe.com/docs/DOC-2653
    Thanks,
    Josh

  • How to hide a fieldsuFF08elementsuFF09 in the Adobe Interactive form ?....urgent...

    Hi Experts,
    I'm working on Adobe Interactive form developed in WDP ABAP.( I have successfully config the ADS in my server.)
    Action:
    1. Create two view -
    first_view and second_view in the WDP ABAP..
    2. In the first_view, there are a input field( named "elements_number") and a button(named "create_button") .
    3. In the second_view, there is Adobe Interactive form ( named "adobe_form" ). There are 3 text_fields elements in the Adobe Interactive form.
    4. Run the WDP ABAP: first_view is opened. Type a number ex."2" in the "elements_number", click the "create_button".
    5. The second_view is opened.
    6. The "adobe_form" is occured.
    7. There are 2 text_fields displayed in the "adobe_form" and 1 text_field hiden in the "adobe_form".
    Steps (1) ~ (6), I have completed, but I don't know how to implement the step (7).
    Please give me some hint on this. I try to use the CL_WD_ADOBE_SERVICE, but I didn't found any examples. Do you give me some ways to implement the function? Thanks a lot.
    Thank you very much.
    Thanks,
    Tao

    Hello Wang,
    You need to transfer some additional information in an unused data field. Then, by using scripting within the form template, you can hide the input fields in question.
    Best regards,
    Thomas

  • How to create a dynamic fields in the Adobe Interactive form ?....urgent...

    Hi Experts,
    I'm working on Adobe Interactive form developed in WDP ABAP.( I have successfully config the ADS in my server.)
    Action:
    1. Create two view -
    first_view and second_view in the WDP ABAP..
    2. In the first_view, there are a input field( named "elements_number") and  a button(named "create_button") .
    3. In the second_view, there is Adobe Interactive form ( named "adobe_form" ).
    4. Run the WDP ABAP: first_view is opened. Type a number ex."3" in the "elements_number", click the "create_button".
    5. The second_view is opened.
    6. The "adobe_form" is occured.
    7. There are 3 text_fields in the "adobe_form".
    Steps (1) ~ (6), I have completed, but I don't know how to implement the step (7).
    Please give me some hint on this. I try to use the CL_WD_ADOBE_SERVICE, but I didn't found any examples.  Do you give me some ways to implement the function? Thanks a lot.
    Thank you very much.
    Thanks,
    Tao

    Hi Philippe,
    Thank you very much in advance.
    Do you tell me how to hide elements in the "adobe_form" in the WDP ABAP? How can I get the elements attributes in the "adobe_form" from the method WDDOMODIFY of the second_view  in the WDP ABAP.
    Please give me some hints on this. Do you give me some ways to implement functions( hide elements and  get elements's attributes)? Thanks a lot.
    Thank you very much.
    Thanks,
    Tao

  • Changing the default file name while saving the PDF interactive form

    Hi All,
    I am generating an Interactive PDF form using webdynpro, but when I try to save the PDF to my local machine the default file name comes as "<b>unknown.pdf</b>" so I have to manually go and enter the name before saving it.
    Is there any way to change this default name so that I don't have to manually edit the file name each time when I want to save the generated PDF interactive form?
    Please reply soon.
    Thanks in advance!

    I am running into the same issue. Setting the desname parameter (e.g. desname=temp.pdf) doesn't have any effect. Has anyone found a solution to this?
    Thanks,
    Brian

  • About the non interactive form ?

    i want to use ads forms to print some report  and it has no interactive action ,and when i print this form ,it report to me that i must upgrade my acrobat  reader to 7 ,
    if i donot need  interactive  form ,must i upgrade my acrobat ?

    You do not need to upgrade to the latest version (although it is recommended), but you will not be able to suppress the Reader pop-ups. This means you will always have to click those away. This is also documented in SAP Note <a href="http://service.sap.com/sap/support/notes/834573">834573</a>.
    Cheers,
    Markus

  • How File Path will be decided for downloading Interactive form

    Hi,
    I have error like...
    java.io.FileNotFoundException: temp\webdynpro\web\local\DynPro6\Components\com.dynpro.DynPro6\PurchaseRequisition.pdf (The system cannot find the path specified)
    Can any busy suggest how the path will be decided for local and server ..
    Please helpme in that,
    Regards,
    Gurprit Bhatia
    Message was edited by:
            GURPRIT BHATIA
    Message was edited by:
            GURPRIT BHATIA
    Message was edited by:
            GURPRIT BHATIA

    Hi,
    Do review this Thread, I think this will help you.
    [Adobe Interactive Forms / Web Services - Connection query|Adobe Interactive Forms / Web Services - Connection query;
    Regards
    Pradeep Goli

  • Reagarding saving and sending the adobe interactive form as non interactive

    Hi ,
              I am trying to send the interactive adobe form as non-interactive form  through email.The interactive form size is very large because of the interactivity.
    Can anybody suggest how to do this.
    Regards,
    Debasis

    Dear Antony,
    Thanks for the reply.
           I got you but can you pls guide me how to go about it.
    I need to send the email while submiting the form.So when and how i will be mapping each data node /attibutes of the main form with the intermediate form.My interactive form is of 30 pages and it may grow upto 40 pages.My response is with the to the main form where i am showing the success message.
    Regards,
    Debasis Nayak

  • Sending the adobe interactive form as non-interactive form through email

    Hi ,
              I am trying to send the interactive adobe form as non-interactive form  through email.The interactive form size is very large because of the interactivity.
    Can anybody suggest how to do this.
    Regards,
    Debasis

    Dear Antony,
    Thanks for the reply.
           I got you but can you pls guide me how to go about it.
    I need to send the email while submiting the form.So when and how i will be mapping each data node /attibutes of the main form with the intermediate form.My interactive form is of 30 pages and it may grow upto 40 pages.My response is with the to the main form where i am showing the success message.
    Regards,
    Debasis Nayak

  • Download Interactive Form

    Hello!
    Can an Interactive Form be generated without displaying it?
    I want to ge hold of the pdfContent byte[], but don´t want to display the form.
    Thank you!
    Ilona Seifert

    Hi Ilona,
    You can try with the following:
    import com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.api.IWDPDFDocument;
    import com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.api.IWDPDFDocumentCreationContext;
    import com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.api.WDPDFDocumentFactory;
    import com.sap.tc.webdynpro.basesrvc.util.IOUtil;
    InputStream template = ... //your XDP file as an inputstream
    String xmlData = ... //business data you want to merge your form template with
    ByteArrayInputStream dataSourceInputStream = new ByteArrayInputStream(xmlData.getBytes());
    ByteArrayOutputStream dataSourceOutputStream = new ByteArrayOutputStream();
    ByteArrayOutputStream templateSourceOutputStream = new ByteArrayOutputStream();
    // convert InputStream to OutputStream
    IOUtil.write(template, templateSourceOutputStream);
    IOUtil.write(dataSourceInputStream,dataSourceOutputStream);
    IWDPDFDocumentCreationContext creationContext = WDPDFDocumentFactory.getDocumentHandler().getDocumentCreationContext();
    creationContext.setTemplate(templateSourceOutputStream);
    creationContext.setData(dataSourceOutputStream);
    creationContext.setDynamic(true);   //if you want to create dynamic interactive form
    IWDPDFDocument pdfDoc = creationContext.execute();
      // create the PDF and store it as ByteArrayInputStream
      InputStream pdfInputStream = pdfDoc.getPDFAsStream();
    Best Regards,
    Ferenc
    P.S.: If you use some older version and the "com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.api" package is not available for you, then you can do the same with the old "com.sap.tc.webdynpro.pdfobject.api" package

  • Automatic deployment of Interactive Forms through CBS and Transport Studio?

    Good evening!
    I just finished my last changes on my first Web Dynpro project and a local build and deployment worked without problems.
    Now, when I check in the changes into DTR, activate and release the files, then my changes on different web pages are displayed but now the Interactive Form that worked before is no longer generated and no error message can be found.
    We are currently using Netweaver 2004 on our development systems with Web AS 6.40 PatchLevel 108290.313 on AIX 5.3 as our development portal.
    So, could you tell me where I can find errors of the Adobe Document Service ? I think that the problem is somehow connected to the ADS, but I am absolutely unsure.
    Thank you for your answers and for your help.
    Regards,
    Sascha

    We actually didn't have a problem with the transport studio and CBS, it all had to do with the usage of different browsers on the development system (with IE) and our development portal (which I tested from my local computer with Firefox) ... the problem was once again sitting between keyboard and chair.

Maybe you are looking for

  • Submit statemet not creating spool in back ground

    Hi, My program works perfectly fine(creates spool) when I execute in foreground. But it doesn't create the spool when I execute in back ground. Pls help...         SUBMIT rkaep000                WITH p_tcode = 'KOB2'                WITH aufnr   IN r_

  • E-Mail format iPhone 5

    Is the e-mail format for iPhone 5 still as plain text...?

  • Command authorisation in 8.4 for object network

    Hi guys, I just tried to do a quick privilege level setup for a user to limit access to asa. User should be able to add nat's to configuration. ASA 8.4 is in question and trying the following does not seem to work: privilege configure level 3 command

  • How to Unassign a Configurable Material to Material in MRP3 View

    Hello All, Is there any way to Unassign a Configurable Material to Material in MRP3 View, the fieldl are greyed out. We accidentally assigned a Configurable Material to Material in MRP-3 View. Any Inputs would be of Great help. regards, BRN.

  • [Android] Prev button and close button in lock mode

    Hi Some improvements about the user interface on android devices When my mobile is blocked (Spotify running in the background ) there is not a prev button, only next button . Some times I want to listen a song again so I have to unlock my phone in or