Convert Script to PDF using RVADOPFO, w/o using spool and send via email

I want to convert output type script to pdf using the standard include RVADOPFO in the program. The output type is defined as medium '5' and comm starategy is also defined as INT(email) as want to send the output via email.
Now the Include RVADOPFO contains ADDR_KEY-ADDRNUMBER & ADDR_KEY-PERSNUMBER. Where to maintain this info and how to pass in the include..below code is in the include..
IF NOT NAST-TCODE IS INITIAL AND NAST-NACHA EQ '5'.
  ... use stratagy to get communication type
    CALL FUNCTION 'ADDR_GET_NEXT_COMM_TYPE'
         EXPORTING
              STRATEGY           = NAST-TCODE
            ADDRESS_TYPE       =
            ADDRESS_NUMBER     = VBDKA-ADRNR
            PERSON_NUMBER      = VBDKA-ADRNP
              ADDRESS_NUMBER     = ADDR_KEY-ADDRNUMBER
              PERSON_NUMBER      = ADDR_KEY-PERSNUMBER
         IMPORTING
              COMM_TYPE          = LVS_COMM_TYPE
              COMM_VALUES        = LVS_COMM_VALUES
       TABLES
            STRATEGY_TABLE     =
         EXCEPTIONS
              ADDRESS_NOT_EXIST  = 1
              PERSON_NOT_EXIST   = 2
              NO_COMM_TYPE_FOUND = 3
              INTERNAL_ERROR     = 4
              PARAMETER_ERROR    = 5
              OTHERS             = 6.
Please provide solution asap. Thanks in advance

Hi,
Check this links:
Sending Mail from SAP
https://wiki.sdn.sap.com/wiki/display/sandbox/SendMailwithPDFAttachment?showChildren=false#children
Thanks.

