Application Development 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: 

how to increase the length of file name of the attachment?

Former Member
0 Kudos

hi experts,

i'm using cl_document_bcs->add_attachment to add the PDF file into the email. here, the file name is imported from i_attachment_subject which has a maximum length of 50.

now my requirement is that increase the file name up to 128 characters. kindly give me some clues, please.

Thanks in advance.

6 REPLIES 6

Former Member
0 Kudos

Hi,

Try using below:

Class : cl_bcs (Business Communication Service)

Method : set_message_subject

Thanks,

Venkatesh

0 Kudos

hi venkatesh,

this method is used to change the subject of the eamil , not the attachment file name.

maybe we should find out some other ways.

Thanks.

Desmond.

Former Member
0 Kudos

Hi desmond yang, iam facing same problem , how did u solve this problem? can you provide solution for this pblm. regards Karthik

0 Kudos

Hi,

I am also facing same issue. how did you guys solve this problem ?

0 Kudos

Hi,

obviously there is a solution. As described in SAP Note http://service.sap.com/sap/support/notes/1459896 you can use the parameter i_attachment_header to transfer long filenames and/or long extensions.

Best regards

Dominik

0 Kudos

hi Dominik Steinrucken your link ask username password i login Sap accpount but i couldn't see you link