Change Email subject line for PDF output through smartforms

Dear all,
Currently i am working in Client ECC6.and we are useing The Smartform for Sending PDF document to the Customer.
Since recently email was setup so these invoices can be mailed directly to the customers, but we face the problem that when invoices are sent via email, the subject is like this.
From: Ramesh Babu mailto:ramesh_babu@abc
Sent: Wednesday, August 27, 2008 10:40 AM
To: Babu, Ramesh
Subject: New Invoice (mail/prnt).
Now the customer Requirement is that ,they dont want to disclose the Email address of the sender.
so they want to change the Form line and one hard codeed line always send to the customer like Ex below.
From: "Help Me Please'' .
This will aplicable for all sender ,if he send it by foreground or background as well.
so could you please sugest me how can i do that coding,or is there a user-exit to overrule the Standard SAP behaviour.
My Print program name: ZLB_BIL_INVOICE .
Regards,
Moni

Hi,
refer this,
you can change the subject line.
FORM docu_send_email USING pv_otfdata  TYPE tsfotf
                           pv_emailid  TYPE any
                           pv_formname TYPE any.
  DATA: lv_filesize    TYPE i,
        lv_buffer      TYPE string,
        lv_attachment  TYPE i,
        lv_testo       TYPE i.
  DATA: li_pdfdata  TYPE STANDARD TABLE OF tline,
        li_mess_att TYPE STANDARD TABLE OF solisti1,
        li_mtab_pdf TYPE STANDARD TABLE OF tline,
        li_objpack  TYPE STANDARD TABLE OF sopcklsti1,
        li_objtxt   TYPE STANDARD TABLE OF solisti1,
        li_objbin   TYPE STANDARD TABLE OF solisti1,
        li_reclist  TYPE STANDARD TABLE OF somlreci1,
        li_objhead  TYPE soli_tab.
  DATA: lwa_pdfdata  TYPE tline,
        lwa_objpack  TYPE sopcklsti1,
        lwa_mess_att TYPE solisti1,
        lwa_objtxt   TYPE solisti1,
        lwa_objbin   TYPE solisti1,
        lwa_reclist  TYPE somlreci1,
        lwa_doc_chng TYPE  sodocchgi1.
  CONSTANTS: lc_u           TYPE char1  VALUE 'U',
             lc_0           TYPE char1  VALUE '0',
             lc_1           TYPE char1  VALUE '1',
             lc_pdf         TYPE char3  VALUE 'PDF',
             lc_raw         TYPE char3  VALUE 'RAW',
             lc_ordform     TYPE char15 VALUE 'ZORDCONFIRM_01',
             lc_attachment  TYPE char10 VALUE 'ATTACHMENT'.
  CALL FUNCTION 'CONVERT_OTF'
    EXPORTING
      format                = lc_pdf
      max_linewidth         = 132
    IMPORTING
      bin_filesize          = lv_filesize
    TABLES
      otf                   = pv_otfdata
      lines                 = li_pdfdata
    EXCEPTIONS
      err_max_linewidth     = 1
      err_format            = 2
      err_conv_not_possible = 3
      err_bad_otf           = 4
      OTHERS                = 5.
  IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
  LOOP AT li_pdfdata INTO lwa_pdfdata.
    TRANSLATE lwa_pdfdata USING ' ~'.
    CONCATENATE lv_buffer lwa_pdfdata INTO lv_buffer.
    CLEAR lwa_pdfdata.
  ENDLOOP.
  TRANSLATE lv_buffer USING '~ '.
  DO.
    lwa_mess_att = lv_buffer.
    APPEND lwa_mess_att TO li_mess_att.
    CLEAR lwa_mess_att.
    SHIFT lv_buffer LEFT BY 255 PLACES.
    IF lv_buffer IS INITIAL.
      EXIT.
    ENDIF.
  ENDDO.
Object with PDF.
  REFRESH li_objbin.
  li_objbin[] = li_mess_att[].
  DESCRIBE TABLE li_objbin LINES lv_attachment.
