Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

attachment with no extension using SO_DOCUMENT_SEND_API1

aidan_mulcahy
Active Participant
0 Likes
763

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.

1 ACCEPTED SOLUTION
Read only

former_member192467
Active Participant
0 Likes
716

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

5 REPLIES 5
Read only

former_member192467
Active Participant
0 Likes
717

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

Read only

0 Likes
716

just did it. Same thing....

attachment is 'filename.001.RAW'

Read only

0 Likes
716

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

Read only

0 Likes
716

this is a test - trying to reply but automatic moderator refusing

Read only

0 Likes
716

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