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

SO_DOCUMENT_SEND_API1 in Web-Dynpro

Former Member
0 Likes
513

Hi All,

Can anybody provide me sample code for Sending E-Mail by Web-Dyn Pro,

I have created application by taking help from SDN but I am not able to write code for

SO_DOCUMENT_SEND_API1.

4 REPLIES 4
Read only

Former Member
Read only

thomas_jung
Developer Advocate
Developer Advocate
0 Likes
471

There is nothing special about calling this function module or the CL_BCS classes for sending email from Web Dynpro. You can use the same process you would use to call these APIs from any normal ABAP application. Please explain exactly why you are having problems in Web Dynpro. Otherwise this question belongs in ABAP general if you just need to know the basics of how to call this function module.

Read only

0 Likes
471

I have already used this FM in my Web-DynPro application, and I am getting sy-subrc = 6 i.e X-error. and I am not

able to understand where could be the problem is? for that I want help.

I am sending mail without attachment.

Read only

0 Likes
471

I'm moving this thread to ABAP General as it appears as though the fact you are running within WDA isn't impacting your problem. You just need general help with email sending. Also consider that SO_DOCUMENT_SEND_API1 is the old API. Consider using the newer CL_BCS classes instead. A transfer error would indicate that you are missing some email setup. Have you checked your email configuration in SCOT? Are you able to send email from the Short Message functionality?