Object with main text of the mail.
  lwa_objtxt = space.
  APPEND lwa_objtxt TO li_objtxt.
  CLEAR lwa_objtxt.
  DESCRIBE TABLE li_objtxt LINES lv_testo.
Create the document which is to be sent
  lwa_doc_chng-obj_name  = text-008.
  lwa_doc_chng-obj_descr = text-008.
  lwa_doc_chng-sensitivty = lc_0.
  lwa_doc_chng-obj_prio = lc_1.
  lwa_doc_chng-doc_size = lv_testo * 225.
Pack to main body.
  CLEAR lwa_objpack-transf_bin.
header
  lwa_objpack-head_start = 1.
The document needs no header (head_num = 0)
  lwa_objpack-head_num   = 0.
body
  lwa_objpack-body_start = 1.
  lwa_objpack-body_num   = lv_testo.
  lwa_objpack-doc_type   = lc_raw.
  APPEND lwa_objpack TO li_objpack.
  CLEAR lwa_objpack.
Create the attachment.
Fill the fields of the packing_list for the attachment:
  lwa_objpack-transf_bin = gc_x .
header
  lwa_objpack-head_start = 1.
  lwa_objpack-head_num   = 1.
body
  lwa_objpack-body_start = 1.
  lwa_objpack-body_num   = lv_attachment.
  lwa_objpack-doc_type   = lc_pdf.
  lwa_objpack-obj_name   = lc_attachment.
  lwa_objpack-obj_descr  = text-008.
  lwa_objpack-doc_size =  lv_attachment * 255.
  APPEND lwa_objpack TO li_objpack.
  CLEAR lwa_objpack.
  lwa_reclist-receiver   = pv_emailid.
  lwa_reclist-rec_type   = lc_u.
  lwa_reclist-notif_del  = gc_x.
  lwa_reclist-notif_ndel = gc_x.
  APPEND lwa_reclist TO li_reclist.
  IF li_reclist IS NOT INITIAL.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
      EXPORTING
        document_data              = lwa_doc_chng
        put_in_outbox              = gc_x
      TABLES
        packing_list               = li_objpack
        object_header              = li_objhead
        contents_bin               = li_objbin
        contents_txt               = li_objtxt
        receivers                  = li_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 <> 0.
         MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno
                 WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
  ENDIF.
ENDFORM.                    " DOCU_SEND_EMAIL

