09-10-2008 11:29 AM
Hi,
I have configured sending a mail with PDF attachment for Invoices in NACE. the program is RLB_INVOICE The mail goes fine with the PDF attachment to external mail address.
Now I need put subject and Body for the email.
There are 2 issues now.
1. In transaction NACE i am using "Mail title and texts" node when i fill the Document title, the same document title appears for the e-mail subject as well as the name of the attachment. But i need different names for the subject and attachment and the invoice number must be present in the subject.
2. Under the "Text" tab when i maintain some texts, this doesn't appear anywhere in the mail.
How do i maintain Subject and Body for the e-mail.
Regards
Rajvansh
09-10-2008 11:59 AM
Hi
We had a similar issue
for issue 1 - we implemented oss note - Note 718017 - Replacement of text symbols in spool title/MAIL
For issue 2 - We implemented - Implicit Enhancement Point -
Inside the function module SO_OBJECT_SEND, we have one function module, i think it starts with 'SS'.
Inside the function module, we implemented Implicit Enhancement point, inside the enchancement we coded to populate value to 'NOTE_TEXT' internal table.
*Pls note - You need to make sure, to trigger implicit enhancement point only for required output types, since SOOBJECT_SEND is triggered for all email requirements.*_
We checked for OUTPUT Type and medium inside the Implicit enhancement point
Let me know, if you have any clarifications
Regards
MD
09-10-2008 11:59 AM
Hi
We had a similar issue
for issue 1 - we implemented oss note - Note 718017 - Replacement of text symbols in spool title/MAIL
For issue 2 - We implemented - Implicit Enhancement Point -
Inside the function module SO_OBJECT_SEND, we have one function module, i think it starts with 'SS'.
Inside the function module, we implemented Implicit Enhancement point, inside the enchancement we coded to populate value to 'NOTE_TEXT' internal table.
*Pls note - You need to make sure, to trigger implicit enhancement point only for required output types, since SOOBJECT_SEND is triggered for all email requirements.*_
We checked for OUTPUT Type and medium inside the Implicit enhancement point
Let me know, if you have any clarifications
Regards
MD
09-10-2008 1:22 PM
Hi Madhan,
Can you give me the exact function module name as i am not able to find any function module starting with SS. Also let me know for which transaction you did this. I am doing this for VF02
Regards,
Rajvansh
09-11-2008 5:45 AM
Hi
I am sorry i am offline, hence i will not be able to give you the exact function module name.
Open the function module SO_OBJECT_SEND and search for 'NOTE_TEXT'.
Yes i did for VF01/VF02
Regards
Madhan Doraikannan
09-11-2008 5:53 AM
Hi Madhan,
One more doubt. Are you doing this for SAP office mail or external mail (Transmission medium 5 External Send). I am doing this for external mails and the note that you have suggested seems to be for SAP office mail.
Also any idea What is the use of the "Test" tab which is on the left of the field "Document title" in transaction NACE under "Mail title and texts"
Regards,
Rajvansh.
Edited by: Rajvansh Ravi on Sep 11, 2008 6:58 AM
09-11-2008 9:56 AM
Hi
I am not doing this for SAP OFFICE EMAIL.
I am doing this for SAP Output type which is done via NACE transaction.
The ouput type will get triggered when we create a billing document or change a billing document
Regards
MD
09-11-2008 10:08 AM
Hi
Regarding the
"Test" tab which is on the left of the field "Document title" in transaction NACE under "Mail title and texts"
Refer to OSS note - Note 753622 - Sending of body text and PDF attachment with medium 5
Regards
MD
09-12-2008 5:45 AM
Hi Madhan,
Yes already saw that note and we are in the process of importing the support pack mentioned in note 1086090. But it seems it can support only fixed texts in body of e-mail. Any way i will let you know when we finish importing it.
About the table NOTE_TEXT. I found the table but could not find the enhancement point.
Still couldn't understand what the "Text" tab is for (It says Internal mail. does this mean SAP officemails ?)
Thanks for your help. I will keep the thread open and let you know when the body of the mail is done.
Regards,
Rajvansh
Edited by: Rajvansh Ravi on Sep 12, 2008 6:45 AM
09-12-2008 5:59 AM
HI
I am not sure, whether if you implement the support pack, the NOTE will be taken care.
I think you need to manually implement the NOTE.
Pls check.
Regarding the Enhancement -
Open the function module.
(1) Click on the spiral button
(2) Edit - > show implicit enchacments
Implicit enchancements are available in most of the function modules / subroutines at the beginning and at the end.
In this case, you need to implement at the beginning of the function module
Just populate the NOTE_TEXT internal table it will work.
__Pls make sure to put condition, else all the email's will the BODY TEXT__
Regards
MD
09-12-2008 6:28 AM
Hi,
1. Yes you are right, we need to maintain the text in TCODE SODIS manually.
2. Before proceeding with the enhancement i have some questions.
--> How did you know which field contains the condition type. Problem is even if i put a break point in the function module SO_OBJECT_SEND, it doesn't go to the debugger when i use TCODE VF01, (Did this happen for you?).
--> Even in the print program RLB_INVOICE, when i put a break point and save a document in VF01, it doesn't go to the debugger (Some one else in the forum asked the same question). Any idea why this happens?
Regards,
Rajvansh
09-12-2008 6:57 AM
Hi
Keep break point at SO_OBJECT_SEND.
In the first screen
VF01 / VF02 ->
Set the Output type not to process immediately, use custom own transaction.
Save and come out of transaction.
And again
VF01/ VF02 ->
Issue Output type select the Output with medium 5.
and click on the OK button.
It should stop.
To pass value from driver program to Enhancement point.
I used FIELD SYMBOLS.
Since i am offline, i do not have exact syntax.
It will be something like this
FIELD SYMBOLS : <OUTPUTTYPE> type any.
ASSIGN '( PROGRAMNAME(FIELD NAME)) TO <OUTPUTTYPE>
IF <OUTPUTTYPE> IS ASSIGNED.
ENDIF.
Or
If it is custom driver program, you can use memory ID's also
Regards
MD
09-18-2008 4:56 AM
07-23-2009 10:23 AM
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... thanks
11-22-2010 9:33 AM
Hi Madhan,
i have gone through your reply but i have the same issue for RFQ and PO.
I have myPO and RFQ as attachment in PDF.
But mail title and attachment is with same name.
I want to differentiate the mail title from the anem of theattchment.how can i do this usingwhat you suggested by zz text replace module...
Rest their no mail Body in may case...So will you plase suggest hoe to do that and what logic you put to fill TEXT_Node........
Thanks in Advance
08-04-2010 4:39 AM
I am looking for similar functionality - NACE / Mail title and texts
Is there SAP functionality/tcode to allow me to add text to the body of an email ?
I have seen Tcode SODIS...how do I control the text printing to specific application ?
Regards,
Ida
10-21-2010 9:56 AM
HI Rajvansh,
I am also trying to set up the output type for billing.
I want to send the document as mail in PDF .
I am unable to do so.
Can you please help me resolving the issue?
Regards,
Nikhil