Similar Messages

  • Reg: Converting Standard Payslip (PC00_M99_CEDT) to PDF and send via email

    Dear Experts,
    Please provide me a solution to convert the standard Pay slip (PC00_M99_CEDT) Remuneration statement to PDF and send it via email to individual employee by fetching the email ids through the info types.
    I checked the forum, few answers our complete but they have not given the solution.
    Thanks in advance
    Abdur
    Moderator message: moved to requirements forum (points-free!)
    Edited by: Thomas Zloch on Feb 7, 2011 11:53 AM
    Moderator message: moved back to ABAP General.
    Edited by: Thomas Zloch on Feb 9, 2011 1:03 PM

    Dear Experts,
    As suggested, I have written the below code.
    REPORT  ztest_period.
    DATA : td_listobject LIKE abaplist OCCURS 0 WITH HEADER LINE.
    DATA: txtlines(1024) TYPE c OCCURS 0 WITH HEADER LINE.
    DATA: list_tab TYPE TABLE OF abaplist,
          lt_objbin TYPE TABLE OF solisti1 WITH HEADER LINE.
    SUBMIT rpcedtx0 VIA SELECTION-SCREEN EXPORTING LIST TO MEMORY AND RETURN.
    CLEAR td_listobject. REFRESH td_listobject.
    CALL FUNCTION 'LIST_FROM_MEMORY'
      TABLES
        listobject = td_listobject
      EXCEPTIONS
        not_found  = 1
        OTHERS     = 2.
    *IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    *ENDIF.
    CHECK sy-subrc = 0.
    CALL FUNCTION 'TABLE_COMPRESS'
    TABLES
    in = td_listobject
    out = lt_objbin
    EXCEPTIONS
    compress_error = 1
    OTHERS = 2.
    &code&
    I'm getting the raw data from FM 'LIST_FROM_MEMORY' Please tell me how should i convert it to normal data.
    Once i get the data, I need to send an email for individual personnel number for the respective month.
    Please advice me the next step.
    Thanks and Regards,
    Abdur Rafique
    Edited by: abdur rafique on Feb 21, 2011 11:39 AM

  • Script to merge data from Numbers into Pages document, export as PDF and send via email

    Hi,
    I am wondering if it would be possible to achieve the following with an applescript:
    1. Merge Names from Numbers into a multi-page Pages document.
    2. Export each page of the resulting document as a PDF
    3. Attach each of these PDFs to an email with specific text in the body of the email, setting the subject, the 'from' email address, as well as the 'to' email address from a field in the Numbers document.
    4. Optionally send the emails automatically.
    I would be glad to know if this is possible before I embark on trying to write such a script, and for any advice/script that would help me on my way.
    Thanks,
    Nick

    Thanks Bernard.  Sorry if my original post wasn't that clear.  I think you've pretty much got it in your paragraph starting "So, I think you're asking for", but will explain more in the hope that it will be clearer:
    I have a Numbers table with 2 columns: Name and Email.  I have say 50 people in this table and I need to email each person a version of a one page Pages document which would be identical except for their name.
    The Name field is the only field that needs to be merged into the Pages document (one time only).
    Once the merging has taken place the versions of the one page Pages document need to be exported as a PDF and attached to emails, one email from each person in the table in the Numbers document, with each email going to the email address corresponding to the name in the Numbers document.
    The text in the email would be identical except for the name again.  The text for the email body, subject as well as the 'from' field would be contained in the script (i.e. generated by the script).
    It would also be good to have the option of sending the emails automatically or manually, so that I could check that the emails that are generated are correct before sending.
    I hope that's clearer!
    Nick

  • Online php form (inserts) in pdf form and send via email

    So first hello all.
    There are 4 PDF Forms amd 4 php forms on a website.
    The user should be able to fill out the php form, click on send and the inserts from the user should be stored in the pdf form and send to an email adress.
    I know that there are 3rd party tools, the convert it to a image, draw the inserts and convert it back.
    But i want to know, how to do it with acrobat itself.
    Is there any way to put varaibles in the pdf where php can set (fill)
    If this is impossible:
    I have heard, that there is a server version from acrobat who can manage this.
    The information about this is rarly like i dont understand how much the costs are.
    First : price x (for the server software itself)   
    Second: price y (for every processed document)
    Many thanks in advance
    IT Technik Schiedt

    You cannot use Acrobat on a server in that manner. Acrobat is licensed for one user one system at a time.
    You can create and FDF file with the form field data and use that data to fill-in a PDF. You needd to create a unique PDF that could be added to an email and then deleted. You could also accumulate the data in a database.

  • Sapscript converted to PDF throug spool and sent via email

    Hello gurus, i have the following code for the requeriment and when trying to open file through transaction SOST, the system says that the file is corrupted.
    What am I doing wrong please?
    Help is very appreciated!!!!
        CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
          EXPORTING
            src_spoolid              = w_spool
            no_dialog                = c_marca
            dst_device               = zcts_itcpo-tddest
          IMPORTING
            pdf_bytecount            = w_numbytes
          TABLES
            pdf                      = i_pdf
          EXCEPTIONS
            err_no_otf_spooljob      = 1
            err_no_spooljob          = 2
            err_no_permission        = 3
            err_conv_not_possible    = 4
            err_bad_dstdevice        = 5
            user_cancelled           = 6
            err_spoolerror           = 7
            err_temseerror           = 8
            err_btcjob_open_failed   = 9
            err_btcjob_submit_failed = 10
            err_btcjob_close_failed  = 11
            OTHERS                   = 12.
            If sy-subrc eq 0.
                   PERFORM f_convert_pdf TABLES i_pdf
                                                                     i_objbin.
                   PERFORM f_send_mail.
            endif.
    FORM f_convert_pdf  TABLES   i_source_tab STRUCTURE tline
                                 i_target_tab STRUCTURE zcts_objbin.
      DATA: l_hfeld(1600) TYPE c,
            l_offset TYPE p,
            l_tabix TYPE sy-tabix,
            l_linecount_source TYPE i,
            l_length_source TYPE i,
            l_length_target TYPE i.
      CLEAR: l_hfeld,
             l_offset,
             l_tabix,
             l_linecount_source,
             l_length_source,
             l_length_target,
             zcts_pdf,
             zcts_objbin.
      DESCRIBE FIELD i_source_tab LENGTH l_length_source IN BYTE MODE.
      DESCRIBE FIELD i_target_tab LENGTH l_length_target IN BYTE MODE.
      DESCRIBE TABLE i_source_tab LINES l_linecount_source.
      CLEAR:
        i_target_tab,
        zcts_pdf.
      LOOP AT i_source_tab INTO zcts_pdf.
        l_tabix = sy-tabix.
        MOVE zcts_pdf TO l_hfeld+l_offset.
        IF l_tabix EQ l_linecount_source.
          l_length_source = STRLEN( zcts_pdf ).
        ENDIF.
        l_offset = l_offset + l_length_source.
        WHILE l_offset GE l_length_target.
          zcts_objbin = l_hfeld(l_length_target).
          APPEND zcts_objbin TO i_target_tab.
          CLEAR zcts_objbin.
          SHIFT l_hfeld BY l_length_target PLACES.
          l_offset = l_offset - l_length_target.
        ENDWHILE.
        IF l_tabix EQ l_linecount_source.
          IF l_offset GT 0.
            zcts_objbin = l_hfeld(l_offset).
            APPEND zcts_objbin TO i_target_tab.
            CLEAR zcts_objbin.
          ENDIF.
        ENDIF.
        CLEAR:
          i_source_tab,
          zcts_pdf.
      ENDLOOP.
    ENDFORM.                    " f_convert_pdf
    FORM f_send_mail .
      DATA: l_lines_txt TYPE i,
            l_lines_bod TYPE i.
      CLEAR: i_reclist,
             i_objpack,
             l_lines_txt,
             l_lines_bod.
      CLEAR i_objhead.
    Create here the mail body
      DATA: li_mess_bod LIKE solisti1 OCCURS 0 WITH HEADER LINE.
      CLEAR li_mess_bod.
      li_mess_bod = text-012.
      APPEND li_mess_bod.
      IF sy-subrc EQ 0.
        CLEAR zcts_objtxt.
      ENDIF.
      CLEAR i_materials.
      READ TABLE i_materials INDEX 1.
      IF sy-subrc EQ 0.
        CONCATENATE text-013 i_materials-maktx INTO li_mess_bod SEPARATED BY space.
      ENDIF.
      APPEND li_mess_bod.
      IF sy-subrc EQ 0.
        CLEAR li_mess_bod.
      ENDIF.
      IF p_deliv IS INITIAL.
        CONCATENATE text-014 p_sales INTO li_mess_bod SEPARATED BY space.
      ELSE.
        CONCATENATE text-014 p_deliv INTO li_mess_bod SEPARATED BY space.
      ENDIF.
      APPEND li_mess_bod.
      IF sy-subrc EQ 0.
        CLEAR li_mess_bod.
      ENDIF.
      DESCRIBE TABLE li_mess_bod LINES l_lines_bod.
      CLEAR li_mess_bod.
      READ TABLE li_mess_bod INDEX l_lines_bod.
      IF sy-subrc NE 0.
        CLEAR li_mess_bod.
      ENDIF.
      zcts_doc_chng-obj_name = 'CERTIFICATE'.
    Subject
      IF p_deliv IS INITIAL.
        CLEAR i_delivery.
        READ TABLE i_delivery INDEX 1.
        IF sy-subrc EQ 0.
          CONCATENATE text-011 i_delivery-vbeln sy-datum INTO zcts_doc_chng-obj_descr SEPARATED BY space.
        ENDIF.
      ELSE.
        CONCATENATE text-011 p_deliv sy-datum INTO zcts_doc_chng-obj_descr SEPARATED BY space.
      ENDIF.
    Fill the document data and get size of attachment
      zcts_doc_chng-sensitivty = c_sens.
      zcts_doc_chng-doc_size = ( l_lines_bod - 1 ) * 255 + STRLEN( li_mess_bod ).
    Body mail
      CLEAR zcts_objpack-transf_bin.
      zcts_objpack-head_start = 1.
      zcts_objpack-head_num = 0.
      zcts_objpack-body_start = 1.
      zcts_objpack-body_num = l_lines_bod.
      zcts_objpack-doc_type = c_doc_type.
      APPEND zcts_objpack TO i_objpack.
    PDF attachment
      zcts_objpack-transf_bin = c_marca.
      zcts_objpack-head_start = 1.
      zcts_objpack-head_num = 0.
      zcts_objpack-body_start = 1.
      DESCRIBE TABLE i_objbin LINES l_lines_txt.
      zcts_objpack-doc_size = l_lines_txt * 255.
    zcts_objpack-doc_size = w_numbytes.
      zcts_objpack-doc_type = c_doc_type2.
      zcts_objpack-obj_name = c_obj_name.
      CONCATENATE text-010 sy-datum INTO zcts_objpack-obj_descr SEPARATED BY space.
      APPEND zcts_objpack TO i_objpack.
    Mail destinary
      zcts_reclist-receiver = text-018.
      zcts_reclist-rec_type = c_rec.
      zcts_reclist-com_type = c_com_type.
      APPEND zcts_reclist TO i_reclist.
    Call function below to sending PDF object to internet email address
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = zcts_doc_chng
          put_in_outbox              = c_marca
          commit_work                = c_marca
        TABLES
          packing_list               = i_objpack
          object_header              = i_objhead
          contents_bin               = i_objbin
          contents_txt               = li_mess_bod
          receivers                  = i_reclist
        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.
      IF sy-subrc NE 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    " f_send_mail

    hi
    good
    go through this code hope this will help you to solve your problem
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8cd6adbb-0301-0010-39ba-938c601d5db9
    reward point if hlepful.
    thanks
    mrutyun^

  • How do I convert a VLC file to imovie. I have managed to download the mini dvd disc from the video camera onto a USB and have saved the file on my desktop but have no clue how to get it into iMovie so I can edit and send via email. Any ideas!!!

    How do I convert a VLC file to iMovie.
    I've managed to download the mini dvd from the video camera onto a USB and have save onto my Desktop.
    But have no idea how to convert to iMovie so I can edit and attach video to an email and Facebook.

    Edit WMV
    http://www.microsoft.com/windowsxp/using/moviemaker/getstarted/default.mspx
    and http://www.microsoft.com/windows/windowsmedia/forpros/encoder/default.mspx
    Also... I have NOT used those products, I only forward due to other mentions
    Convert http://premierepro.wikia.com/wiki/FAQ:How_do_I_convert_my_files%3F
    Edit Vob http://premierepro.wikia.com/wiki/FAQ:How_do_I_import_VOB_files_/_edit_a_DVD%3F
    $99 http://www.corel.com/servlet/Satellite/us/en/Product/1175714228541#tabview=tab0
    $99 http://www.womble.com/products/mvw.html
    $80 http://www.nchsoftware.com/prism/index.html
    $75 http://www.videoredo.com/en/index.htm
    $75 http://www.magix.com/us/movie-edit-pro/
    $70 http://www.nchsoftware.com/prism/index.html Converter
    $40 http://www.daniusoft.com/dvd-ripper.html#135
    $40 http://www.deskshare.com/dmc.aspx Digital Media Converter
    $00 http://www.squared5.com/ MPEG Streamclip Converter
    $00 http://www.erightsoft.com/SUPER.html Multi-Converter
    $00 http://www.virtualdub.org/ Mpeg to AVI Converter

  • Is Any Body Tell Me How to Creat a Script Form(converting script into pdf)

    waiting for u r responce, pls help me in this concernd

    Welcome to SDN.
    If you want to conver SCRIPT to PDF format check this link -
    hi, hoe to convert script form into pdf format
    how to convert script into PDF
    If you want to convert it to Adobe Forms refer this -
    Adobe Forms
    Regards,
    Amit
    Reward all helpful replies.

  • I have Adobe Photoshop Elements 10. However it converts all my pdf files to Photoshop Elements 10 so I can not email them because no one can read them they are not pdf files anymore. What do I do?

    I have Adobe Photoshop Elements 10. However it converts all my pdf files to Photoshop Elements 10 so I can not email them because no one can read them they are not pdf files anymore. What do I do?

    Nothing has been converted. You first need to convince yourself of this.
    Start Adobe Reader (or Adobe Acrobat, if you have it). Use Open from the File menu. Pick one of your PDF files. Does it open OK? If not, what happens?
    Ok, these emails. What exactly happens when trying to open them?

  • I have Adobe Photoshop Elements 10. However it converts all my pdf files to Photoshop Elements 10 so I can not email them?

    I have Adobe Photoshop Elements 10. However it converts all my pdf files to Photoshop Elements 10 so I can not email them because no one can read them they are not pdf files anymore. What do I do?

    photoshop elements and pd
    If your program is Photoshop Elements (any version), you have posted in the wrong forum. Somehow your thread was posted in the Adobe Premiere Elements Forum (video editing).
    Please re-post your thread in the Adobe Photoshop Elements Forum or wait for a moderator here to see your thread here and move it from here to there.
    Photoshop Elements
    But wherever your thread ends up, please give more details of your situation. I am not understanding "it converts all my pdf files to Photoshop Elements 10". You control the Save As.
    ATR

  • I have a large PDF that I cannot send via email because of its size, 76 MB. How do I shrink this file or convert it to another format so I can email this, less than 20MB? Thanks for your help

    I have a large PDF that I cannot send via email because of its size, 76 MB. How do I shrink this file or convert it to another format so I can email this, less than 20MB? Thanks for your help

    Open the file in Preview and select "Save as..." from the File menu. Select "Reduce File Size" from the Quartz Filter menu and save. The size probably won't be reduced enough, though. You may have to split the file into several parts and mail them separately. Or upload it to a web server and send the link.

  • How to make a PDF embedded image append a report and send via fax electronically from MS SSRS 2012?

    How can I make a PDF embedded image append a SSRS 2012 report and send via fax all electronically?  Is this possible?
    Thanks in advance for your time!

    Hello,
    1. The report item Image can be used to display the image which  embedded in the report, stored in a database, stored on the report server, or stored elsewhere on the Web.
    For example, you can embedded the PDF image in the report and stored as text in the report definition.
    2.Reporting Services includes an e-mail delivery extension and a file share delivery extension which you can send report to user or group through e-mail or send the report to a shared location on your network.
    If you want to send the report to FAX, you may try to create a custom delivery extension depend on your faxing software.
    Reference:Implementing a Delivery Extension
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • The problem is with the new operating system  and sending photo via email when used in my iPad.   From photo I selected 3 photos to send via email. I choose the upload key and choose to send by email. Typing text on the email is very slow.

    The problem is with the new operating system  and sending photo via email when used in my iPad.
    From photo I selected 3 photos to send via email. I choose the upload key and choose to send by email. Typing text on the email is very slow. This is solved by saving the email as a draft and opening the email again from mail.
    Can you amend he system to allow emails to be sent from photo as previously.

    Have you tried restarting or resetting your iPad?
    Restart: Press On/Off button until the Slide to Power Off slider appears, select Slide to Power Off and, after the iPad shuts down, then press the On/Off button until the Apple logo appears.
    Reset: Press the Home and On/Off buttons at the same time and hold them until the Apple logo appears (about 10 seconds). Ignore the "Slide to power off"

  • How to use Java with PL/SQL commands to send an email with attachment

    Apologizes in advance if this is the wrong place to ask the question.
    I need to use Java with PL/SQL commands to send an email with attachment. My java application runs from the command line and does some magic to gather info from an Oracle 11g db. If the DB has sendmail configured, I'd like to send the results of the data gathering as an attachment to the email addresses. I'm not sure how to do this. I've been reading up on on PL/SQL can send email with UTL_SMTP - with attachments. I'm just not sure how to translate that into being triggered by my Java application. Any suggestions or pointers on what I should read would be appreciated.
    Background - I've been programming in Java for 10+ years, but this is my first time using databases. I also have been on these forums for a long time, but lost my profile when it was switched to Oracle.
    Thanks for all help.

    user13726880 wrote:
    The original requirements were put together and given to me, an Oracle newbie. They expected the Java app to use something intrinsic to Oracle and Unix sendmail. To solve my problem, I use a JDBC connection to run some SQL commands. I take that data, format it and send the results by email to the user. By default the requirement is to send it as an HTML attachment using Unix 'sendmail'. So I do that using Runtime exec. I have also added JavaMail functionality as an alternative to sendmail. It works great and as expected.Sounds like a reasonable solution.
    Note however that PL/SQL itself can send email. And PL/SQL can call unix sendmail too.
    However myself I would have done it in java with JavaMail.

  • How can i reduce the pdf file size? I need to send via email, at the moment its at 10mb

    How can i reduce the pdf file size? I need to send via email, at the moment its at 10mb

    Reducing PDF file size or Optimizing PDF is the feature that is supported only by Acrobat Pro (desktop app that is not free).
    Optimizing PDFs (Acrobat Pro)
    Free Adobe Reader products (Reader XI desktop, Reader for iOS, Reader for Android, Reader Touch for Windows 8, etc) do not offer the capability.

  • Create and send an email as a delegate using EWS Managed API

    Hi All,
    I would like to create and send an email as a delegate using EWS Managed API for that i have crated one user as a delegate to that mailbox owner.
    after adding user as delegate, when i try to create an email The EmailMessage class taking only FolderId as parameter but not taking Mailbox object as parameter. But in web reference they said that EmailMessage taking FolderId and Mailbox object as parameter.
    EmailMessage message = new EmailMessage(service);
    message.Subject = "Company Soccer Team";
    message.Body = "Are you interested in joining?";
    message.ToRecipients.Add("[email protected]");
    message.Save(new FolderId(WellKnownFolderName.Drafts, new Mailbox("[email protected]")));https://msdn.microsoft.com/EN-US/library/office/dn641963(v=exchg.150).aspx#bk_createewsmacould you people please help me on this?ThanksNaresh

    Thanks for reply glen.
    I have added delegate using Add-MailboxPermissions. Now i am able to save an email in mailbox owner drafts
    folder.
    Glen,
     I have a one more question.(I am using EWS Managed API).
    I(owner) have shared my calendar(eg. samplecalenderfolder) with another user(delegate) (i.e.,he is the
    delegate of my mailbox) and i have given only permission to the this folder(samplecalenderfolder)
    only and the permission level is Reviewer.
    if i login with user(i.e.delegate) i am not able to get the shared calendar folders(i.e.,samplecalenderfolder)
    that what i a have shared.
    below is the code snippet i am using to get the calendar folders.
    Folder folder = Folder.Bind(service,WellKnownFolderName.Calendar);
    FindFoldersResults addtionalFolders = service.FindFolders(folder.Id, new FolderView(10));
    could you please tell us how to get the shared calendar folders.
    Thanks
    Naresh

