‎2009 Jun 25 11:58 AM
Hi,
anyone know if it is possible to create a txt file email attachement with SO_DOCUMENT_SEND_API1 but NOT to have the attachment name with the '.txt' extension?
I would like the attachment to be 'filename.001' but when it is emailed it being sent as 'filename.001.txt'
thanks.
‎2009 Jun 25 12:01 PM
Hi,
Have you tried like:
t_packing_list-doc_type = 'RAW'.
....
----
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = w_doc_data
* PUT_IN_OUTBOX = ' '
commit_work = 'X'
IMPORTING
sent_to_all = lv_flag
* NEW_OBJECT_ID =
TABLES
packing_list = t_packing_list
‎2009 Jun 25 12:01 PM
Hi,
Have you tried like:
t_packing_list-doc_type = 'RAW'.
....
----
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = w_doc_data
* PUT_IN_OUTBOX = ' '
commit_work = 'X'
IMPORTING
sent_to_all = lv_flag
* NEW_OBJECT_ID =
TABLES
packing_list = t_packing_list
‎2009 Jun 25 12:06 PM
‎2009 Jun 25 12:13 PM
Hi,
The function module documentation contains an example for sending a bmp file as raw. Please check that example to see if we have missed anything.
Edited by: Renjith Michael on Jun 25, 2009 1:13 PM
Edited by: Renjith Michael on Jun 25, 2009 1:14 PM
Edited by: Renjith Michael on Jun 25, 2009 1:14 PM
‎2009 Jun 25 12:21 PM
this is a test - trying to reply but automatic moderator refusing
‎2009 Jun 25 12:22 PM
I'll try again.....
Just looked again. The file in SAP Outbox is fine (correct 001 extension) but the one at the recipient email has the txt (or raw) extension.
Does that mean the mail program is the problem?
Edited by: Kroc on Jun 25, 2009 12:23 PM