How do I send reminders to customers thru email directly thru SAP

Please help me find a solution to a problem that : -
I want to send letters / statements / reminders directly  to customers / vendors of smartforms thru email using SAP.
Kindly tell me how do I write program in ABAP. Is there any function module for sending smartforms thru email.
Please help me
Thanks in advance
SK Daniel

We can send smartforms thru mail.
Find the below code.
CONSTANTS: lc_getotf_ex   TYPE   tdgetotf  VALUE 'X',
             lc_no_dialog   TYPE   tdsfflag  VALUE 'X',
             lc_preview     TYPE   tdpreview VALUE 'X'.
Set Control Parameters and composer Parameters for requirement.
  gwa_control_param-no_dialog  = space.
  gwa_control_param-preview    = lc_preview.
  gwa_composer_param-tdimmed   = gc_ex.
If the File Save Path Is Specified Smart Form to Covert to PDF.
  IF gv_fullpath IS NOT INITIAL.
    gwa_control_param-getotf     = lc_getotf_ex.
    gwa_control_param-no_dialog  = lc_no_dialog.
  ENDIF.
call Smart Form Function Module
  CALL FUNCTION gv_smart_form_fm
    EXPORTING
      control_parameters = gwa_control_param
      mail_recipient     = gt_recipient
      mail_sender        = gt_sender
      output_options     = gwa_composer_param
      user_settings      = space
      gv_summary         = gv_summary
      gv_detail          = gv_detail
      gv_multi           = gv_multi
    IMPORTING
      job_output_info    = gwa_job_output_info
    TABLES
      gt_costsheet       = gt_costsheet
      gt_firstcost_sf    = gt_firstcost_sf
      gt_costload_sf     = gt_costload_sf
      gt_misc            = gt_misc
      gt_cost            = gt_cost
      gt_totals          = gt_totals
      gt_zxparam         = gt_zfico
    EXCEPTIONS
      formatting_error   = 1
      internal_error     = 2
      send_error         = 3
      user_canceled      = 4
      OTHERS             = 5.
  IF sy-subrc <> gc_subrc.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
If the File Save Path Is Specified
Function Module to Convert Smart Form Output to PDF Formate.
  IF gv_fullpath IS NOT INITIAL.
    LOOP AT gwa_job_output_info-otfdata INTO gwa_otf.
      APPEND gwa_otf TO gt_otf.
    ENDLOOP.
Function Module To Conver Smart Form To PDF Formate.
    PERFORM call_convert_otf_2_pdf.
  ENDIF.
  CONSTANTS: lc_tilt1(2) TYPE c VALUE '~ ',
             lc_tilt2(2) TYPE c VALUE ' ~'.
  DATA: lv_filesize TYPE i,
        lv_otf_cmd  TYPE c VALUE 'X'.
Conversion From Smart Form to PDF Formate
  CALL FUNCTION 'CONVERT_OTF_2_PDF'
    EXPORTING
      use_otf_mc_cmd         = lv_otf_cmd
    IMPORTING
      bin_filesize           = lv_filesize
    TABLES
      otf                    = gt_otf
      doctab_archive         = gt_doc
      lines                  = gt_lines
    EXCEPTIONS
      err_conv_not_possible  = 1
      err_otf_mc_noendmarker = 2
      OTHERS                 = 3.
  IF sy-subrc <> gc_subrc.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
  IF lv_filesize = 0.
    EXIT.
  ENDIF.
  LOOP AT gt_lines INTO gwa_lines.
    TRANSLATE gwa_lines USING lc_tilt2.
    CONCATENATE gv_buffer gwa_lines INTO gv_buffer.
  ENDLOOP.
  TRANSLATE gv_buffer USING lc_tilt1.
  DO.
    SHIFT gv_buffer LEFT BY 255 PLACES.
    IF gv_buffer IS INITIAL.
      EXIT.
    ENDIF.
  ENDDO.