Similar Messages

  • Email Subject Line - populating and customising

    Hi,  There was a forum topic called "
    Email Subject Line - populating - Business Catalyst
    in the last forum but I can't find it here...
    Did anyone find how to use tag's or customise the Email subject line for outgoing system emails? (E.g invoice, quote, workflows etc)
    I've tried some tags like order id but they don't work.
    The reason we need to customise the subject line is because we use gmail and all the workflows have the same subject so they link together and you can't tell how many emails there are therefore often miss some. Plus all our workflow and system emails seem to be going to our spam so I thought if we could make it customised it would help.

    I use gmail, I have thunderbird and this does not happen. The UI interface for google does but you can also stop it from doing that in the admin settings I believe.
    Sme other good email clients for mac and oc, paid and free.
    You can create folders for go gmail itself and email clients with sorting rules too.
    Do not recall seeing guides for rendering tags in the email subject, net seen that and been using bc a long time.

  • How do I change the subject line on incoming email

    On my old PC I could easily start typing in the subject line of a received email.  This would allow me to search for a name later on when looking for an invoice.  I dont know how to change the subject line of an incoming email to my imac?

    This site tells you how to edit the subject of a message.  I just tested using OS X 10.8.5 and it worked, without altering the time & date stamp, or the original sender info. 
    http://email.about.com/od/macosxmailtips/qt/et_edit_receive.htm
    Steps copied below:
    Drag and drop the desired message out of Mac OS X Mail onto the Desktop.
    Ctrl-click on the message copy on the Desktop.
    Select Open With | TextEdit from the menu.
    Make the desired changes to the message source.To change a message's subject, look for "Subject:" at the beginning of a line starting from the top.  (hint, you can use 'Command-F' to bring up a search window to help you find the "Subject").
    Close TextEdit saving the document.
    Ctrl-click on the message on the Desktop again.
    Select Open With | Mail from the menu this time.
    Now select Message | Copy To followed by the message's original folder from the menu in Mac OS X Mail.
    Close the message window.
    Delete the message copy from your Desktop.
    Optionally, delete the original message in Mac OS X Mail.  (when I tested this, the original message was no longer there.  Not sure what happened to it, but the changes worked without editing the time, date, or original sender information.)

  • Customizing Email Subject Line

    Can the email subject line be customized when sending my form? If so how do you change it?

    Hi,
    FormsCentral doesn't send emails for distributing the form. You, as the form author, are responsible for distributing the form.
    Regards,
    Brian

  • Reset Password email:  subject line and body

    For an email that is sent from this page:
    Home>Manage Workspaces>Manage Developers and Users>Reset Password
    Question: Where/how can I change the subject line and message-body contents for this email

    I would like to customize the subject line and body. for example...
    Current Email:
    Subject: Your password has been changed.
    Body: Account password changed for user CXXXXX.
    I would like to modify to:
    Subject: Your 'Oracle Application Express' password has been changed.
    Body: 'Oracle Application Express' Account password changed for user CXXXXX

  • Changin iPhoto Default Email Subject Line

    Is there anyway to change the default email subject line, currently set as 'x Great iphotos' when using iphoto in conjunction with my email client to some thing else.

    Yep it is that file. just replace
    email_subject
    in the following line with whatever you want as long as its in quotations eg.
    make new outgoing message with properties {subject:"photos", visible:true}
    I like the comment in the script-maybe Apple's internal bug reporting system needs to be looked at!
    -- We have been having problems with inserting images before the signature.  There seems to
      -- be some sort of bug with attachments.  Even iterating the images backwards and inserting
      -- the images at the "beginning" doesn't work for more than 1 images.  Strange.
      -- Anyway, we note the signature here, remove the signature from the message, and then
      -- set the message signature back at the bottom.
      -- Peter

  • Email Subject Line E-recruiting

    Hi,
    We need to change the subject line of email sent via activities.
    By default the smartform subject line is sent as email.
    Is there any way to change this and hardcode to some value.
    Thanks in advance,
    NB

    I use gmail, I have thunderbird and this does not happen. The UI interface for google does but you can also stop it from doing that in the admin settings I believe.
    Sme other good email clients for mac and oc, paid and free.
    You can create folders for go gmail itself and email clients with sorting rules too.
    Do not recall seeing guides for rendering tags in the email subject, net seen that and been using bc a long time.

  • Option to change a Subject Line in a Forum question

    Hello,
    In Forums, many times I see that people create duplicate questions because after posting a question and getting some responses, they realize that the Subject Line is not descriptive enough .
    e.g
    /thread/1520926 [original link is broken]
    /thread/1519271 [original link is broken]
    I personally feel that if we provide an option to a question's owner to change the subject line at any point of time( even after many replies)  if needed, it could avoid some duplications in questions.
    (Let me know if its already there and I dint know about this feature
    Regards,
    Pooja Pandey

    Hi Pooja,
    You can change the title and the post itself, but you need to realize the mistake.
    If I remember correctly, you have 15 minutes time for this.
    There were some strategists in the past who posted "place holders" or went back and edited their posts once someone had provided a better solution. This is not main the intention of the forums and sharing you knowledge at the time of posting.
    My recommendation is to do a quick check on the OP before answering by checking their recent posts via the user profile, and if you find the question interesting but are not sure about aspects of it, then don't rush in but take your time to work it out.
    A respectfull OP should appreciate this, and the quality of the discussion around the solution.
    Personally, I have also learnt very valuable skills from SDN when someone stepped in to say "Sorry Julius, but that is a legacy approach and you can now use XYZ..." or "That is bad advise, because you have not considered ABC.." etc.
    Such discussions are worth gold to everyone, and there is nothing wrong with making "innocent" mistakes.
    My 2 cents of thinking before posting,
    Julius

  • I set up an autoreply but i cannot work out how to change the subject line to the one I want

    I set up an automatic reply but the subject line come up as re: and what the other person wrote. I want to change the subject line to a set one to all emails. How can I do that?

    What email program are we referring to?

  • How do I add the customer's name to Workflow Notification email subject line?

    How do I add the customer's name to Workflow Notification email subject line?
    I'm expecting that I need to add a tag, but I'm not sure what the correct tag would be, I have tried a few but it just writes the tag I inserted and not the customer's name.
    Thanks

    This is something you can not add at the moment. You can change the layout a bit of workflow notifications from the system but you can not change the subjects at this time to render a system tag like that.

  • How can I have the title of the document be in the email subject line automatically when sending?

    How can I have the title of the document be in the email subject line automatically when sending?

    It can be done if you use a script, like this one:
    this.mailDoc({cTo: "[email protected]", cSubject: this.title});

  • Email subject line with Alert unique Identifier,host name, instance name

    Is there any way that i can set the following information in the notification email subject line,
    Alert Unique Category,
    Host name,
    instance name.
    Please advise.
    Thanks.

    Yes I did look under the email customization section. But i am unable to get how to place alert Unique ID with in the subject line as i don't see any variable to place under it.
    Please advise.
    Thanks.

  • Enable PDF security for PDF output of reports from Answers

    In BI publisher, We have options to enable PDF output security like diable printing, Encryption etc, How do we set such options under Oracle Answers. I would like to enable security control for PDF output for all the reports from Oracle Asnwers.
    Hardeep

    Not supported.

  • Change "SAPScript" email subject/body for External Send(5) for output type?

    Hello,
    I'm emailing a SAPscript form (converted to PDF) generated via Transmission Medium 5 (External send) for output type (EK00) and need to change email's subject and body of email created by SAP code.  Any suggestions on how to change email's subject and body?
    Thanks,
    Billy

    Also if u want to add a body to the mail.  See the below form (sub routine) which needs to be mentioned in NACE.  Either u can keep this routine in the driver program or u can put in separate report program.  All thing u need to is see the below code and mention the name of the program and form name in nace.  Double click on output type in nace. u will find a tab stripped screen in right.  In the screen u can see the first tab as 'General data'  and at the bottom a block with title 'Replacement of text symbols' can be seen.  There u need to pass this program name and form name.
    Execute ur program and test the result.
    FORM text_symbol_replace TABLES pt_lines  STRUCTURE tline
                              USING ps_thead  STRUCTURE thead
                                    ps_nast   STRUCTURE nast.
      DATA:
        lv_kunnr LIKE vbak-kunnr,          " AN0465 Add AKKUMA1 02/19/07
        lv_new_cursor_column LIKE sy-tabix," Cursor column
        lv_new_cursor_line   LIKE sy-tabix," Cursor row
        lv_changed,                        " Indicator
        lv_matnr     LIKE vbap-matnr,
        lv_vkorg     LIKE vbak-vkorg,
        lv_vtweg     LIKE vbak-vtweg,
        lv_desc(20),
        lv_name      TYPE thead-tdname,    " Name
        lt_lines     LIKE tline OCCURS 0 WITH HEADER LINE,
        lv_currentprogram LIKE sy-repid.   " Program Name
      DATA :
        ps_lines LIKE tline.               " Structure
      CONSTANTS:
        lc_int TYPE nast-nacha VALUE '5',  " External Send
        lc_comma TYPE c VALUE ','.         " Comma Separater
      DATA: BEGIN OF ls_fname,
              dsnam TYPE nast-dsnam,       " Spool Name
              dsuf1 TYPE nast-dsuf1,       " Spool Suffix1
              dsuf2 TYPE nast-dsuf2,       " Spool Suffix 2
            END OF ls_fname.
      FIELD-SYMBOLS: <lfs_nast> TYPE vnast.
      IF ps_nast-kschl EQ gc_zj17.
    Fetching vbak-kunnr.
        SELECT SINGLE kunnr                " Customer
                      vkorg
                      vtweg
                 INTO (lv_kunnr,lv_vkorg,
                       lv_vtweg)
                 FROM vbak
                WHERE vbeln EQ ps_nast-objky.
        IF sy-subrc EQ 0.
          SELECT SINGLE matnr INTO lv_matnr
           FROM vbap
             WHERE vbeln EQ ps_nast-objky.
        ELSE.
          IMPORT xvbak-kunnr TO lv_kunnr FROM MEMORY ID 'YSOLDTO'.
          IMPORT xvbak-vkorg TO lv_vkorg FROM MEMORY ID 'YSALESORG'.
          IMPORT xvbak-vtweg TO lv_vtweg FROM MEMORY ID 'YDISTCH'.
          IMPORT xvbap-matnr TO lv_matnr FROM MEMORY ID 'YMATERIAL'.
        ENDIF.
        IF sy-subrc EQ 0.
          CONCATENATE lv_matnr lv_vkorg lv_vtweg
           INTO lv_name.
          CALL FUNCTION 'READ_TEXT'
               EXPORTING
                    id                      = '0001'
                    language                = ps_nast-spras
                    name                    = lv_name
                    object                  = 'MVKE'
               TABLES
                    lines                   = lt_lines
               EXCEPTIONS
                    id                      = 1
                    language                = 2
                    name                    = 3
                    not_found               = 4
                    object                  = 5
                    reference_check         = 6
                    wrong_access_to_archive = 7
                    OTHERS                  = 8.
          IF sy-subrc = 0.
            CLEAR lv_desc.
            LOOP AT lt_lines.
              CONCATENATE lv_desc lt_lines-tdline
                     INTO lv_desc
                SEPARATED BY space.
            ENDLOOP.                       " LOOP AT lt_desc
            CONDENSE lv_desc.
          ENDIF.
        ENDIF.                            " AN0465 Add AKKUMA1 02/26/07
    Fetch Region.
        SELECT SINGLE name1 ort01               " City
          INTO (gv_name1, gv_ort01)
          FROM kna1
          WHERE kunnr EQ lv_kunnr.
        IF sy-subrc EQ 0.
          CONDENSE gv_ort01.
          CONCATENATE ':OC:'
                      gv_name1
                      gv_ort01
                      lv_desc
                 INTO ps_lines-tdline SEPARATED BY space.
          LOOP AT pt_lines.
            pt_lines-tdline =  ps_lines-tdline.
            MODIFY pt_lines.
            CLEAR pt_lines.
          ENDLOOP.
        ENDIF.                             " IF ps_nast-kschl EQ gc_z..
      ENDIF.                               " AN0465 Add AKKUMA1 02/19/07
    IF NO TEXT IS PROVIDED READ TEXT USING HEADER INFO
      IF pt_lines[] IS INITIAL AND NOT ps_thead IS INITIAL.
        CALL FUNCTION 'READ_TEXT'
             EXPORTING
                  id       = ps_thead-tdid
                  language = ps_thead-tdspras
                  name     = ps_thead-tdname
                  object   = ps_thead-tdobject
             TABLES
                  lines    = pt_lines
             EXCEPTIONS
                  OTHERS   = 1.
        IF sy-subrc NE 0.
        ENDIF.                             " IF sy-subrc NE 0.
      ENDIF.                               " IF pt_lines[] IS INITIAL
    REPLACE VARIABLES USING DATA FROM PROGRAM   YVADOR01
      IF NOT pt_lines[] IS INITIAL.
        lv_currentprogram = 'SAPMV45A'.
        CALL FUNCTION 'TEXT_SYMBOL_REPLACE'
             EXPORTING
                  endline = sy-tabix
                  header  = ps_thead
                  program = lv_currentprogram
             IMPORTING
                  changed = lv_changed
             TABLES
                  lines   = pt_lines.
    Subrc Check not required.
        CALL FUNCTION 'FORMAT_TEXTLINES'
             IMPORTING
                  new_cursor_column = lv_new_cursor_column
                  new_cursor_line   = lv_new_cursor_line
             TABLES
                  lines             = pt_lines
             EXCEPTIONS
                  OTHERS            = 2.
        IF sy-subrc NE 0.
          EXIT.
        ENDIF.                             " IF sy-subrc NE 0.
      ENDIF.                               " IF NOT pt_lines[] IS INITIAL
    SPLIT ORDER NUMBER AND PUT THEM INTO SPOOL REQUEST NAME & SUFFIX FIELD
    SAP USES THESE FIELDS TO CONSTRUCT FILENAME
    FOR THE PDF ATTACHMENT IN EMAIL
      IF ps_nast-nacha EQ lc_int OR ps_nast-nacha = '2'.
        IF ps_nast-dsnam IS INITIAL AND ps_nast-dsuf1 IS INITIAL.
          ls_fname = ps_lines-tdline.
          ps_nast-dsnam = ls_fname-dsnam.
          ps_nast-dsuf1 = ls_fname-dsuf1.
          ps_nast-dsuf2 = ls_fname-dsuf2.
        ENDIF.                             " IF ps_nast-dsnam IS INITIAL...
      ENDIF.                               " IF ps_nast-nacha EQ lc_int
    ENDFORM.                               " TEXT_SYMBOL_REPLACE
    Venkat.

  • Can I change the Subject line of a saved email?

    Sometimes I save an email and want to revise the subject line so it's more descriptive of what's actually in the message. I remember being able to do this in Outlook, but can't quite figure out how to do it in Apple Mail. (And I don't want o have to forward it to myself, as that changes the From line.)
    Is there a way to simply edit the Subject line of a saved email?

    Actually, MailTags will kind of do what you want. You can tag a message in a number of ways, and one of them is to make a note, and display that note as the subject of the email. For example, I have a message:
    Re: Re: Initial generic topic
    Which actually contains useful information, so in MailTags I make a note "Pablo's Thesis Results" and click "Show as Subject", and now I see the subject as
    Pablo's Thesis Results
    Matt

