Email body text formating

Hi ALL,
I need to display the following data in the email body with Material records and DIR records
Line 1 (Header Line):
"Material Master Records "
Line 2:
[ space ]
Line 3 (New Record):
Material Number              Material Desc.          MatGrp                 Basic Material                UOM                  
Line 1 (Header Line):
"Document Info. Records "
Line 2:
[ space ]
Line 3 (New Record):
DocType                   Document                      Part                               Version                                     Doc.Desc.                   
I am using the FM 'SO_NEW_DOCUMENT_ATT_SEND_API1' to send the mail and populating the contents_txt internal table with Material and DIR records using OFFSETS.
I am getting alignment problems and space is getting trucated between the fields.
Can somebody tell me how to do a proper formating to the email body
Thanks
Bhasker

I hope every thing in the mail is in Charater format , every field and length .
the only thing for these sort of option is to have a fixed distance based on max and min length the text can occupy .
Line 1 (Header Line):
"Material Master Records "
Line 2:
[ space ]
Line 3 (New Record):
Material Number Material Desc. MatGrp Basic Material UOM
declare the text as
begin of itab occurs 0 ,
s1(200) type c,
endof itab
1. first text for the header .
itab-S1+10(100)  = " Header text'.
append itab .
clear itab.
2.
append itab ====> fill force an empty line
3.
use concatenate f1X(Y ) f2X(Y ) itab-f3+X(Y ) into itab-s1 separated by space
append itab.
will keep the format in justified format .
similarly repeat the same for the second header .
regards,
vijay

