cancel
Showing results for 
Search instead for 
Did you mean: 

Mail Adapter: original Attachment filename retrieval in Proxy

Former Member
0 Kudos

Hi,

I have a Sender Mail Adapter, and the receiver is a proxy, where I need to get the attachment and its details.

When I execute

attachment_filename = l_attachment->GET_DOCUMENT_NAME( ).

it simply returns Attachment-1 etc.

How do I get the original attachment filename?

I am on SP16.

Regards,

Puloma.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi All,

I solved the problem.

It is possible in SP16 also, without using adapter module.

I simply retrieve the value of

l_attachment->GET_CONTENT_TYPE( )

in a string.

This gives me both the MIMETYPE, as well as the filename.

An example is:

application/msword "filename.doc"

Thanks.

Regards,

Puloma.

bhavesh_kantilal
Active Contributor
0 Kudos

Puloma,

Can you let usk now where you use this<b> l_attachment->GET_CONTENT_TYPE( ) </b> ?

What i mean to ask is, inside a UDF? If yes, can you provide the entire UDF code here?

Thanks

Regards

Bhavesh

Former Member
0 Kudos

Hi Bhavesh,

No I don't retrieve the filename in the MM.

I need it in the receiver proxy.

http://help.sap.com/saphelp_nw70/helpdata/en/5b/b75f3c019e3a56e10000000a114084/frameset.htm

There is no UDF.

Regards,

Puloma.

bhavesh_kantilal
Active Contributor
0 Kudos

Stefan's answer is with respect to retrive the Attachment name inside XI and not inside of a proxy and that is why I got confused.

Thanks for the clarifications.

Regards

Bhavesh

Former Member
0 Kudos

Yes, it is in a different context. It is also possible in SP16

Regards,

Puloma.

former_member335553
Active Contributor
0 Kudos

HI

Please refer tihs thread for mail attchments

\

Former Member
0 Kudos

Hi,

The above links do not solve my problem.

I need to extract the original filename on the Receiver side, so extracting the filename in Adapter Module does not help.

Any ideas?

Regards,

Puloma.

stefan_grube
Active Contributor
0 Kudos

In SP16 it is not possible to get the mail attachment name.

In SP20 you can use an adapter module to read the attachment name and store it anywhere in the payload.

See also this thread:

Regards

Stefan

Former Member
0 Kudos