cancel
Showing results for 
Search instead for 
Did you mean: 

Email body

Former Member
0 Kudos

Hi Gurus - Any customizing settings to set pre defined message as email body. I've tested the mail text in NACE but it didn't worked. Email body is coming as blank. Is there any customizing settings to set the email body?

Thanks,

Sree

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

In nace in output type there is 'Mail title and texts' in which u define the body for email.

Former Member
0 Kudos

Hi Amit - It didn't worked out. I've given the text in NACE "Mail title and Text". The output also configured to send the billing document as an PDF attachement.

The email body is coming as blank.

Thanks,

Sree

Former Member
0 Kudos

Hi,

I had similar requirement and i solved it.

It is not possible in SAP standard based on Note 753622 - Sending of body text and PDF attachment with medium 5, but possible using IMPLICIT enhancements

Check my post here. If you have any doubts i can help

Regards

Former Member
0 Kudos

Thanks Rajesh for your response. I did saw your forum thread. As per the note " 1086090" our system doesn't come into specified support packs. The tocde SODIS doesn't work in our system.

Is there any other solution, if we want to code in any billing user exit only to display the body of the email? As attachement of the billing document was handled in customization.

Please help!!

Thanks,

Sree

Former Member
0 Kudos

Sorry I misspelled your name as Rajesh, Thanks Ravi

Sree

Former Member
0 Kudos

Hi,

Yes there is a solution.

Even in our system we do not have the package nor the transaction SODIS.

If you see the latter half of the thread it talks about Implicit enhancement.

This implicit enhancement has to be done in function module SBCOMS_SEND_REQUEST_CREATE

Are you familiar with implicit enhancement ??

Open the function module in SE37 and click on Enhance Source code (SHIFT + F4)

Then EDIT --> Enhancement Operations --> Show Implicit enhancement options

Click on the yellow line at the start of the function module , Right click --> Enhancements --> Create

The code in the enhancement will be like . In the below code the body is attached only for output type 'ZRM0'. If this validation is not present the body will be attached to every mail from SAP

DATA
     : WA_NOTE_TEXT     TYPE SOLI,
       VAR1             TYPE CHAR255.

FIELD-SYMBOLS
     : <FS_INVOICE_NO> TYPE ANY,
       <FS_MSG_TYPE>   TYPE ANY.

CONSTANTS
     : C_INV_NO   TYPE CHAR255    VALUE '(RLB_INVOICE)NAST-OBJKY',
       C_MSG_TYPE TYPE CHAR255 VALUE '(RLB_INVOICE)NAST-KSCHL',
       C_LINE1_1  TYPE CHAR255    VALUE
'Please find enclosed our invoice no. '.

* Move Invoice Number
CLEAR VAR1.
VAR1 = C_INV_NO.
ASSIGN (VAR1) TO <FS_INVOICE_NO>.

* Move Message Type
CLEAR VAR1.
VAR1 = C_MSG_TYPE.
ASSIGN (VAR1) TO <FS_MSG_TYPE>.

IF <FS_INVOICE_NO> IS ASSIGNED AND
   <FS_MSG_TYPE>   IS ASSIGNED.

IF <FS_MSG_TYPE> = 'ZRM0'.
CONCATENATE C_LINE1_1
             <FS_INVOICE_NO> "Invoice No
 INTO        WA_NOTE_TEXT
 SEPARATED BY SPACE.
 APPEND WA_NOTE_TEXT TO NOTE_TEXT.
ENDIF.


ENDIF.

Let me know if you have doubts in the code

Former Member
0 Kudos

Thanks a lot Ravi!! We are going to implement this, In the mean while If I have any questions, will revert back..

Thanks Again...

Rdgs,

Sree

Former Member
0 Kudos

Thanks a lot Ravi

I've been trying since 2 days and didn't get the solution. We have implemented what you have suggested and its working fine!!

Credit goes to you..

Thanks again,

Sree

Former Member
0 Kudos

Hi,

Good that it is working... Just make sure you add the text only for specific conditions...This function module is used in most of the standard mailing functions, and you don't want the texts to be embedded accidently for other applications

Regards

Former Member
0 Kudos

Yes Ravi - Handled that scenario...

Sree

Former Member
0 Kudos

hi.

i have done these steps and it works.

But now i get an second attachment, called Note.PDF with the text in it.

But i want to have the text in the email body and i want to have an other subject....

help me please!... thanks

Edited by: Marcus Ventur on Jul 23, 2009 3:17 PM

Former Member
0 Kudos

Hello Marcus , have you solved your issue ? I 'm on the same situation

Regards

Silly

julio_vargasmeneses
Discoverer
0 Kudos

This message was moderated.

Answers (0)