Similar Messages

  • Where to find email body text saved in SAP tenant system?

    Hi
    i wants to change email body text, in my tenant sap system we have one mail format like body as below:
    Hi customer,
    Thank you for your order.
    Yours sincerely,
    xyz
    now i wants to add some extra text in the above body text. for now i am editing it for every order. i want it to setup once.
    below step i am using:
    https://my____.sapbydesign.com
    first login to your tenant system and go to sales order workcenter-->select one sales order id-->view all(in the right most corner)-->now click on you can also button-->edit output settings.
    one window will get open here i am editing the body text.Can anybody suggest me where i can find this saved email body text so that i can append some text in this.

    Hi Douglas,
    Thanks for reply.
    Your given link dosent opens "server not found" error. And Last time i had raised an incident to SAP and got the below reply(Some part of reply).
    "Email body text field feature will be available in FP 1302 system the BO:  /DOC/OM_DOCUMENT_OUT_REQ -> ROOT->ITEM->EMAIL_BODY_TEXT  field is PSM write access is enabled."
    "standard email
    template can further be modified by making the field
    “EMAIL_BODY_TEXT” PSM enabled.
    The hierarchy is ROOT->ITEM->EMAIL_BODY_TEXT.
      This feature can only be available in FP 1302 and above systems".
    Can you help where and how i can use this.

  • How do I add an email body text for remittance advices / payment advices?

    Hello,
    I am trying to send an email body text with the pdf remittance advice to my vendors.
    Background:
    We are running automatic payments to vendors via transaction F110. We have configured the pay run to produce remittance advices for vendor payments. Finally we activated the BTE 00002040, through transaction FIBF, to use a custom copy of the function module SAMPLE_PROCESS_00002040.
    Our payment run sends emails with pdf-file attachments to our vendors correctly.
    <b>The Issue:</b>
    I can not find a way to add text to the body of the email with the attached remittance advice.
    Has anyone advise on how to populate the email body with text?
    Thank you and best regards
    Karsten Arold

    Hello Subhashree,
    I have not implemented the functionality, but I found rerference to SAP Note 1033893 in another forum post.
    Email text to Payment Advice in BTE2040
    Allan

  • Purchase Order External Send with email body text

    hi guru,
    i saw lot of threads but i didn't get coreect answer
    i did below process
    Goto NACE .
    u2022 Select EF and click on OUTPUT TYPES.
    u2022 Then select Output Type NEU and click on processing routines .
    u2022 In that you have to add a new entry - medium 5 .
    u2022 Then you need to assign a program, form routine and form.
    u2022 You can use the standard program i.e. SAPFM06P, FORM routine is always ENTRY_NEU and standard MEDRUCK.
    u2022 Then in PARTNER FUNCTION you need to add a new entry : medium - 5 and function - VN .
    u2022 For subject of the mail goto Mail Title and Texts. In title give PO No. &EKKO-EBELN& .
    u2022 Under General data -> Replacement of text symbols give programm as SAPMM06E and Form Routine as TEXT_SYMBOL_REPLACE .
    u2022 Now the subject will be PO No. 1800004202.
    u2022 You need to maintain your email id in tcode SU01 and also the vendor's email id.
    u2022 Now while creating a new purchase order , change the medium to External Send .
    u2022 Then goto Communication Method and select CS01 . ALSO make sure that the Cover Page Text has value PO No. &EKKO-EBELN& .
    u2022 Goto tcode ME9F .
    u2022 Execute.
    u2022 Select the checkbox and click on Output Message.
    u2022 You will get a message MAII 00000000000001 generated .
    u2022 Use note no 191470
    mail subject is going ,but mail text is not coming.
    some people  suggest this sap note
    Note 786847 - E-mail purchase order w/ e-mail text and several attachments
    i did not get this note.
    give the solution for email body text ,i read some thread,it will solve through abap development .
    please  give solution
    regards
    vijay

    Hi
    1. GO to tcode SCOT.
    2. Double click on SMTP
    3. Click on the set button next to internet
    4. In this screen for SAP Script/ Forms select TXT.
    Regards
    Girish
    Edited by: Girish Bettaiah on Aug 8, 2011 3:11 PM

  • Sending Textmodule in email body text

    Hallo,
    can some body tell me how can I send a textmodule in email body with all of its fomats in a print program. I am successed to send email in print program. I read the text module in internal table but not able to import the formats of text module.
    can somebody help me
    regards
    waseem

    As a start, you can convert the ITF formatted text to HTML formatted text (using one of the available function modules) then send your e-mail body as type 'HTM'.  Otherwise, start from scratch and generate the HTML content yourself using CSS.

  • Sending PO (PDF attach.) via email: adding email body text

    Hi,
    I need to send Purchase Orders to Vendors as PDF attachments to emails; I have successfully configured all the necessary:
    For Output Type NEU
    1) Access to conditions (General Data) set to X
    2) Dispatch time 3 Send with application own transaction
    3) Transmission Medium 5 for External send
    4) Processing routines 5 includes a customer Program and Form to make use of my SAPScript
    I have set up a Communication Strategy (NET - Internet) and created a condition based on a specific document type.
    Using ME9F I can select my PO and successfully output the message - I can view the request using SOST and an email with the PO attached as PDF is sent to the correct recipient (email address of Vendor).
    I would like though to add some text to the body of the email, which is totally empty. Can anyone please advise on how to achieve this? In the Output Type config there is a section "Mail title and texts"... can anyone tell me whether this section can be used to add body text to the email and how? I have managed to customise the "Title/Subject" of the email and PO but cannot find a way to add some text in the email body.
    Thank you very much for your help.
    Gab

    Hi Danilo,
    You need to do some configuration for this.
    - Goto NACE .
    - Select EF and click on OUTPUT TYPES.
    - Then select Output Type NEU and click on processing routines .
    - In that you have to add a new entry - medium 5 .
    - Then you need to assign a program, form routine and form.
    - You can use the standard program i.e. SAPFM06P, FORM routine is always ENTRY_NEU and standard MEDRUCK.
    - Then in PARTNER FUNCTION you need to add a new entry : medium - 5 and function - VN .
    - For subject of the mail goto Mail Title and Texts. In title give PO No. &EKKO-EBELN& .
    - Under General data -> Replacement of text symbols give programm as SAPMM06E and Form Routine as
    TEXT_SYMBOL_REPLACE .
    - Now the subject will be PO No. 1800004202.
    - You need to maintain your email id in tcode SU01 and also the vendor's email id.
    - Now while creating a new purchase order , change the medium to External Send .
    - Then goto Communication Method and select CS01 . ALSO make sure that the Cover Page Text has value PO No. &EKKO-EBELN& .
    - Goto tcode ME9F .
    - Execute.
    - Select the checkbox and click on Output Message.
    - You will get a message MAII 00000000000001 generated .
    If the BASIS guys have made the necessary configuration for sending mail then the mail will go .
    You can see the status in tcode SOST.
    If you want to use a z-programm and z-form then you need add the functions used in standard programm SAPFM06P for generating mail in your z-programm.
    Hope it helps,
    Swapnil

  • Email body text

    Hello,
    we need to add a mailbody text to a standard mail (e.g. sales order confirmation using program SAPMV45A).
    The output type was defined using transaction NACE with application V1 and medium 5 (external sending).
    Currently we have only the PDF attachment without any text.
    The mail text using transaction V/30 cannot be used for external sending (-> OSS 191470).
    Is it possible to fill the mailbody text (argument: contents_txt in SO_DUCUMENT_SEND_API1) with standard customizing?
    Or is a modification necessary?
    Thanks in advance for your help.
    Marian.

    Hello,
    I am working in a 4.7 environment using standard output configuration using transaction NACE and I also could not get standard SAP to add email disclaimer text into the body of the email.  Here is what I did:
    1)  In function module SO_OBJECT_SEND, I added an include statement (this IS a modification to SAP):
    tm = cl_os_system=>get_transaction_manager( ).
          if not tm is initial.
            t = tm->get_current_transaction( ).
            if not t is initial.
              t->set_mode_update( oscon_dmode_direct ).
            endif.
          endif.
        catch cx_os_error cx_os_system_error.
      endtry.
                                                                                    INCLUDE ZZMVxxxxxx.
    create send request
      CALL FUNCTION 'SBCOMS_SEND_REQUEST_CREATE'
        exporting
          originator               = originator
          originator_type          = originator_type
        IMPORTING
          SEND_REQUEST             = send_request
        TABLES
          OBJCONT                  = objcont
          OBJHEAD                  = objhead
          OBJPARA                  = objpara
          OBJPARB                  = objparb
    2)  In the INCLUDE, I added this code which retrieves standard text object and populates the table which becomes the email body:
    DATA: ZZ_lines LIKE tline OCCURS 0 WITH HEADER LINE.
      CALL FUNCTION 'READ_TEXT'
        EXPORTING
        CLIENT                        = SY-MANDT*
          ID                            = 'ST'
          LANGUAGE                      = 'E'
          NAME                          = 'Z_EMAIL_DISCLAIMER_GENERAL'
          OBJECT                        = 'TEXT'
        ARCHIVE_HANDLE                = 0*
        LOCAL_CAT                     = ' '*
      IMPORTING*
        HEADER                        =*
        TABLES
          LINES                         = ZZ_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.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO*
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.*
      ELSE.
         LOOP AT ZZ_LINES.
              MOVE ZZ_LINES-TDLINE TO NOTE_TEXT-LINE.
              APPEND NOTE_TEXT.
              ADD 1 TO SIZE-NOTE_TEXT.
              ENDLOOP.
      ENDIF.
    3)  Finally, I created the standard text object Z_EMAIL_DISCLAIMER_GENERAL and added the following text:
    PLEASE DO NOT REPLY TO THIS EMAIL.  IF YOU HAVE QUESTIONS, PLEASE        
    CONTACT YOUR <your company's name> REPRESENTATIVE.                                                                               
    This communication is intended for the use of the addressee only and may 
    contain information that is privileged or confidential. If you are not   
    the addressee, you are hereby notified that any dissemination,           
    distribution or use of this communication is prohibited. If you received 
    this communication in error, please destroy it, all copies and any       
    attachments and notify the sender as soon as possible. Any comments,     
    statements or opinions expressed in this communication do not            
    necessarily reflect those of <your company's name>, its subsidiaries and    
    affiliates.                                                              
    Hope this helps.
    Edited by: Bruce Risto on Jun 18, 2009 11:27 AM
    Edited by: Bruce Risto on Jun 18, 2009 11:54 AM

  • Financial Reporting 9.1.3 - Modifying Email Body text of cmd line scheduled

    I would like to add text to the body of the command line scheduled email that is sent out using Financial Reporting.
    Ideally I would like to suppress the text that is automatically added to the body of the email by Financial Reporting as well.
    I have modified the subject line by modifying the XML files.
    I tried adding text to the body tag, but that does not seem to be working. (no matter what I put into the body tag it does not show up).
    any ideas?

    Hi,
    Have you configured the SMTP server settings in the various config files for the new version that you are using? Your log seems to suggest that it is still set to 'mail' which I think is the default.
    I think the minimum you need to do is Essbase, Financial Reporting and Workspace, files as detailed below (paths may vary depending upon platform, windows & tomcat provided below even though it sounds like you've done this before).
    Essbase: C:\Hyperion\AnalyticAdministrationServices\server\ OlapAdmin.properties
    Financial Reporting: C:\Hyperion\BIPlus\lib\ fr_global.properties
    Workspace: log in and select Navigate > Administer > Notifications
    You may also need to restart the related services.
    Hope this helps
    Stuart Game
    www.analitica.co.uk

  • Email Body Text Alignment for external emails

    Some of the users in my Exchange having problem with email alignment. Whenever they send email to outside the organization like yahoo, hotmail, gmail or any other external domain, the recipient receive the email with centered align even though they sent
    the email with left align. 
    Is this a server issue or their outlook setting issue? 
    Please reply asap.

    Hi,
    As per the information and details provided by you, I think this is a your Outlook setting issue: -
    Please follow this step in your Outlook: -
    First open
    Microsoft Outlook.
    Click on the
    File tab.
    Click on the
    Options > Trust Center > Trust Center Settings.
    Click on
    Email Security.
    Under
    Read as Plain Text, select the Read all standard mail in plain text check box.
    To include messages signed with a digital signature, select the
    Read all digitally signed mail in plain text check box.
    Note: - If you want to view a plain text messages in its original format, click the InfoBar, and choose either
    Display as HTML or Display as Rich Text.
    I hope this information will be helpful for you.
    Thanks and regards
    Shweta@G 

  • Smartforms as email body looses format

    Hi experts,
    I´m using Badi BBP_OUTPUT_CHANGE_SF to change standard Smartforms, and when I use parameter CV_SMARTFORM_MAIL to send my own form, I see the result on tr. SCOT without any of the Smartform font styles, and format; it´s only plain text there!
    Can anybody help me?
    Thanks a lot!
    Federico Alvarez

    Dear Pradeep,
    I really apreciate your help, thank you very much.
    However, none of this Notes where helpful since we already have implemented Support Package 13, which includes all of them (Notes have been available with SP 12 and previous).
    Regarding to the thread provided, I´m doing exactly that: just changing Smartform_mail parameter inside de Badi with my own form, and I get the Smartform data inside the mail body, but without any format or style: it´s like the whole Smartform were converted into plain text.
    Any idea? Am I not supposed to get the Samrtform with font formats and borders, etc, inside de mail body?
    The attached Smartform (which the system automatically converts into PDF) looks good. But the other one, as mail body, really sucks as plain text...
    Kind regards,
    Federico.

  • How is the e-mail body text determined when e-mail sent from PO in edit mod

    We have an e-mail that is sent to the supplier when the buyer edits the po then goes to header-output - create and send immediately.   We want to remove the SAP default Salutation
    Best Regards,
    Your Purchasing Company
    The problem is we cannot find where this e-mail body is being created.   Any ideas?
    Sandra

    Hello,
    The email body text that you get at SOST is from the cover form BBP_OUTPUT_COVER.
    When you Order a PO, the following is the text is seen in SOST.
    "&LV_TITLE&
    Please find enclosed the purchase order &IV_PO_HEADER-OBJECT_ID& &IV_PO_
    Kind regards,
    Your purchasing company"
    You can create your own cover form in order to substitute the standard BBP_OUTPUT_COVER.
    Regards,
    Ricardo

  • Email body [Tags] that work ?

    Is there a list of the metadata tags that work in email body text anywhere?
    Which tags like [Title] etc will parse to the correct metadata when sending mail directly out?
    Ta
    J

    Only sometimes the content of a field never becomes visible, even when you follow mattbodmans suggestion; see this thread:
    http://discussions.apple.com/thread.jspa?threadID=2292088&tstart=0
    I've been thinking: Is it important how devices are defined: 'Device is master' versus 'Final Cut Server is master'? Could this have effect on the content of the fields?
    Or should there be some mapping?
    Henk Rek

  • Annoying TEXT FORMAT LEADING sht

    Iv had this issue before but its being ignorant now
    i have a php email scrtipt i wrote, and flash sends data to
    that and it emails it. that all works fine, but it emails with
    <TEXT FORMAT LEADING ect... on each of the forms.
    usually that means html is turned on, and it was, so i turned
    it off. but its still doign that. so off and on it still does it, i
    just want plain text. whats odd is that i have an fla open where
    the exact same script and form does it right, iv even copied and
    pasted to the other fla and it wont work...odd.

    heres a screen shot
    http://www.4tenonline.com/kern.png
    im not using device fonts.

  • Email : How to format text item such as (subjectline ,body text)

    Hi
    what i mean to say is, when we send mail through OLE2 using d2k via lotus notes. How can i format text item such as (subjectline ,body text) etc.
    Thanks in advance
    Vishal

    I'm not sure, what you want?
    I for myself create 2 items and the subject-item is used for the subject-parameter and the body-item for the body

  • With "Download Headers" option checked, opening plain text emails results in cropped body text

    When I open raw plain text emails (i.e. not formatted as HTML) I only see the first
    255 characters of the email body; all of the remainder is chopped off, and never appears no matter how many times I re-open the email.
    I have narrowed this down to my somewhat unusual download preferences in Outlook. They are configured as follows:
      Send/Receive -> Download Preferences -> Download Headers (checked).
    I know the email text is there in full, because when I point my web browser at OWA, I can see the full body.
    If at first I choose Mark to Download and then Process Marked Headers, I can then open the plain text email and see the body in full.
    When I open HTML emails I have no problems, regardless of whether the email download was forced or not.
    This issue existed on my old Office 2010 installation for XP too. It persists now I have upgraded to Office 2013 on Win 7.
    This is not an acknowledged issue yet within the Outlook team (in fact, a possibly related issue was
    reported by someone else 3 months ago but suggested to be a font corruption issue, which is incorrect).
    It seems like Outlook just forgets to download the full text for plain text emails when opening them. It's repeatable every time, so it doesn't seem like a race condition. (To reproduce: set your Inbox download preferences as above, then send
    yourself a plain text email, wait for the Inbox headers to finish refreshing and then open the new email).
    We use a 3rd party provider (Cobweb) for our email service and I believe they are using Exchange 2013.
    We use ESET Smart Security Suite and I have tried disabling the scanner for that but see no change in the outcome. I would appreciate if anyone without ESET could try to reproduce these steps for themselves and confirm.
    Starting Outlook in Safe Mode does not solve it.
    Note: I already asked this
    question at the Office Community site and it was suggested I
    post on the Exchange Server Outlook Clients forum. The feedback there suggested it to be client related, so now I've been directed to post here!
    Thanks,
    Marcel

    Hi Melon, thanks for your response.
    My plain text font is set up as the default, Automatic.
    In any case, I can see the first 255 characters of the plain text body, so plain text font colour can be eliminated as a potential problem.
    After the 255th character, the body text then stops. There are no "hidden characters". If I shrink the window height to accommodate just what I see, the vertical scrollbar does not appear. This confirms that there are no hidden lines of text
    below.
    The mail is simply not downloaded from the server correctly. If I drag the mail onto my desktop, then view that file in Programmer's Notepad, I can see that after the position representing the 255th character in the body of the email, there is garbage (control
    characters).
    If, instead, I first mark the email for downloaded and then click the "process marked headers", wait for it to download and then drag it onto my desktop, by contrast, the body contents look complete and this is reflected in the fact that I can
    see the whole email when I open it in Outlook.
    This problem has so far affected me on four different PC setups (1xWinXP, 3xWin7) and two versions of Outlook (2010 and 2013). However, Cobweb -- our cloud email provider -- did recently upgrade to Exchange 2013, so that might be an important factor.
    I don't think I can remember seeing these plain text issues in the 10 years previous to that upgrade during which I've been using various flavours of Outlook.
    I have supplied repro steps in the original report above. Could someone please try these? I have expanded them in full below for simplicity:
    To reproduce:
    1. Change your download preferences in Outlook. They are configured from the ribbon bar as follows (assuming you are using Outlook in Cached Exchange mode, connecting to Exchange 2013):
      Send/Receive -> Download Preferences -> Download Headers (checked).
    2. Send yourself a plain text email containing more than 300 characters of text.
    3. Wait for the Inbox headers to finish refreshing.
    4. Open the new email.
    Result: The email body will be truncated at the 255th character.
    Expected: The email body should show all the characters.

