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.

Similar Messages

  • Customizing PO approval workflow POAPPRV for email subject/body changes

    Hi,
    The requirement is to modify the email subject/body of the emails sent to the suppliers once PO is approved.
    They would also like to remove the
    'From/To/Sent/Id' which is displayed as first section in body currently.
    I am new to workflow, so could you please guide me in achieving this?
    Is workflow customization only option?
    Do we have any other way in which the requirement can be accomplished?
    Thanks!

    >
    I would like to know how FYI gets appended before.
    in the body before the actual text, From/To/Sent/Id are all displayed. I would like to know where they are fetched from.
    I can understand it uses some template for email, but am unable to locate it.
    >
    The FYI is appended based on the type of notification. Since this message does not require any action from user, Oracle adds FYI.
    See http://apps2fusion.com/apps/workflows/327-workflow-notification-template to understand the template.
    >
    Also can you point me to good references for workflow customization.
    >
    You can look at
    Customizing seeded workflow steps
    http://www.workflowfaq.com/
    Anil Passi has good tutorials for this http://oracle.anilpassi.com/oracle-workflow-training-lesson-1-2.html
    See white paper at http://www.vivekasolutions.com/user_docs/WFCustomizationWP.pdf
    >
    Because this is the only change that am expected to do in this critical PO workflow. I dont want something else to be affected because of this.
    >
    As long as you stick to PO approval workflow, you won't affect other areas. If you modify the template (provided you find it), you may affect other areas.
    Sandeep Gandhi

  • Exit/Enhancement for External Send

    Hi all,
    I have a requirement that needs to retrieve the correct email recipient of vendor(this is for PO). A custom output type for External Send is maintained in NACE. The vendor has two email address maintained (one with a note that it is for PO), I can check which email address is correct through tables ADR6 and ADRT. Buts there any exit/enhancement where I can add the logic for this?
    Thanks,
    Eo

    Check enhancement 'LMEDR001' this is the customer exit that would be used for enhancement of the print program check the changing parameter CX_DOC which is of the type MEEIN_PURCHASE_DOC_PRINT which has structure 'MSGPA' which should have address numbers information.
    How does that help though?  There's no access to the e-mail address - what he's trying to do is set the correct address when multiple ones exist on the vendor.
    As I remember, with the PO external send processing, you could only use the default address on the vendor (because of a hard-coded READ in the code), so we use the default e-mail address for PO sends and for other objects such as payment advices (where you can actually pick the e-mail address), we tag the notes with an identifier.  I have not revisited this code in ECC 6.0 though.
    You can see where the e-mail address is set in function CONVERT_COMM_TYPE_DATA; it uses the old macro calls to set the e-mail recipient which is derived from a simple ADDR_GET call (using the address number).  There aren't any exits here but you could use an implicit enhancement to change the values.

  • I want to change the email that iCloud  uses to send security answers to and i don't know how.

    Hi, i just installed my mavericks and i was going through all my settings and keychains and everyting. Last month i deleted the email account that i think we use to send the answers of the security questions on and i forgot the answers. I want to change the email that iCloud  uses to send security answers to and i don't know how. Can it be done?

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

  • 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});

  • I can't buy apps in my iPhone because iTunea ask me all time security questions and I don't remember the answers, but I send to my email and itune didn't send me for single up

    how come I can reset my security questions? I sens to my email and iTunes didn't send me for reset them

    Alternatives for Help Resetting Security Questions and/or Rescue Mail
         1. If you have a valid rescue email address, then use this procedure:
             Rescue email address and how to reset Apple ID security questions.
         2. Fill out and submit this form. Select the topic, Account Security. You must
             have a Rescue Email to use this option.
         3. This is the only option if you do not already have a valid Rescue Email.
             These are telephone numbers for contacting Apple Support in your country.
             Apple ID- Contacting Apple for help with Apple ID account security. Select
             the appropriate country and call. Ask to speak to the Account Security Team.
         4. Account security issues almost always require you to speak directly to an
             Apple representative to securely establish your identity as the account holder.
             You can set it up so that Apple calls you, either immediately or at a time
             convenient to you.
                1. Go to www.apple.com/support.
                2. Choose Contact Support and click Contact Us.
                3. Choose Other Apple ID Topics and choose the appropriate topic for
                    your issue.
                4. Follow the onscreen instructions.
             Note: If you have already forgotten your security questions, then you cannot
             set up a rescue email address in order to reset them. You must set up
             the rescue email address beforehand.
    Your Apple ID: Manage My Apple ID.
                            Apple ID- All about Apple ID security questions.

  • HT1918 cannot change my email account that the iTunes store uses for my login

    cannot change my email account that the iTunes store uses for my login

    What happens when you try to change it ? You should be able to change by logging into your account on this page : http://appleid.apple.com
    Or via the Store > View Account menu option on your computer's iTunes
    You might then need to log out of your account on any devices (iPad, iPhone, IPod Touch) that you have and then log back in so as to 'refresh' the account on them.

  • Anyone succeeded to find a way to change the email subject ?

    n/t

    hello,
    up to 6i you can not change the email-subject. however in 9i you will have full control of most of the mail-parameters like subject, cc, bcc, ...
    regards,
    the oracle reports team

  • Standard smartform for application V5-Groups. and Output type LL00.

    Hi,
    I want the name of standard smartform for application V5-Groups. and Output type LL00.
    I need to print Ship to party address of Multiple Deliveries.
    Can anyone tell me the standard form name and Print program name.
    Regards,
    Rajender

    Hi Lavanya,
    SD_LOADING_LIST is a script.
    Can you please provide me with a standard smartform as we need to develop this in smartform only.
    Thanks,
    Rajender.

  • CS-MARS. Change default email subject "System Scheduler"

    Hi,
    We have a CS-MARS 100 with the last 4.2.1 and I've configured several reports to be sending by email. I'd like to change the default subject that it's shown as "System Scheduler (scheduler)" in the email client (Outlook, p.e.) and if it's possible the account used for sending that mails: [email protected]
    We can change the domain name but not the account name or email subject.
    Does anybody know how to do that?
    Thanks a lot.

    This URL has some useful information on CSMARS:
    http://www.cisco.com/en/US/products/ps6241/prod_release_note09186a00804fc676.html

  • How do I change the email associated with my facetime account. For some reason I was notified that the email was switched to an older email that I had and I need to change it back.

    How do I change the email address associated with FaceTime.  I received a notification that it was being changed to an old email address. I want to change it back to my current email.

    Hi there,
    You may find the information in the article below helpful.
    FaceTime for Mac 1.x: Sign in to FaceTime
    http://support.apple.com/kb/PH5645
    -Griff W.

  • HOW to make 2 step Communication strategy  for external send

    Hi
    I have made this 2 step communication strategy and attached to an email output type for purchase order, but it doesn't work as expected.
    The 2 steps are 1  INT,  2 = PRT
    If the vendor/supplier has an email in the address the purchase order is send by email, but if he has no email addres, then the output fails with message "E-mail address incorrect or non-existent"
    I expected the result to be that it would create a print instead of an email.
    What is wrong?
    Thanks.
    Thomas Madsen Nielsen

    I found the solution myself.
    The communication type PRT = Print is not supported, but LET = Letter will do exactly the same thing.
    I found the answer in OSS note 323720.
    Thanks

  • Communication strategy missing for external send

    Dear all,
    I want to send O/Cs via mail, therefore I configured the transmission medium of the output type to "external send". As well I set the communication strategy for mail to the output type. Nevertheless I receive an error, when I want to save the O/C with a new message. Please be so kind and take a look at the attached screenshot. Do you have any idea why the error occurs?
    Best regards,
    Benjamin

    Hi Susan,
    Please be so kind and take a look at the SAP-note 2017440 - Communication strategy cleared in message output  . In my case this solved the problem.
    Best regards,
    Benjamin

  • How do I change the email that the security info sends to

    I have recently bought a $20 gift card for iTunes and if I try to buy a Game it comes up with the security questions and I don't know them.
    I tried to reset the questions but it's sending them to a email I don't have access to.
    So I need to reset my email that the security info sends to but I don't know how
    Any help?

    You cannot and need to ask Apple to reset your security questions; ways of contacting them include phoning AppleCare and asking for the Account Security team, clicking here and picking a method for your country, and filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (104761)

  • I can't change my email that's used to send reset security info to

    I recently got the newest iPod Touch in blue for my birthday but I can't buy anything that's not free. It always says: "You need to enter your password and answer the security questions." or something like that but I can't remember the answers to them and I can't reset because I've entered the email wrong (I put .couk instead of .co.uk) and I was wondering if anyone knew how to change that email because I've tried everything I can think of and I can't seem to find a way.

    Hello Confused-customer,
    I know not being able to purchase content can be frustrating. I have located an article that will walk you through a series of steps to assist you in updating your Apple ID account information. You may want to review the information under the heading "How do I change my Apple ID Name or personal information?"
    Frequently asked questions about Apple ID
    http://support.apple.com/kb/ht5622
    Thank you for contributing to Apple Support Communities.
    Cheers,
    BobbyD

Maybe you are looking for