Maybe you are looking for

  • QuickTime 7.5.5 and iTunes 10.6.1

    I have recently wiped my HD and reinstalled OS X 10.5.8.  Now iTunes will not open and advises me to me QuickTime 7.5.5 or later must be installed.  I currently have 7.5 and cannot figure out where to get 7.5.5.  Please help, thank you.

  • HT204414 How to import both iPhoto and Aperture library to iCloud Photo Library (Photos app)

    Hi all, Based on the article here (Designate a System Photo Library in Photos - Apple Support) has anyone tried to bring both an iPhoto and Aperture library into iCloud Photo Library so that both libraries are available as one in iCloud and form the

  • PSE 06 Slide show problem

    When I burn a slideshow (jpeg pics)in Photoshop Elements 06, the CD does not load the slideshow. Instead, it just lists the files on the CD. My DVD player does not like the CD, either.

  • Debit memo status blocked while release to accounting

    Hi SAP Gurus,                We have created Debit memo request w.r.t Com Invoice , followed by debit memo. While releasing it to Accounting, the status of that Debit memo is shown as blocked & hence could not release to Accounting . The system is gi

  • Why are my photos showing up on my husband's photo stream?

    Just recently the photos from my Iphone 5 are showing up in my husband's photo stream. He is logged into his own iCloud account and I am logged into my own. He only uses my account for the app store - so that we are not paying twice for the same apps