Skip to Content
avatar image
Former Member

Embedding a existing PDF into newly created form.

Hi Experts,

I have new requirement to attach existing PDF into newly created form. To elaborate let say use has uploaded a PDF file while creating sales order in attachment tab. Now when output type is triggered and our custom form is called it will display the required data and after all that we need to have a page with the attached PDF file. This will different in each sales order.

Please let me know if it is possible or not, if possible help me resolve this issue.

Thanks in advance.

HG

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Dec 13, 2016 at 08:41 PM

    Hi HG,

    I have done something like this in a standalone Java program using the iText API but I seriously doubt there is anything in the ABAP flavor which would allow you to merge two PDF outputs into one.

    Regards,

    Ryan Crosby

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Raymond,

      Looks like it is possible working directly with OTF data. Personally, I would never present this as an option as I would not be comfortable working with OTF directly and guaranteeing an outcome with 100% accuracy.

      Regards,

      Ryan Crosby

  • Dec 13, 2016 at 08:22 AM

    Hi,

    what will work, ...

    1. convert your given PDF to an image with ghostscript. As Outtput you will have an image File somewhere.

    extern command SM69

    2. In your PDF create an extra page with full-page image that links to the image.

    3. After creating the PDF delete the image on the server.

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 13, 2016 at 07:32 PM

    You can't embed a PDF GOS attachment into a Smartform , to my knowledge, but with a custom output program you can try adding GOS attachment to the output after the form. Try Google -> add PDF to Smartform site:sap.com and similar queries. This has been asked before.

    Add comment
    10|10000 characters needed characters exceeded