How do I change the attachment name for Purchase Order when it is sent out by mail? As of now, it sends out the attachment as 'Printdata.pdf'. This is a standard one and not customized. Is there a way to do this in 'NACE'? I was able to change the email subject in NACE using 'TEXT_SYMBOLS_REPLACE' but not successful with attachment name. Appreciate your help.
hi, check below note from SAP -
Maintain mail title and text.
If you want to send a purchase order as (external) mail, for example, to a vendor, you have to maintain the mail title in the condition record for the output type (for example in Transaction MN05) on the 'Communication method' tab page. Enter the mail title in the 'Text for cover page' field. You cannot maintain an additional mail text.
The replacement parameters must be enclosed by &. Example: You want to enter the title 'PO number 450000001'. For this you have to enter the following in the Document Title field (Message Customizing -> sub-option: Mail title and texts) 'PO number &EKKO-EBELN&'
yogesh
Hi,
Solution from OSS note 191470:
How can you both change the mail title and text for the sending of a mail
message and maintain a replacement parameter, for example a document
number.
Solution:
1. The replacement routine is maintained in the Customizing for the
output type in the detail screen on the 'General data' tab under
'Replacement of text symbols' (for Release < 4.6B, this can be found
on the 'Mail' tab page).
Program: SAPMM06E
FORM routine: TEXT_SYMBOL_REPLACE
2. If you work with the new Enjoy Transaction ME21N, ME22N or ME23N,
Notes 370522 and 420066 are required.
3. Maintain mail title and text.
o If you want to send a purchase order as (external) mail, for
example, to a vendor, you have to maintain the mail title in the
condition record for the output type (for example in Transaction
MN05) on the 'Communication method' tab page. Enter the mail title
in the 'Text for cover page' field. You cannot maintain an
additional mail text.
o Note that the values from the mail title are used to create the
description for the attachment.
4. The replacement parameters must be enclosed by &. Example: You want to
enter the title 'PO number 450000001'. For this you have to enter the
following in the Document Title field (Message Customizing ->
sub-option: Mail title and texts) 'PO number &EKKO-EBELN&'
Regards,
Devi
Thanks Yogesh and Devi for your response.
I followed the instructions mentioned above but not much success yet.
Here is what I did:
TCode MN05 --> Selected the output type 'NEU' ---> Entered the Condition Record --> Selected the condition record and clicked on 'Communications' tab --> Entered Output Device 'MAIL' and 'PO &EKKO-EBELN&' in 'Cover Page Text' --> Save.
When I go to 'SOST', as mentioned before, I am able to see the message with subject line 'PO XXXX' but the attachment name is still Print_data.pdf. Any idea where I am going wrong? Please help.
Nava, have you tried mail one PO to yourself and check what subject comes in email
Yogesh, email subject works fine. But the problem is with attachment name in the email.
ok, to reconfirm - what is the value of medium in MN05 for NEU - 5 or 7?
Came across this link in SDN. Just go through it and see whether it will be helpful to you.
http://scn.sap.com/thread/1554114
Matthew
I already tried this but did not help much.
Hi,
Did you find solution to attachment name?