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

Email Functionality not working

Former Member
0 Likes
7,408

Hello All,

While using the standard program BCS_EXAMPLE_7 which is used to send mail with attachment, i get an error as "transmission failled with some return code BCS".

Requesting you to help me on clearing this error.

ABAP Development

Regards,

Saranya

7 REPLIES 7
Read only

former_member1716
Active Contributor
0 Likes
2,538

Could you please explain in detail about your error?

Regards,

Satish

Read only

0 Likes
2,538

Hi Satish,

The exact error message which am getting is "Error occurred during transmission -return code:<XERR_BCS> with message no:SO865". Resulting email not sent. 

i have checked the final internal tables, recipient address passed whether it has data or not.


Regards,

Saranya

Read only

amarnath_prasad
Explorer
0 Likes
2,538

Read only

0 Likes
2,538

Hi Amar,


By using the below method, specify the attachment type as PDF or any other format which is required.


CALL METHOD obj_document->add_attachment

         EXPORTING

           i_attachment_type    = 'PDF'

           i_attachment_subject = 'subject'

           i_attachment_size    = size

           i_att_content_hex    = binary_content.


Hope it will be useful for u...


Regards,

Saranya

Read only

RaymondGiuseppi
Active Contributor
0 Likes
2,538

Are you able to send a mail with some attachment in SBWP, only then will this be Abap related, is there some record in SOST?

Regards,

Raymond

Read only

0 Likes
2,538

Hi Raymond,

I dont see any records in SOST. If the problem is not ABAP related, where the issue occurs?

Regards,

Saranya

Read only

0 Likes
2,538

You could check for customizing in transaction SCOT, also did you try to send manually some attachment in transaction SBWP?

But if there is nothing in SOST, could you give the exact error message raised by the SAP sample program (the report works correctly on my every server)

Regards,

Raymond