Skip to Content
author's profile photo Former Member
Former Member

output message by mail (medium 5) - add a body mail

Dear all,

We copied the printing program SAPFM06P and MEDRUCK layout (but an old one).

we have an output message as medium 5 (mail)

we use the standard code : open_form, close_form

We need to add text in the body of the mail. I know we can add the object of the mail with the customizing on the output.

We have the spool as PDF attached in the mail.

But I found nothing for the body.

Can anybody help us ?


Kind regards


Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Sep 09, 2010 at 02:10 PM

    No, it's a common question. If you want a fully customized email, you should overtake the email creation process and insert your own email creation code.

    Add a comment
    10|10000 characters needed characters exceeded

    • No, you would still use medium '5'. For the old style PO processing, there are 2 basic calls in the output program: ME_READ_PO_FOR_PRINTING and ME_PRINT_PO. Inside ME_PRINT_PO is where the email is formulated in CONVERT_COMM_TYPE_DATA with the old-style container and macro coding. It's your choice how you change the processing and whether it handles all output mediums or just the email. Personally, I would go with an email specific process that renders a spool, converts it to PDF and attaches it, then dispatches it with class CL_BCS. All of this is fairly easy if you have a standard process in place like a custom emailer class.

  • author's profile photo Former Member
    Former Member
    Posted on May 23, 2011 at 03:56 PM

    Hi Véronique

    I have exactly same problem.

    I need add text in the body mail, I'm using ZSAPFM06P program and the function modules ADDR_GET_NEXT_COMM_TYPE, CONVERT_COMM_TYPE_DATA and OPEN_FORM.

    How you solved it?


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.