Manipulation of Print form after generation

I am using Adobe Forms as print forms within the SAP ERP 5.0 without WebDynpro.
I have requirement that I need to manipulate the generated PDF file by adding additional attachment files to the PDF generated by the function module. Technically this seems to be possible by combining the different APIs as follows:
1. Setting the output parameter GETPDF to 'X' while calling FP_JOB_OPEN and
2. Getting the binary file from the /1BCDWB/FORMOUTPUT object
3. Then setting the binary to the IF_FP_PDF_OBJECT object via the SET_DOCUMENT method
4. Adding the additional attachments via SET_ATTACHMENTS method.
Is there smarter way to do this so that the attachment could be already added via the function modules?
Is there any linkage between the function modules FP_* used for print forms and the classes  IF_FP_PDF_OBJECT that provide the ADS services?

It seems that SAP has not even implemented the method IF_FP_PDF_OBJECT~SET_ATTACHMENTS in WebAS 6.40. It simply throws exception without doing anything.
So it seems that the whole scenario is not even possible in NetWeaver 2004/Basis 6.40.
On the question on why:
In our scenario we need to attach additional PDF files (generated in external systems or scanned paper documents) to the print form produced by SAP. It seemed that the PDF attachments would provide solution for combining these external files with the form.
The other alternative solution, that I have considered, is to "embed" the external documents to the form using the Image Field element in the layout. This is not really an option, because Image Field supports only BMP, JPEG, GIF, PNG and TIFF - NOT PDF. Secondly, it's really designed for embedding fixed-size images to the form. In our case the scanned document can be 10 pages long.