Similar Messages

  • How can I send multiple photos in an email?

    How can I send multiple photos in an email?

    In Photos, when looking at your pictures, click the Action arrow first (upper right), before selecting any pictures.  Then you can tap select the pictures you want to send then click "Share" in the upper left.  From there you can Email.
    If you click and open one picture first, the Action button will only allow you to share that one picture.
    (Yeah, took me a while to figure this out. )
    ivan

  • How do I send pages documents in my email to people who do not have pages? have pages?

    How do I send Pages Documents in my email to people who do not have Pages?

    Share > Send to Mail > PDF  will create a suitable size attachment in a new message in Mail

  • How can i send a document through my email with a ipod touch 2nd generation?

    How can i send a document through my email with a ipod touch 2nd generation?

    https://itunes.apple.com/us/app/id314894105?mt=8
    https://itunes.apple.com/us/app/id306273816?mt=8
    They have some limitations though. They have paid versions that remove those limitations

  • How can i send the html animation by email for my freind(yandex,email)?

    how can i send the html animation by email for my freind(yandex,email)?

    Hello! Happy New Year to you too.
    I am not sure I understand your question properly.
    If you are making this animation for a wesite, you can include your files into an iFrame and upload all your files to your website server.
    For example add this to your html page:
    <iframe src="http://www.yourSiteName.com/folderName/index.html" style="width: 100%; height: 400px; margin-top: 10px; margin-bottom: 30px;"></iframe>
    Note: change the sizes, change your site name, folder name and html edge file name.
    If you want to just have your composition on one page by itself, then just add the folder to the root area of your server and then you can send the link by email for people to see it directly on the web. You do not need to put it in an iFrame for this. Just email the web address - so for example:
                                  http://www.yourSiteName.com/folderName/index.html
    Let me know if I understood properly and if not please give us a clear description of what you want to do.

  • How can I send a podcast video via email?

    Hello techies,
    How can I send a National Geographic podcast via email to a friend?
    I've tried importing and exporting without much success.

    Hello Chris Miller,
    Of course I did. I certainly would not have suggested doing something I haven't tried to do myself. Would You? I wouldn't unless we are experimenting with something, but this is not the case here.
    I also mentioned to lexlizandtay to watch the filesize.
    Many ISP's have a 10 MB limit on sending or receiving emails.
    I also said in my above post "Works for Me"......
    I have a 3.8 MB Podcast that was downloaded straight from Apple. I can send this without any problems the way I mentioned above.
    I also have other podcasts that I made myself using GarageBand or Quicktime that work just fine.
    Give it a try.

  • I changed my email because I deleted the other one and I also forgot my security answers so I send a reset to my new email but it's not working it's going to the old one how do I send it to my new email

    I changed my email because I deleted the other one and I also forgot my security answers so I send a reset to my new email but it's not working it's going to the old one how do I send it to my new email

    You need to contact Apple. Click here, phone them, and ask for the Account Security team, or fill out and submit this form.
    (91761)

  • How do I send a pdf file by email

    How do I send a PDF file as an attachment to an email?

    Just like any other file...
    On Sat, Mar 7, 2015 at 12:16 AM, larrys19338374 <[email protected]>

  • How do I send 'emoticons' in my outgoing emails?

    How do I include 'emoticons' in my outgoing emails?

    Is Compose prefs set to usung RTF, not Plain Text?
    If so just type a space then colon, then ) to send
    Or if you have the GIFs just drag them to your compose window.

  • How do we send a billing document by email

    Hi gurus
    How do we send a billing doucment which is generated in vfo1.  How do we send it o the customer by email.  Can any one help me how to solve this issue.  It is very urgent.
    Thanks & Regards

    hi
    You can define a o/p and the program will send a email to customer. The program can pick the emails from the customer master or invocie header and send the email.
    The o/p can be connected to the form which wil define the layput of the email.
    Also u can define the condition records and the requirements at output determination so that u can control auto proposing of the o/p
    Reward if helpful
    Kind Regards
    Sandeep

  • Im trying to send out a word doc and it tells me I need to set up an account with enterage. I already have my email set up with regular mail? How can I send it out through my email that is active?

    Im trying to send out a word document via email. It tells me it cannot send because I have not yet set up an account with enterage. My email is active already with Apple regular mail program. How can I send it out through reg mail?

    Save the Word document. Create your email in your normal mail application (Mail?), click on the add attachment icon (the paperclip if you are using Mail). Navigate to where you saved the Word file and select it. It should now appear as an attachment in your email. If you are sending it to a PC user and you are using Mail make sure 'Send Windows-friendly attachments' is selected in the edit menu. And if you don't want the attachment to display inline within the body of the email Control+Click on it and select 'view as icon'.

  • HT5312 Hello i changed my phone but i forgot my 2 question password , how do i send it back to my email acount?

    Hello i need help , i changed my iphone 4 for a the new iphone 5s but now i forgot my 2 question passeword how do i send it toy email??

    You need to ask Apple to reset your security questions; ways of contacting them include clicking here and picking a method for your country, phoning AppleCare and asking for the Account Security team, and filling out and submitting this form.
    (96944)

  • How do I send entire pdf form via email from web browser

    How do you send a pdf completed form on your web browser via email to email address?

    Hello Wayne, see no offense in this message
    There is a faster scheme.
    Copy the range of cells to send (it may be an entire table)
    Enter the application entitled Preview.
    File > Create a new doc from the clipboard
    File > Send the selected PDF document (I'm not sure of the exact wording).
    It's the highlighted one.
    Bingo, it will create a mail with the PDF embedded.
    Yvan KOENIG (VALLAURIS, France) jeudi 3 novembre 2011 22:32:21
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • How i can send blob attachment with smtp email?

    any body can help me how i can send blob file?

    There are lots of example in the web.
    http://blogs.techrepublic.com.com/programming-and-development/?p=517&tag=content;leftCol

  • How do i send a bookmark in an email

    I want to include a bookmark in an email. When I copy and paste, link doesn't work

    The same way you send a picture in an email!  Write the email and attach the file.
    If you don't know where the song file is, find the track in your iTunes library, and use the command File > Show in Finder.

Maybe you are looking for

  • How to upgred the software of mac mini 2009?

    I have mac mini 209/march I want to up gred it's software can some one help me??

  • Upgrade from 4.7 to ECC 6.0 - Purchase Order Statiscal Delivery Date

    Hi. I need your help please. When an order is created via ME21N, the Statistical Delivery date on the Delivery Schedule Tab gets populated automatically with the delivery date that was captured on the Item Detail, if not manually updated.This is how

  • SBO E-mail through Alert is short of content

    I use Alert function to send E-mail to receipt with query results. The SBO mailer seems to work properly. But the received E-mail is short of contents. When the E-mail has more than one hundred lines of query result, the E-mail has only about 70 line

  • Manual Chapter Marker Insert and Edit

    The dragging and dropping of chapter markers is nice feature. However, is there a way to just enter the chapter markers manually by typing them in through a window of some sort. I know where all my chapter markers generally need to go. It would go a

  • Aperture 3's weird behaviour

    Hi, Ever since upgrading to Ap3 from Ap2, Aperture is consistently losing track of files that have been imported, even though I am able to go into the archive and find them there. The entire project just disappears after import. Usually when I import