Saving a adobe form Output to presentation server from webdynpro

Hi all
I have a webdynpro aplication, where on clicking a button  I want one adobe form  output to be downloaded
in pdf format to local server.
currently while clicking the button its calling the webdynpro application where pdf is integrated and its displayed
on the browser.
Instead of the display I want to download to presentation server on clicking of the same button ,
The layout type of the PDF component is  ZCI Layout and  interface is XML schema based interface.

With an XML based interface it is going to be much easier to display the form and then download it.  The user could choose the save from the Adobe Plug-In toolbar or you can get the XSTRING content of the PDF from the PDFSource Property of the InteractiveForm UI element.  With the XSTRING you can then, start a download with this content.  However PDFSource doesn't get populated until the InteractiveForm is visible on the screen.
If you want complete background rendering of the PDF, you would have to call the form interface and pass the data into it with the XML format.  Function Module based form interfaces are really much better suited to background calls because of their nice, flat and ABAP structure based interfaces.

Similar Messages

  • How to Programatically send adobe form output to Application Server?

    Has anyone got a program which calls adobe form function module and then dumps the output to App Server?

    used function 'ADS_WRITE_TO_FILE'

  • Adobe Form Layout is not loading from webdynpro

    Hi Experts,
    I am not getting the layout for Adobe forms from webdynpro.If i click the layout tab an error is poping:
    "Error while opening the document"-Message no.SOFFICEINTEGRATION143
    When i checked the diagnosis it is stated as:An error occured in the desktop application while opening a document.
    Please help me to solve this issue.
    Regards,
    Arun.

    Hi Arun,
    Error due to incorrect installation of life cycle designer.
    check the below links for solution.. ( same issue ).
    Error Message "Error while Opening the Document"
    Error - Adobe Live Cycle designer
    Regards
    Srinivas

  • Adobe Form Layout is not loading from webdynpro abap

    Hi Experts,
    I am creating adobe forms using webdynpro.If i double click on the adobe form name from UI element properties,i am getting an error:
    'Error while opening document'
    Also in diagnosis it is written as:
    'An error occured in the desktop application while opening the document' and also the message number is 'SOFFICEINTEGRATION143'.
    Please help me to solve these issue.
    Regards,
    Arun.

    Hi,
    I solved this issue by reinstalling Life cycle designer.
    Regards,
    Arun.
    Edited by: ARUN.NAREIN on Oct 4, 2011 12:47 PM

  • How to downlaod adobe from output  to presentation server without display

    Hi Experts,
    How to download the adobe form output without displaying the output on the screen. Do we have some concept of OTF data in adobe forms ??? I checked the all the function modules which starts from FP*, but could not find it. Please let me know how to download the output of the form without displaying the output.
    Thanks in advance.
    Jack

    hi,
    when you get data in binary format, append it to the following internal table of type TLINE and then use following code to modify ur binary adta. tehn you can try to convert it into PDF format.
    inernal table declaration:
    * Binary store for PDF
    DATA: BEGIN OF it_pdf_output OCCURS 0.
            INCLUDE STRUCTURE tline.
    DATA: END OF it_pdf_output.
    data : gd_buffer TYPE string,
             it_mess_att LIKE solisti1 OCCURS 0 WITH HEADER LINE.
    code to modify binary data obtained :
    * Transfer the 132-long strings to 255-long strings
      LOOP AT it_pdf_output.
        TRANSLATE it_pdf_output USING ' ~'.
        CONCATENATE gd_buffer it_pdf_output INTO gd_buffer.
      ENDLOOP.
      TRANSLATE gd_buffer USING '~ '.
    * Prepare PDF attachment table : it_mess_att
      DO.
        it_mess_att = gd_buffer.
        APPEND it_mess_att.
        SHIFT gd_buffer LEFT BY 255 PLACES.
        IF gd_buffer IS INITIAL.
          EXIT.
        ENDIF.
      ENDDO.
    regards,

  • How to send adobe form output in mail as a attachment

    i am get the adobe form output
    how to attach in a mail ....
    Regards
    Anbu B

    my program is like this.............
      CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
        EXPORTING
          i_name                     = 'YHRIN_WELCOME'
       IMPORTING
         e_funcname                 =  lv_funcname
      gs_output-nodialog = 'X'.
      gs_output-preview = 'X'.
    gs_output-getpdl = 'X'.
       gs_output-getpdf = 'X'.
       gs_output-dest = 'LP01'.
      CALL FUNCTION 'FP_JOB_OPEN'
        CHANGING
          ie_outputparams       = gs_output
      EXCEPTIONS
        CANCEL                = 1
        USAGE_ERROR           = 2
        SYSTEM_ERROR          = 3
        INTERNAL_ERROR        = 4
        OTHERS                = 5
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    DATA : gs_outputpara TYPE sfpdocparams.
    DATA : ls_return TYPE fpformoutput .
    gs_outputpara-langu = 'E'.
    gs_outputpara-country = 'IN'.
      CALL FUNCTION lv_funcname
      EXPORTING
        /1bcdwb/docparams = gs_outputpara
        wa_data = wa_mail
        IMPORTING
          /1bcdwb/formoutput = ls_return
        EXCEPTIONS
          OTHERS = 1.
    DATA lv_output TYPE sdokcntbins WITH HEADER LINE.
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
    EXPORTING
    buffer = ls_return-pdf            "PDF file from function module
    TABLES
    binary_tab = lv_output  .
    *DATA : result TYPE sfpjoboutput WITH HEADER LINE .
      CALL FUNCTION 'FP_JOB_CLOSE'
      IMPORTING
        e_result = result
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    DATA : iv_len_in LIKE sood-objlen,
           it_tline TYPE TABLE OF tline WITH HEADER LINE.
    PERFORM pdf_file.
    DATA:   lt_imessage TYPE STANDARD TABLE OF solisti1 WITH HEADER LINE,
            lt_iattach TYPE STANDARD TABLE OF solisti1 WITH HEADER LINE,
            lt_ipacking_list LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
            lt_ireceivers LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
            lt_iattachment LIKE solisti1 OCCURS 0 WITH HEADER LINE.
    DATA  : lt_record LIKE solisti1 OCCURS 0 WITH HEADER LINE.
    DATA : it_otf TYPE itcoo OCCURS 0 WITH HEADER LINE.
    DATA: lv_email   TYPE somlreci1-receiver
                          VALUE 'anbu.'.
    PERFORM build_xls_data .
    APPEND lt_iattach.
    Populate message body text
      CLEAR lt_imessage.   REFRESH lt_imessage.
      lt_imessage = 'Please find attached PDF file'.
      APPEND lt_imessage.
    Send file by email as .xls speadsheet
      PERFORM send_email_with_xls TABLES lt_imessage
                                          lt_iattach
                                    USING lv_email
                                          'PDF Attachment of an Employee'
                                          'PDF'
                                          'TestFileName'
                                          'Employee Detail'.
         Form  BUILD_XLS_DATA
    FORM build_xls_data .
    DATA :lv_buffer TYPE string.
    Convert PDF from 132 to 255.
      LOOP AT it_tline.
    Replacing space by ~
        TRANSLATE it_tline USING ' ~'.
        CONCATENATE lv_buffer it_tline INTO lv_buffer.
      ENDLOOP.
       replacing ~ by space
      TRANSLATE lv_buffer USING '~'.
      DO.
        lt_record = lv_buffer.
    Appending 255 characters as a record
        APPEND lt_record.
        SHIFT lv_buffer LEFT BY 255 PLACES.
        IF lv_buffer IS INITIAL.
          EXIT.
        ENDIF.
      ENDDO.
      lt_iattach[] = lt_record[].
    ENDFORM.
         Form  SEND_EMAIL_WITH_XLS
    FORM send_email_with_xls TABLES pit_message
                                              pit_attach
                                        USING p_email
                                              p_mtitle
                                              p_format
                                              p_filename
                                              p_attdescription.
      DATA: es_xdocdata LIKE sodocchgi1,
            lv_xcnt TYPE i.
    Fill the document data.
      es_xdocdata-doc_size = 1.
    Populate the subject/generic message attributes
      es_xdocdata-obj_langu = sy-langu .
      es_xdocdata-obj_name  = 'SAPRPT' .
      es_xdocdata-obj_descr = p_mtitle .
    Fill the document data and get size of attachment
      CLEAR es_xdocdata.
      READ TABLE lt_iattach INDEX lv_xcnt.
      es_xdocdata-doc_size =
         ( lv_xcnt - 1 ) * 255 + STRLEN( lt_iattach ).
      es_xdocdata-obj_langu  = sy-langu.
      es_xdocdata-obj_name   = 'SAPRPT'.
      es_xdocdata-obj_descr  = p_mtitle.
      CLEAR lt_iattachment.  REFRESH lt_iattachment.
      lt_iattachment[] = pit_attach[].
    Describe the body of the message
      CLEAR lt_ipacking_list.  REFRESH lt_ipacking_list.
      lt_ipacking_list-transf_bin = space.
      lt_ipacking_list-head_start = 1.
      lt_ipacking_list-head_num = 0.
      lt_ipacking_list-body_start = 1.
      DESCRIBE TABLE lt_imessage LINES lt_ipacking_list-body_num.
      lt_ipacking_list-doc_type = 'RAW'.
      APPEND lt_ipacking_list.
    Create attachment notification
      lt_ipacking_list-transf_bin = 'X'.
      lt_ipacking_list-head_start = 1.
      lt_ipacking_list-head_num   = 1.
      lt_ipacking_list-body_start = 1.
      DESCRIBE TABLE lt_iattachment LINES lt_ipacking_list-body_num.
      lt_ipacking_list-doc_type   =  p_format.
      lt_ipacking_list-obj_descr  =  p_attdescription.
      lt_ipacking_list-obj_name   =  p_filename.
      lt_ipacking_list-doc_size   =  lt_ipacking_list-body_num * 255.
      APPEND lt_ipacking_list.
    Add the recipients email address
      CLEAR lt_ireceivers.  REFRESH lt_ireceivers.
      lt_ireceivers-receiver = p_email.
      lt_ireceivers-rec_type = 'U'.
      lt_ireceivers-com_type = 'INT'.
      lt_ireceivers-notif_del = 'X'.
      lt_ireceivers-notif_ndel = 'X'.
       APPEND lt_ireceivers.
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
           EXPORTING
                document_data              = es_xdocdata
                put_in_outbox              = 'X'
                commit_work                = 'X'
           TABLES
                packing_list               = lt_ipacking_list
               contents_bin               = lt_iattachment
                 CONTENTS_HEX              = lv_output
                contents_txt               = lt_imessage
                receivers                  = lt_ireceivers
           EXCEPTIONS
                too_many_receivers         = 1
                document_not_sent          = 2
                document_type_not_exist    = 3
                operation_no_authorization = 4
                parameter_error            = 5
                x_error                    = 6
                enqueue_error              = 7
                OTHERS                     = 8.
          SUBMIT rsconn01 WITH mode = 'INT'
                  WITH output = '' AND RETURN.
    ENDFORM.

  • How to avoid printing a balnk page at the end in the Adobe form output

    Hello Experts,
        Can anyone please let me know as how to avoid/delete the blank page at the end of adobe form output.
    I have a master page with header n footer and a body page seperate.
    For ex.. I have 3 line items and i want each line item to be displayed in the new page. I am able to get this functionality . I have set the settings in the paginationb tab of the subform as
    "after " Go to Next content Area" " but an extra page is getting printed at the end. 3 + 1 extra pages total. I want to avoid this blank page. I have checked the Allow page break with in content box but it is still not working.
    Can someone guide me as how to solve this problem.
    Any help is appreciated. Thanks in advance.
    Regards,
    Mahesh

    hey mahesh,
    this normally happens because of triggering a new page manually, what u would have done is that you would be checking for the new line item and when this condition is satisfied , you are triggering a new page , the reason for the last blank page is that the condition gets satisfied ( beacuse the line item number changes from the last line item no to  initial or space).
    This can be handled by doing the following
    By knowing the number of line items by the following stmt.
    describe table itab lines v_lines.
    Now you have the value in v_lines.
    use a counter in ur form and keep it increasing it by 1  ( say v_sno ) ie v_sno = v_sno + 1 in the loop of ur internal table.
    ONLY WHEN V_LINES IS LESS THAN OR EQUAL TO V_SNO , TRIGGER THE NEW PAGE
    this should be along with the condition which u have already put, ie when ever line item no changes
    when both these conditions are satisfied , then only the new page will be triggered.
    Hope it helps,
    Reward if useful,
    Regards,
    KP.

  • Can I color a line of "standard text" in adobe forms output?

    Simple question: Can I color a line of "standard text" in adobe forms output?
    My standard text (SO10) has multiple lines. 
    Can I make one of the lines red?
    Ollie

    Hi Oliver,
    I believe you standard text is a table type of TDLINES.
    On the form you would display it with a table of 1 column 1 row with repeat row ticked.
    Have the like below code on the fomr ready event of your table.
    for(var i =0; i<this.Row1.nodes.length;i++)
         if(i == 1){
         this.Row1.Cell1.font.fill.color.value = "255,0,0";
         this.Row1.xx.font.fill.color.value = "255,0,0";
    Note: in my example I had a table with one row names Row1 and 2 fields cell1 type textbox,  & xx as text / label.
    If its like you have it in a text box with multiple entries, we need to spli the value such that 1st row is displayed in a text box whose parameters are by defeult set to font red, and rest of them to this text area.
    If your procedure is table the code sud work, else let me know how you get data and how do you display it on the screen.
    Cheers,
    Sai

  • Merging Smartform Output and Adobe Form Output in a single PDF File

    Hi All,
    My Requirement is as follows -
    I have multiple Smartforms and a single Adobe Form.
    I want to merge the Smartform Outputs and Adobe Form output in a single PDF.
    I am able to merge multiple Smartform Output in a PDF , but not able to find any way to merge smartform and adobe form output as the Smartform output is in OTF Format and Adobe form output is in PDF Format itself.
    I have tried few ways , but could not find any success.
    Request you all to give me some direction to this problem.
    Thanks & Regards
    Bhavika

    Kumar,
    I am afraid this is not possible using SAP functionality. There are probably 3rd party tools which allow you to merge several PDFs into one, but SAP itself does not offer such a mechanism. There is an internal SAP function, though, which can merge several "parts" (=several PDFs) within an Adobe-created spool request into a single PDF, intended for downloading this PDF from SP01.
    This is described in note 1717357.
    Best regards,
    Alexander

  • Multiple Adobe Forms Output in single Adobe Form

    Hi Experts,
    When we login to portal a list of applications will be available in a table, each record contains details of the application. when we click on first field of any record in that table it will display one adobe form. Under the table i have a button print, suppose if i select some 5 records in the table and when i click that print button then all the 5 adobe forms output should display as a single adobe form with page breaks. I mean after completion of first adobe form output, the next adobe form output should start in a fresh page. i could able to display single adobe form but the problem is with multiple adobe forms output in single form. Any inputs will be greatly appreciated.
    Regards,
    Venkat

    Hi,
    The only way to solved your issue is to change your forms and give it all necessary information in several table . Like this you can manage break page depending of content.
    For example, you form interface contains one header structure and a table of item . If you want to have several form into one result , change the interface by passing an internal table of header information . Then in the layout you have to use the different table to get the result you want .
    Unfortunately there is no solution actually with AdObe Forms in SAP to merge several PDF into one .
    Hope this help you.
    Regards

  • Adobe forms output not showing

    Hi,
    Iam working on ECC5.0 version.
    i created  adobe form after click on test button it will ask for output device.
    i  checked with all output device options but i did not see the output.
    any configuration required for seeing the adobe forms output?
    Regards,
    Suresh

    Hi,
    First question is do you have Adobe Document Services (ADS) in your system landscape?  This is essential to generate output from adobe forms.
    If your ADS is set up you can call function module FP_GET_LAST_ADS_ERRSTR after you call the generated form function module you will get the last error message from the ADS.
    Regards,
    Nick

  • How to call an external server from Webdynpro program?

    Hi All,
    i have a requirement in which i have to call an external server from Webdynpro ABAP program.
    how to imp

    hi ,
    do u mean u need to call the external link from ur WD ABAP application ?
    if so , u either create
    1 a Link to URL ( LTU ) UI element  and call the external link using that
    2 if u wish to use some other fuctionality and thn wish to call the URL in ur application ,u write this piece of code in ur relevant on Action method :
    data:  lo_window_manager type ref to if_wd_window_manager.
    data:  lo_api_component  type ref to if_wd_component.
    data:  lo_window         type ref to if_wd_window.
    data:  ld_url type string.
    lo_api_component  = wd_comp_controller->wd_get_api( ).
    lo_window_manager = lo_api_component->get_window_manager( ).
    ld_url =  ''.  // ur external sever link here
    CALL METHOD lo_window_manager->CREATE_EXTERNAL_WINDOW     
    EXPORTING     URL                = ld_url           
    RECEIVING     WINDOW         = lo_window.
    lo_window->open( ).
    I hope u wud be able to create URL now .
    regards,
    amit
    Edited by: amit saini on Oct 13, 2009 11:25 AM

  • How to get PDF generated by adobe forms on to Application Server

    I have a program which gathers data into an internal table. The program then calls function FP_JOB_OPEN (with relevant outputparams). Then it calls the function module name, of the Adobe Form, passing the internal table across. Then the job is closed.
    This all works fine and we end up with a PDF file on the spool (type ADSP).
    The requirement is, within the program, instead of outputting to the spool, to output the PDF document onto the Application server.
    Any help greatly appreciated.

    If the PDF spool is already generated then,
    You may need to read the PDF data , may be using 'RSPO_RETURN_SPOOLJOB
    Once you get the spool data in internal table , use Open Dataset and close dataset to download , see if that works.
    Cheers,
    VB

  • Adobe form output not getting displayed for the whole length of the page

    Hi All,
    I have developed an adobe form using webdynpro application. While testing, the output(pdf) does not occupy the entire page/screen from end-user side. But when I test the same from my side, the output appears fine . Could anyone suggest me on this?
    Regards,
    Allwin.

    Did you check the resolution at end user side? Is it different from your resolution?
    To overcome this check what is the height and width you have specified for InteractiveFormUI element in your Web Dynpro application. Have you specified in pixels like 300px? You need to enter it as 100% for both.
    Chintan

  • Why typed in data  is not saved in adobe form ?

    Hello Experts
    This is someone new to adobe interactive forms in SAP. I develoveloped many intearcative forms their look and fell is good but problem is that the data typed in the adobe form is not saved .when i save the adobe form with nevigation File -> Save as ->pdf. the file is save with new name but the filled in data is lost. Please
    help me in this scenario.
    Thanks.
    Chitta Ranjan Mahato.

    You can save the filled form when you enable the form with Adobe Acrobat.

Maybe you are looking for