Maybe you are looking for

  • How can I sync two iphones to the same itunes account without deleting

    My husband & I both have iphones & we share the same itunes account. He just got a iphone 4 and we are trying to transfer his music from the old phone to the new one but we are unable to do that. There is a msg that says if we choose to sync all the

  • The .txt file has formatting issues that need to be resolved

    Transaction ZEHS20 runs a program that assigns a CCL Group to a specification header, based on its Active Ingredients. The transaction can be run in the background if desired with output being emailed to the user.The .txt file has formatting issues t

  • Alerts in the Adapter engine

    Hi all I´m working in a BPM scenario, I have raised an alert from the BPM and it arrives to my inbox(alert framework). And also i can see it in the CCMS. But now I trying to configure an alert to be raised in case of an error in the Adapter engine (f

  • Supporting AiR links app:// or with AiRAliases file:///

    Hello We are using Strobe Media Playback in our App and it works in all Browsers and on the iPad. But it don't work for our Adobe AiR App. We always get "We are unsable to connect to the contetn you've requested....". As far as we can see, the proble

  • Can i use HTML tag in text when sending contens as "Attachement(PDF)".

    Hi all!! i try to add html tag on ibot email text column. is it possible? - in ibot delivery content. send content as Attachment(PDF) "if sent as attachement, include this text" <--- mark this field and below multi line input column, can i use html t