Attachment of Word/PDF to Sapscript layout

Hello everyone,
Need some help regarding attachment of document in script.
I know that we can convert the ouput of a SAPscript form to a PDF in a mail attachment or a spool.
But what we require is attaching a word/pdf document to an existing SAPscript so we can print it at the end of the existing SAPscript layout as terms & conditions.
Has anyone does this before? I know how to upload word documents in ole and in document management, but am unsure if its possible to add it to a layout. We can add bmp/tiff files, but pdf files??
Please advise! Thank you in advance.
Regards,
Ketaki

Hi Rich
Great to hear that someone has already solved the challenge we are facing now.
We have to print some PDF’s which are stored in iXOS archiving system and linked with archive link to a SD invoice.
Is it possible you describe a bit more detailed your solution and if possible you send a copy of the coding to me.
Thanks in advance.
Walter Wohlgemuth

Similar Messages

  • How to convert PO sapscript layout to pdf - need VERY URGENT Help

    Dear All,
    Requirement: PO sapscript layout after some modifications (say, ZMEDRUCK) has to be converted to pdf. Through me9f user will be able to give ranges of PO numbers and can view the print preview for the po. After that on clicking the print button we get the printout of the pos one after another based on the user input of PO numbers.
    Our requirement is that when the user will click on the "Print Preview" of po (rather than pressing the print button) it i.e. PO sapscript layout has to get converted to pdf.
    If you have already encountered this scenario, could you please send me the source code regarding this at the earliest. If you want to email it to my personal id, please let me know so that I can give it to you. Thank you.
    It will be very beneficial for mine if you can send me some source code in this regard. (FYI. We want only “Print output” of PO sapscript. So, Print Program /SMB40/FM06P [after copying it to our ZSMB40/FM06P program] need to be modified for downloading the PO into PDF where there is no FMs like OPEN_FORM, WRITE_FORM, CLOSE_FORM. So already available source code in SAP forums can not help me.)). Kindly help me at the earliest. It’s VERY URGENT…
    Thank you.
    Thanks & Regards
    Sudipta

    Hi Chaith,
    Could you please provide me the source code regarding this at the earliest.
    We want only “Print output” of PO sapscript. So we need to modify only the Print Program SAPFM06P after copying it to ZSAPFM06P for downloading of modified PO (ZMEDRUCK) sapscript layout into PDF.
    I am already having some source code from sdn portral. I am attaching it herewith. But it's not working as some constants and variable values need to be given. We want to take download of PO into PDF from ME9F transaction itself.
    Could you please provide necessary values in the missing constants and variables and kindly resend the corrected modified Source code to me so that I can run the same code to  download the modified PO ZMEDRUCK into PDF . Need YOUR URGENT HELP...
    DATA: l_druvo LIKE t166k-druvo,
            l_nast  LIKE nast,
            aux_nast LIKE nast,
            l_from_memory,
            l_doc   TYPE meein_purchase_doc_print,
            ent_screen TYPE c,
            ent_retco TYPE i,
            toa_dara TYPE toa_dara,
            arc_params LIKE arc_params,
            aux_form LIKE tnapr-fonam.
      DATA: otf LIKE itcoo OCCURS 0 WITH HEADER LINE,
            lt_docs      TYPE TABLE OF docs,
            pdf_bytecount TYPE i,
            nom_archivo TYPE string.
      aux_form = 'ZMEDRUCK'.
      l_from_memory = c_true.
      SELECT *
        FROM nast
        INTO aux_nast
        UP TO 1 ROWS
        WHERE kappl = c_po     " Purchase Order
        AND   objky = t_datos-ebeln
        AND   aktiv = space
        ORDER BY erdat DESCENDING eruhr DESCENDING.
      ENDSELECT.
      aux_nast-sort1 = c_swp.
      CLEAR ent_screen.
      CLEAR ent_retco.
      IF aux_nast-aende EQ space.
        l_druvo = c_1.
      ELSE.
        l_druvo = c_2.
      ENDIF.
    l_druvo = '2'.
      CALL FUNCTION 'ME_READ_PO_FOR_PRINTING'
        EXPORTING
          ix_nast        = aux_nast
          ix_screen      = ent_screen
        IMPORTING
          ex_retco       = ent_retco
          ex_nast        = l_nast
          doc            = l_doc
        CHANGING
          cx_druvo       = l_druvo
          cx_from_memory = l_from_memory.
      CHECK ent_retco EQ 0.
      CALL FUNCTION 'ECP_PRINT_PO'
        EXPORTING
          ix_nast        = l_nast
          ix_druvo       = l_druvo
          doc            = l_doc
          ix_screen      = ent_screen
          ix_from_memory = l_from_memory
          ix_toa_dara    = toa_dara
          ix_arc_params  = arc_params
          ix_fonam       = aux_form                            
        IMPORTING
          ex_retco       = ent_retco.
      CLEAR otf.
      CALL FUNCTION 'READ_OTF_FROM_MEMORY'
        EXPORTING
          memory_key   = l_nast-objky  " PO Number
        TABLES
          otf          = otf
        EXCEPTIONS
          memory_empty = 1
          OTHERS       = 2.
      CALL FUNCTION 'CONVERT_OTF_2_PDF'
        IMPORTING
          bin_filesize           = pdf_bytecount
        TABLES
          otf                    = otf
          doctab_archive         = lt_docs
          lines                  = pdfout
        EXCEPTIONS
          err_conv_not_possible  = 1
          err_otf_mc_noendmarker = 2
          OTHERS                 = 3.
      CONCATENATE c_dest t_datos-ebeln c_ext INTO nom_archivo.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          bin_filesize = pdf_bytecount
          filename     = nom_archivo
          filetype     = c_bin
        IMPORTING
          filelength   = pdf_bytecount
        TABLES
          data_tab     = pdfout.

  • HT6030 how can i send word/pdf/ppt/excel sheets as attachments to my emails via gmail using ipad

    i have been trying to save word pdf excel and ppts on my ipad and also send these files as attachements using gmail App but I am unable. please advise.

    Open the file you want to attack in an iPad program that will open it (Docs 2 Go for example). The program should have a share icon somewhere. Click on that and then select email. Without a little trickery I don't know how to attach more than one item per email.

  • Embed Word/PDF Documents in Documaker 12.1

    Hi
    We have a requirement to embed word/PDF documents during runtime . The path for the PDF/Word document comes as an input in a XML node and we would need to have them embeded/inserted in between the formset. We use Documaker 12.1 ODEE and would like to know if there is any built in utilites/rules that would support adding word/PDF documents during run-time. The documents can be inserted anywhere on the policy package. Though the Rules reference manual says the rule AddMultipageBitmap can be used to embed word/PDF, it doesn't seems to work with them in UNIX. It works perfeclty well for TIFF images. Let us know if we would need to add entries in the INI files to support the rule to embed word/PDF documents.
    Any other approach out of the box is also appreciated. Thanks in advance..

    Hi,
    If it is Linux or Solaris the Word attachment to the document should work out-of-the-box with configuration. For AIX the Oracle Outside In Image Export runtime component that converts the documents for most document types (except for specific types of TIFF) needs a X11 DISPLAY context with user authorization for which to run the rule in because that what it uses to do the conversion to an image.
    Is this AIX you are trying to do this on? If so the ODEE installer for 12.1.x sets a DISPLAY variable in the docfactory.sh startup script in a section for that platform that you would have use to point to a X11 Motif or Lesstif DISPLAY (e.g. my.server.com:2) that has a running X11 server. VNC server option will work also so that the system can remain headless.
    I thought that the Oracle Documaker Enterprise Edition document covers this requirement under its attachments notes, not sure.
    See documentation on Oracle Outside In Image Export for supported documents it can handle and platforms.
    I am not sure if the version Oracle Documaker uses but here is a document reference for v8.3.5 for the Unix particulars, http://docs.oracle.com/cd/E14154_01/dev.835/e12885/c03_unix.htm .
    SCCOPT_RENDERING_PREFER_OIT settings referenced in the above document is only option on Solaris SPARC and Linux x86_32 platforms according to the Oracle Outside In Image Export Developer's Guide for v8.3.5 (http://docs.oracle.com/cd/E14154_01/dev.835/e12885.pdf).
    Regards,
    -Steve

  • Number pages in sapscript layout

    Hi experts,
    What type of variables normally used in sap script to output data? 
    How do you number pages in sapscript layout outputs? 
    Thanks and Regards,
    Logu.

    Hi,
    ·     &SAPSCRIPT-FORMPAGES&:
    This field contains a number representing the total number of pages of the currently formatted form (any output between START_FORM and END_FORM). The page counter mode (START, INC, HOLD) of the individual pages is ignored. You can use this symbol to formulate information like
    ‘Page x of y’ for your output.
    ·&SAPSCRIPT-JOBPAGES&:
    This field contains a number representing the total number of pages of all forms contained in the currently formatted print request, in other words, of all forms created using the OPEN_FORM, START_FORM.. ENDFORM, START_FORM.. END_FORM,..., CLOSE_FORM function modules.
    &PAGES& current page.
    Thanks,
    Arunprasad.P
    Reward if useful.

  • Addding body content to the mail sent by sapscript layout output report

    Hi,
    I have a report which sends the output of a sapscript layout  as an email.Is there any way i can add some body content to the mail which the report is sending.
    This include is getting called from my report to send email - RVADOPFO
    Thanks
    Bala Duvvuri

    Issue is fixed .instead of using the standard open_form functionality I am getting back the OTF output and converting into pdf and using mail fms i am sending it along with body.
    Thanks
    Bala Duvvuri

  • Download Smartform or Sapscript layout into Excel

    Hi ,
    Is there any way to download the sapscript layout or smartform layout into excel . I know that there is a report to download layout from spool into pdf with the RSTXPDFT4 program . But my requirement is to download the layout into excel and then use the excel sheet to manipulate the data.
    Thanks in advance.
    Narayani

    Hello,
    Very useful step by step approach for OLE by Serdar
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/technologies/an easy reference for ole automation.article
    Hope this helps you.
    Regards, Murugesh AS

  • I have tried a lot to find an app or some way in email to attach multiple of pdf files in one email. I could not find anything that sends multiple pdf file in one email and still keeping the file in simple pdf format for the recipient.

    I have tried a lot to find an app or some way in email to attach multiple of pdf files in one email. I could not find anything that sends multiple pdf file in one email and still keeping the file in simple pdf format for the recipient.

    I am not aware of a way except for photos that allows you to select multiple files in an email. I even checked settings in the Adobe Reader app, and it does not show that ability.

  • I need to visualize a document attached on a pdf file on an iPad.  Is there any application  to do that ?

    I need to visualize a document attached on a pdf file on an iPad.  Is there any application  to do that ?

    Yes. Quite a few actually.
    Starting with Apple's own iBooks App, I also see many recomendations for Goodreader, and Adobe's own PDF Reader.  Just to name a few. Look for them in the App Store. iBooks and Adobe reade are free.  You can also search the App Store for other alternatives.
    Also for most PDF's the Mail App can open them directly.

  • How can I edit a file which is attached in a pdf file?

    I want to edit a bmp image file which is attached in a pdf file. I have Adobe Acrobat Professional installed. Actually, I have two questions.
    1 How can I change the default viewer of bmp file into Mspaint?
    2 Can I edit it in Mspaint and save it directly?

    1
    open windows explorer and find a .bmp
    right click
    select open with
    choose the program you want from the list
    - or navigate to program if not in list
    check the box that says always use this program
    2
    never tried, don't know

  • If I have a repeating event in iCal, can I attach different docs, pdfs, etc., do the events. I am entering lessonplans and want each date to have an attachment.

    If I have a repeating event in iCal, can I attach different docs, pdfs, etc., do the events. I am entering lessonplans and want each date to have an attachment.

    Yes. As you edit each one, you will get a dialog asking whether you want to change all or just the current one.

  • How do I save a word pdf file to png file for up load onto FB

    how do I save a word pdf file to png file for up load onto FB

    What is a Word PDF file? There are Word files and there are PDF files. What does your question have to do with Boot Camp, the subject of this discussion group?

  • Attach the word document in Sales order .

    Dear All
       How can i attach the word doc file in sales order & this file should be printed  in next page of order confirmation output ?
    Thanks
    Chahat

    Hi
    Go to SU3, go to parameters tab and enter parameter ID = SD_SWU_ACTIVE and value as X.
    Now go to sales order in VA02
    You can see "Services for Object" link at the top left.
    Click this and then click the Create button. Here you can link the attachments.
    You can also do this by means of a program.
    You can retrieve such documents from teh sales order whenever you want.
    Hope this helps

  • I can't use thunderbird 31.2.0 to send attachement from a pdf file with Acrobat PRO XI

    I can't use thunderbird 31.2.0 (Mozilla) to send attachement from a pdf file with Acrobat PRO XI. Each time, Acrobat replies (in french) : "il n'y a pas de client pour la messagerie par défaut". Thunderbird is indicated as "by default" in the list of programs of Windows.
    Even if I type my e-mail address, etc. in the account of Acrobat, it doesn't change. Each time, I have to record a PDF file in a folder and return to Thunderbird to send it as attached. It is a too long process,  compared with Windows XP with Acrobat Reader or Acrobat 5, I had before.
    Would you please help me to explain the process. My OS is Windows 8.1.
    Thank you

    Thank you for your answer.
    What i want to do : to send PDF files as attached documents in a message
    generated by thunderbird by my e-mail address [email protected] or
    another one I have.
    When I introduce my e-mail address under Edit-Preferences-Email
    Accounts, Acrobat ask the e-mail account, the password, the IMAP for
    ingoing message (and I use POP) and SMTP for outgoing messages. Even I
    introduce all the datas, it doesn't change, Acrobat is unable to send
    the message. And the process is not convenient, because I need all my
    outgoing messages be documented inside Thunderbird.
    So, I repeat my request : how can I use thenderbird as program by
    default from Acrobat or any other software ?
    Thank you for your next message.
    Jean-Luc Rongé
    Le 21-10-14 14:24, ANAND8502 a écrit :
    >
          I can't use thunderbird 31.2.0 to send attachement from a pdf
          file with Acrobat PRO XI
    created by ANAND8502 <https://forums.adobe.com/people/ANAND8502> in
    /Acrobat Installation & Update Issues/ - View the full discussion
    <https://forums.adobe.com/message/6850947#6850947>

  • I recently purchased an Iphone 6plus and I am receiving pdf attachments that are shown as winmail.dat attachments on the phone. When I check e-mail via  my macbook pro the attachment is a pdf and I can open it. Why is this happening?

    I recently purchased an Iphone 6plus and I am receiving pdf attachments that are shown as winmail.dat attachments on the iphone. When I check the same e-mail on my macbook pro the attachment is a pdf and I can open it. Why is this happening?

    I had this problem too after i upgdatd to OS X Mavericks... only the songs on my iphone 5s that i purchased from itunes would play.
    i read something about it being a syncing issue. when you plug your phone into your computer with the usb cable, the person said to switch from automatic syncing of itunes to the "manual" option. mine was already set to manual so i wasn't sure anything would work. BUT, when i plugged my phone into my computer, it started to sync all of my music on my phone again (top of itunes bar where song playing/time is listed said "now syncing 123/534 songs to x's iphone"). once that was completed, i checked the music app on my iphone and everything was back to normal!
    so, i would suggest setting your music syncing settings to manual if you haven't tried that yet!
    hope this helps!

Maybe you are looking for

  • How to do things Wrong, or the Playbook. A Catharsis.

    Dear Blackberry, I want to talk about your little beautiful tablet: The Playbook. This is a Catharsis, so don't take this personal, it isn't. I have one, I found it's hardware to be incredible. The OS (2.0) it's also fast and responsive

  • Problems with new iPod touch apps

    Hi everyone, I'm in a pickle. I just bought the new apps update for my iPod touch, but it never uploaded to my iPod. Help is greatly appreciated!

  • Need help on how to replace existing Status Profile on IO with a new one

    Hi there, I have created a new status profile SV00001 assigned it to my order types and everything is OK for newly created internal orders. But I would also like the old internal orders which currently have status profile 0000002 to be assgned to thi

  • Help - How to Remove X on the Dialog Title Bar

    I have been trying for a while to remove the X(Close) on the Jdialog title bar. Is this possible? Is there an alternative? I have a progress bar in the JDialog and don't want to user to X out.... appeciate the help.

  • How to view metadata in iTunes music store

    I have to figure out how to view metadata for songs that have been funded by a public funding agency. The artist/record label is supposed to thank the funding agency in the metadata of albums/singles. How can I view this in the iTunes store (without