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: 

Increase number of Chars in Subject line for Email sent from SAP

Former Member
0 Kudos

Hi,

I am using Fn "SO_NEW_DOCUMENT_SEND_API1" to send external email from SAP.

The parameter field "DOCUMENT_DATA-OBJ_DESCR" for the subject line is only 50 chars.

How do I increase the subject line without modifying standard functions?

Is this a limitation in SAP?

Is there any work around or different function modules?

Thanks,

Sakthi

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Thanks for your response.

But the OSS doesn't answer about when sending email using Fn SO_NEW_DOCUMENT_SEND_API1.

Did any one able to increase the Subject line in the email?

Sakthi

7 REPLIES 7

Former Member
0 Kudos

check SAP note 958426 - Email subject line truncated to 50 chars

Former Member
0 Kudos

Thanks for your response.

But the OSS doesn't answer about when sending email using Fn SO_NEW_DOCUMENT_SEND_API1.

Did any one able to increase the Subject line in the email?

Sakthi

0 Kudos

You need to use class CL_BCS for subject line length > 50


data: send_request       type ref to cl_bcs.
clear document .
          document = cl_document_bcs=>create_document(
                          i_type    = 'ASC'
                          i_text    = text
                          i_length  = conlengths
                          i_subject = '' ).
data: v_sub type string  . " <<
data : v_sub(100)  type c value 'This will be a testing for mail with subject greater than 50 characters'.
sub = v_sub
call method send_request->set_message_subject
  exporting
    ip_subject = sub .

Former Member
0 Kudos

Hello Experts,

As per business requirement, the length of subject is more than 50 characters. I am using the above code to send the subject more than 50 characters. But it is not working. After executing the code, subject is blank. Could some one please suggest the solution for sending subject more than 50 characters?

- Krishna.

0 Kudos

I also went nuts on this. Look at the actual email in you email client (outlook) and the subject line will be there. SOST will not show you the subject line.

0 Kudos

Thanks a lot I too wondered in SOST subject is not coming but your answer helps me to finish it up.Thanks!

Regards,

Ravi Shankar L

0 Kudos

Yes for me also the same problem is coming the subject line is not coming in sost,is there a way to get the Subject in the sost.And let me know the what is the use of this function module SO_NEW_DOCUMENT_ATT_SEND_API1,

Thanks in Advance.

Venkata Siva