Similar Messages

  • Print Form after Defect Recording

    Hi,
    I have a requirement to print a so called Incoming Rejection Form. This form is printed after doing the defect recording.
    Is there a standard way to print a form after saving defect recording?
    Thanks,
    Raymond

    Hi
    check the FORM ....you have either made changes or create a new form
    check following
    A form definition contains the following elements:
    Header data:
    This is general information about the form, such as the user ID of the person who created it, a short text describing the form, and global control data, such as font used and page format.
    Paragraphs:
    Paragraphs are the real layout elements in SAPscript. Every text entered in the editor consists of various paragraphs. The beginning of a paragraph is indicated by a paragraph tag in the left column of the editor. Paragraph names and attributes are defined in the form.
    Characteristics or attributes which can be defined for paragraphs include text alignment, line spacing, font used etc.
    Character strings:
    Character strings are layout elements relevant for a section of text within a paragraph. They are inserted in the continuous text. The beginning of a section of text is marked with the character combination <XX> and the end with </>. Here XX is the name of the character string, which is defined in the form.
    Windows:
    Windows represent logical units. Although they do not have a physical position on the page, they have a name which reflects the purpose of the text to be displayed in the window. For example, an address window, a window for a letter header etc.
    A window type is assigned to every window. The most important type is the main window. "Continuous" text appears in the main window. The text can therefore extend over the main windows of several pages. The other window types, on the other hand, do not allow text which does not fit in the window to be continued in the window on a subsequent page.
    Pages:
    One or more pages which are to appear in the form are defined here. The attributes of a page include the name of the next page and the type of page numbering. The user determines the page sequence by specifying the next page and defining the first page of the form in the header data.
    Page windows:
    A page window is defined by specifying the position and size of a form window on a form page. The page window describes the position of a window on a specific page of the form and therefore the area in which text can be output in the form.

  • I can't print my PDF form after it is filled out.  Only the form prints not the text that I put in

    I can't print my PDF form after filling it out.  Only the form prints and not the text I put in.

    That's a limitation of Apple's AirPrint framework that Adobe Reader depends on.  We are considering an alternate solution that may resolve this issue though.
    Thanks for your feedback.
    -Gaurav

  • Printing an additional Form after printing an Invoice

    I need to setup SAP B1 to print another form AFTER printing the A/R Invoice. This form needs to use items from the invoice ( item, qty) to populate fields. Any ideas on how to accomplish this?
    TIA
    Jeff

    Jeff,
    You probably need Crystal Report to make two forms under one report.
    Thanks,
    Gordon

  • Save PDF file automatically after generation

    Hello,
    I have a Print only PDF Form(for a Quotation) in WebDynpro, that runs for 20-22 pages at runtime. Now it takes a lot of time(sometimes around 5-7 minutes) to generate as its dynamic form .
    The user doesn't wants to wait for so long and wants that the PDF should be automatically saved upon generation and he can continue his work.
    We have to do this in WebDynpro since the backend is 4.70
    I know its possible to save the PDF file from WebDynpro to a filesystem. But that is possible only after generation of WebDynpro.
    Is there any way to automatically save the PDF file after its generated.
    Is there ny method that is executed after the PDF is generated and before displaying the same.
    Is this possible as a background task, like in ABAP it can write to a SPOOL.
    Any inputs, source code examples will be helpful.
    Regards,
    Shubham

    Hi Shubham,
    You can use PDFObject in your code for the same.
    Check 32 number tutorial for use of PDFObject in webdynpro.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/web dynpro sample applications and tutorials.htm
    Regards,
    Bhavik

  • Print in report generation

    Dear all,
    I am using Report Generation Toolkit to create a report of my project.
    I am using "Word" type Report and want the VI to print it after creating the report.
    However i dont want it to open the MS Word and just want it to print it right away.
    I am using alot of VIs specific to MS Word.
    Is there any way i can print the report without opeing MS Word??
    Thanks,
    Ritesh

    Hi Ritesh,
    I don't think you can use the 'Word' type report VI's without opening Word itself, but what you certainly can do is to open Word and have it either minimised or hidden so the operator doesn't see the window. Then you can get your VI to automatically print the report and close Word down once the operation is completed.
    Regards,
    Andy

  • Just purchased a office jet 6500A Plus so that I can print from my iPhone and iPad. I can print form my iPhone but my iPad 2 tells me there is no air printer available.  Why does one device recognize the air printer but the other device does not?

    Just purchased a office jet 6500A Plus so that I can print from my iPhone and iPad. I can print form my iPhone but my iPad 2 tells me there is no air printer available.  Why does one device recognize the air printer but the other device does not?

    I have the 6500A without plus and it is with a LAN cable connected with my Router.
    First make sure you have the latest printer firmware installed.
    Next restart the printer and the Router.
    I had the same. Problem but it went away after rebooting the Router.

  • Installing and Configuring Adobe Document Services For Print Forms

    Hi,
    I want to use Adobe Document Services,for Print Forms Scenario,on ABAP side.
    I installed the Adobe document Services following the steps in the Installation Guide.I obtained the Credentials file and supplied it during installation.
    Then i followed the steps in the configuration Guide,except for the SSL connection part, as i have chosen Basic Authentication .
    The Web Service is running and on opening the home page,when i test the method rpData,it asks for Username and password,when i supply my username password it says, user does not have rights to method rpData.
    I even tried using J2ee Admin rights,user with SAP_ALL rights, and ADS_AGENT.
    When i test the service from ABAP side,using the RFC destination i created on Client 400,from where i want to use it, the test shows status code OK.
    When i test a form through transaction SFP,it asks for  USERNAME and password,which i tried as my USERID,ADMIN ID with SAP_ALL rights, even with the users i created during Configuration like ADS_AGENT, ADSUser etc.
    Our J2ee Engine is installed on Client 200,i installed the ADS on Client 200 and created the users ADS_AGENt(service user with role SAP_BC_FP_ICF) and ADSuser on Client 200.
    I also activated the ICF services and created the destination for the destination service using Visual Administrator.
    My Issues:
    1)To test the Webservice,what USER ID password needs to be supplied?Do i need some Special role or rights?
    2)During Configuration ,when i create a USer in SAP Web AS ABAP for Basic Authetication,after creating ADSCallers Role and assigning to ADSUSer ,in Visual Administrator,after selecting com.adobe/AdobeDocumentServices*AdobeDocumentServicesAssembly.jar ,under ADSCallers,i ama ble to see the both the users ADSUser(user in j2ee Engine for basic authentication ), and ADSUSER (user type system in ABAP),are visible,
    When try to add ADSUSEr by choosing ADD,from USER Tree , it doesn't do so.So i Added the ADScallers group instead,thus indirectly both users added.Can this be a Problem?
    3)What else do i need to do?Am i missing something?
    Please help.
    Regards,
    Siddhartha

    Hi all,
    I am having an issue in which my ecc could not use properly the ADS on the EP.
    I could properly execute FP_PDF_TEST_00 from se38 transaction which gives the correct version no of ADS.  Also I am able to get the correct version no by giving username and password at http://<J2EE_host>:<J2EE_port>/AdobeDocumentServices/Config  which seems like the ADS is working properly in EP.
    However when the abaper is trying to run his form using spf like ZFORM_VENDOR  it is showing error like
    " Error during activation Message no. EU837 "
    Can you please shed some light on what all steps I need to check to ensure that ADS is working properly ?

  • Can You Disable A PDF Form After X (days or openes)?

    Is there any way to disable a PDF form after X # of days or X # of openes? Here's my situation:
    I have a time sensitive document that needs to be filled it out and printed within 72 hours from receipt. After 72 hours the form is no longer valid and must be locked and disabled (meaning you can open it and see the contents anymore). Is there any simple solution?
    * FYI, seems purchasing DRM is a bit too expensive for this application.
    I have Adobe LiveCycle Designer and Acrobat Pro X.
    Thanks for any help!

    DRM - digital rights management. Controversial and complicated subject.
    If you just want a password you can set that with Acrobat, but it has no expiry system. Expiry is a pretty complex area, for instance, it cannot trust the clock in the user's own computer, because they could change it to fool you. And if you count opens or whatever they can just start with a fresh copy. Adobe's DRM runs on a server 24/7, so that checks can be made whether to open or not.

  • SOAP Runtime Exception: CSoapExceptionTransport when activ adobe Print Form

    Hi
    I am trying to activate an Adobe Print Form, but I am getting the error "SOAP Framework error: SOAP Runtime Exception: CSoapExceptionTransport: HTTP send failed with exception communication_failure(100.101)".
    I have searched the forum and can see several thread stating that this is a ADS Configuration/Basis error, but when we try to execute the test report it works just fine, so I am guessing the ADS is working quite fine, or ?
    Any help / hints to fix this error will be very appreciated
    Regards
    Morten Nielsen

    A year back I have experienced the same behaviour of my forms which were very large (30 pages at design time). After some time (number of changes I guess) they stopped working. I had to start all over from the last backup (that was few days ago once, what is a lot of work lost).
    Why I would now do is:
    1) copy your form and try to activate the copy
    2) create a new form with the same interface, create some dummy layout with one field and try to activate
    3) do you have any older version of this form? Or you´ve created it just now and this is the first activation? if you have an older one, try that one
    Otto

  • Trouble with unprintable characters in Adobe Print form

    Hi experts,
    I'm trying to implement an adobe printform containing a PDF417 Barcode. To separate the datafields within the barcode, i have to use some unprinteable characters like hex 1E or 1C and so on.
    I had the same issue in SMARTFORMS a few years ago, but was able to solve it in smartforms using /0x1E or /0x1C. Now I tried the same in Adobe Forms, but there comes an error in SM21 (syslog), telling me, that there was a problem during a Render operation. (Processing exception during a "Render" operation... A problem was encountered with the results: RenderResult array is null.)
    I tried to use this coding as well:
      data: zrecsep type c.
    field-symbols: <f>.
    label_data_barcode-recsep   = '1E'. "recsep is type x
    ASSIGN label_data_barcode-recsep to <f> CASTING TYPE C.
    move <f> to zrecsep.
    clear <f>.
    After that, zrecsep contains '#', but in hex the correct value '1E'.
    This coding works for all printable characters, such as hex 66 for 'f' or hex 5B for '[', but not for unrintable characters like hex 1E. In case of an unprintable character, a new syslog entry appears.
    Any ideas?
    Many thanks
    Ralf

    Hi, it's me again
    Here is the answer of the SAP support:
    unfortunatelly this control character is not supported by the XML
    standard and the data in the SOAP request is delivered in XML format to
    the ADS. Therefore such character cannot be used.
    I can only suggest the following web page:
    Link: [http://www.w3.org/International/questions/qa-controls#further]
    I then asked another question:
    Is there any other possibility to generate the pdf417 barcode and use
    it inside the pdf form? For example: Is it possible, to generate the
    barcode-image before calling the ADS-function and submit the address of
    the image instead of the string for the barcode?
    answer:
    I understand that you don't want to print out the string value. But it
    works as follows: the template (which contains the empty label
    definition) and the data (which contains the value for the label) are
    sent to ADS and on ADS side will the label generated.
    Therefore it is also not possible with ADS that you create the label
    befor sending it to ADS.
    The only thing I can imagine that you create the label with an external
    program and you insert it into the template as an image. But I don't
    know if it is possible for you.
    Conclusion: There is definitely no chance to use such characters in Adobe print forms due to the XML standard which is used to process the data inside the ADS.
    In my case, i have to use SMARTFORMS technology to create the label with a pdf417 barcode containing these special characters.
    regards
    Ralf

  • Radio Buttons & Check Boxes Replaced w/ Rectangles, when printing Form w/ Adobe Reader XI (11.0.03)

    Hello.  I need to be able to print a .pdf copy of a completed web page form.  The form is completed by entering data into text boxes and text areas, and selecting various radio buttons and check boxes.  When the form is complete, it is saved, which converts the form into a .pdf file.
    When I open the saved .pdf file, it looks completely normal.  I will then select the print button, which is built into the display window for the form.  The printed form will appear, but the radio buttons and check boxes will have been replaced with the outline of rectangles.
    This is what the source form looks like, before printing:
    This is what the printed image looks like, after printing.  NOTE: All check boxes and radio buttons (and the data that they contained) are gone:
    I am not sure if this is a setting that needs to be changed in Adobe REader XI, or something else.
    Please let me know what you think it might be.
    Thanks,
    Rick

    Michael,
    It is a web/html form.
    The forms are built and used inside of a software program called WebEOC.
    WebEOC is used to allow for sharing information between different
    emergency response entities (like a State, and the counties within the
    State).
    The form I am working with was built with a web page editing program.  The
    form uses html, xhtml, xml, CSS and javascript.
    A for user would launch the WebEOC form (after logging into WebEOC), and
    they would fill out the form.  Text goes into text boxes and text areas,
    dropdown menu selections are made, and some information is entered using
    radio buttons and check boxes.
    When the form is complete, it is saved within the WebEOC database, as a
    .pdf file.
    You can then open the .pdf file in order to see the form, in it's
    completed state, as a pdf.
    When I try to pint this pdf file of the completed form, the check boxes
    and radio buttons are replaced with rectangles.  Any selections made in
    the radio buttons or checkboxes is lost.
    Thanks,
    Rick
    [signature removed]

  • Open Adobe Print Form from ALV Int. Rprt using the XSTRING already present

    Hello Friends,
    I have a typicall issue that how to open a Adobe Print Form when a user double clicks in the ALV Report. Here when the user double clicks in the ALV Interactive Report using the unique ID I am getting the Adobe Form from a FTP location in the Form of XSTRING, now using the ABAP ADOBE PRINT FORM not using WebDynpro Application, I need to process this XSTRING and show up the Adobe Print Form.
    OR
    Is there a way to send the XSTRING to the Output Device or Printer to Display the PDF Form.
    Friends please help me in solving this issue.
    Thanks and Regards
    Pradeep Goli
    Edited by: Pradeep Goli on Mar 19, 2009 1:49 PM
    Edited by: Pradeep Goli on Mar 19, 2009 2:51 PM

    Hi Pradeep Goli,
    it is possible to show PDF in SAP GUI.
    Michal
    REPORT  ZTEST_DISPLAY_PDF.
    * You must create dynpro 500 with custom control named HTML.
    * In this custom control will be displayed PDF.
    DATA: g_pdf              TYPE xstring,
          pdf_my_container   TYPE REF TO cl_gui_custom_container,
          pdf_html_control   TYPE REF TO cl_gui_html_viewer.
    START-OF-SELECTION.
    PERFORM create_and_display.
    FORM create_and_display.
    *** Your code fo filling g_pdf
    CALL SCREEN '500'.
    ENDFORM.
    * PDF preview in HTML control
    module html_control output.
      perform pbo_html_control.
    endmodule.
    module html_control input.
      perform pai_html_control.
    endmodule.
    * PAI
    FORM pai_html_control.
      SET SCREEN '0'.
    ENDFORM.
    * Showing of PDF
    FORM pbo_html_control.
      DATA: l_pdf_alignment TYPE i,
            l_count         TYPE i,
            l_noprint       TYPE fpboolean,
            l_noarc         TYPE fpboolean,
            l_noprintarc    TYPE fpboolean.
    *  CLEAR: fcode.
      SET PF-STATUS 'VIEW_PDF'.
    * container
      IF pdf_my_container IS INITIAL.
        CREATE OBJECT pdf_my_container
          EXPORTING
            container_name = 'HTML'
          EXCEPTIONS
            OTHERS         = 1.
        IF sy-subrc <> 0.
          MESSAGE e150(FPRUNX).
          RETURN.
        ENDIF.
      ENDIF.
    * html control
      IF pdf_html_control IS INITIAL.
        CREATE OBJECT pdf_html_control
          EXPORTING
            parent = pdf_my_container
          EXCEPTIONS
            OTHERS = 1.
        IF sy-subrc <> 0.
          MESSAGE e150(FPRUNX).
          RETURN.
        ENDIF.
    *   alignment
        l_pdf_alignment = pdf_html_control->align_at_left  +
                        pdf_html_control->align_at_right +
                        pdf_html_control->align_at_top   +
                        pdf_html_control->align_at_bottom.
        CALL METHOD pdf_html_control->set_alignment
          EXPORTING
            alignment = l_pdf_alignment
          EXCEPTIONS
            OTHERS    = 1.
        IF sy-subrc <> 0.
          MESSAGE e150(FPRUNX).
          RETURN.
        ENDIF.
      ENDIF.
      PERFORM pdf_show USING g_pdf.
    ENDFORM.
    FORM pdf_show USING p_pdf_data TYPE xstring.
      STATICS: ls_url           TYPE i.
      TYPES: lt_pdf_table(1000) TYPE x.
      DATA:  l_myurl(80)        TYPE c,
             l_url(80)          TYPE c,
             l_pdf_data         TYPE STANDARD TABLE OF lt_pdf_table,
             l_pdf_size         TYPE i,
             l_pdf_line         TYPE lt_pdf_table,
             l_offset           TYPE i,
             l_len              TYPE i.
      l_pdf_size = XSTRLEN( p_pdf_data ).
      l_len = l_pdf_size.
      WHILE l_len >= 1000.
        l_pdf_line = p_pdf_data+l_offset(1000).
        APPEND l_pdf_line TO l_pdf_data.
        ADD 1000 TO l_offset.
        SUBTRACT 1000 FROM l_len.
      ENDWHILE.
      IF l_len > 0.
        l_pdf_line = p_pdf_data+l_offset(l_len).
        APPEND l_pdf_line TO l_pdf_data.
      ENDIF.
      ADD 1 TO ls_url.
      l_myurl(8) = ls_url.
      CONCATENATE l_myurl '.pdf' INTO l_myurl.
      SHIFT l_myurl LEFT DELETING LEADING space.
      CALL METHOD pdf_html_control->load_data
        EXPORTING
          url          = l_myurl
          size         = l_pdf_size
          type         = 'application'                          "#EC NOTEXT
          subtype      = 'pdf'                                  "#EC NOTEXT
        IMPORTING
          assigned_url = l_url
        CHANGING
          data_table   = l_pdf_data
        EXCEPTIONS
          OTHERS       = 1.
      IF sy-subrc <> 0.
        MESSAGE e152(FPRUNX).
        RETURN.
      ENDIF.
    * show data
      CALL METHOD pdf_html_control->show_data
        EXPORTING
          url    = l_url
        EXCEPTIONS
          OTHERS = 1.
      IF sy-subrc <> 0.
        MESSAGE e152(FPRUNX).
        RETURN.
      ENDIF.
    ENDFORM.

  • Internal table in adobe print forms

    hi there,
    in my WDA-application i use adobe print forms for output.
    i use a table for displaying an internal abap-table.
    in the formular-hierarchy it looks like this:
    table2
    --> line1
      --> cell1
      --> cell2
      --> cell3
    my problem is that i am a complete newbie in scripting in print forms.
    here is what i want to do:
    if cell1 = 'X' then the text in cell2 has to be bold or underlined.
    Can someone provide me with a code-example either in javascript or formclac???
    thx
    David

    thx for answering.
    first i tried the following code:
    data.T1.Tabelle2::ready:form - (JavaScript, Client) -
    this.Zeile1.Zelle2.font.weight = "bold";
    this.Zeile1.Zelle2.font.underline = "1";
    the result is, that cell2 is bold and underlined but only the first row of the table. i want all cell2 in all rows bold and underlined.
    then i tried this:
    data.T1.Tabelle2::ready:form - (JavaScript, Client) -
    if(this.Zeile1.Zelle1.rawValue == "01"
    this.Zeile1.Zelle2.font.weight = "bold";
    this.Zeile1.Zelle2.font.underline = "1";
    nothing happens and i dont understand why. The visible value in Zelle1 is "01"!

  • Question regarding Graphics - Print Forms

    Hi,
    This is a print forms question. We are on ECC 5.0, basis release 640
    Currently, for all our SAPscripts, we have our graphics as TIF files stored as text modules.
    For our Smartforms, we loaded BMP files to the BDS using transaction SE78.
    Adobe brings up the exciting possibility of using smaller sized JPG/JPEG files.
    The only place I can think of storing the JPEG files in the SAP system is the MIME Repository. Looks like SE78 does not support JPEG files.
    Here's my requirement and question.
    In the mime repository, I created folder 'LOGOS' in SAP/PUBLIC. So, the path would be /SAP/PUBLIC/LOGOS
    The names of the files in the mime repository are 'LOGO_A' and 'LOGO_B'.
    We need to print the company logo based on company code.
    If company code is 'A' then 'LOGO_A' else, 'LOGO_B'.
    We are reluctant to read the graphic in the ABAP program and pass the whole content through the Interface.
    I cannot embed the graphic in the form since the LOGO will change based on company code.
    Since we can use an url for an image field in Adobe forms, how can I point the url to the mime repository?
    Any help on this is greatly appreciated.
    Thank you.
    Best regards,
    -Ramesh

    Thanks Markus.
    By what you said, I am inferring that you mean access to load the graphic files to the Mime Repository.
    My question is to read the Mime repository since users of bsp applications can still see the LOGOs in their bsp pages (I think. Never did BSP before).
    Here is what I am doing currently.
    Here's my interface:
    LOGO_DATA TYPE XSTRING.
    In my driver program, I am reading the Mime Repository graphic into an XSTRING and passing it through the interface to the LOGO_DATA field.
    I created a Graphic in the Context and set it to 'Graphic Content'.
    I am setting the 'Field' property to LOGO_DATA and MIME Type to 'image/jpeg'
    Now,
    Instead of reading and sending the whole binary content across through the function call, I am looking to see if the following would be possible:
    Interface:
    LOGO_URL TYPE STRING
    In the driver program, assign the URL of the Graphic to field LOGO_URL (Don't know how yet).
    In the context, create a Graphic and set it to 'Graphic Reference'
    In the URL property, set the Graphic URL property to LOGO_URL field and then clear out the delimiter field.
    If it is not possible with the Mime Repository, will it be possible with the Business Document Server (Transaction SE78).
    Thank you.
    Best regards,
    -Ramesh

Maybe you are looking for