Maybe you are looking for

  • IPad 1: Failed sync then it turned itself off/can't switch back on

    I tried to sync my iPad 1 in iTunes but got a message saying it wasn't possible (I've synced on this computer many times before and my iPad was working fine before). Then my iPad turned itself off.  I've tried charging etc but can't turn it back on.

  • I have version 3.6.12 - how do I roll back to my previous version?

    Must get this off my system ASAP and restore earlier version- how? Mouse movement or wheel scrolling makes the pages jump "back" or "forward". Firefox now unstable.

  • Mountain Lion sur Macbook Pro

    Messieurs, Depuis que j'ai installé Montain Lion sur mon Macbook Pro, c'est l'enfer. Mon ordi est d'une lenteur redoutable je suis revenu 15 ans en arrière. Tout est lent pour s'ouvrir (firefox Mail Word) La pale revien à votre salté d'iphoto. Là C'e

  • Having trouble with dell printer and bonjour

    Hi, We recently got iMac computers for our office, however we still have a windows computer we need to be able to use to print. I have the printer, a Dell 1320c, installed on my Mac, and it prints just fine. I also have Parallels and Windows 7 instal

  • Camera Sound

    Hi I have a very small question here, how to turn off the camera sound in the BB 8520? I cant find out this option only. Also, is there any free app to track the location of people on our BB Messenger? Regards Sumit