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

Send mail using OO Class

Former Member
0 Likes
708

Hi,

I am referring a static class and SEND_MAIL method to use in my prorgam to send email to internet address from SAP.

The receivers parameter type is defined as a standard table.

Now if I want to pass the email addresses, how should I defined a internal table which will match the Type of it.

Following is SE24 defination of receiver parameter:

MT_RECEIVERS Importing Type STANDARD TABLE

Receiver list

Call from my program:

CALL METHOD YVCBCL_CHBK_SEND_NOTIFICATION=>SEND_MAIL

EXPORTING

MI_TYPE = 'EXT'

MI_SUBJECT = 'Mail from YPROGRAM5'

MT_RECEIVERS = RECEIVER

...

...etc..etc..

My question is how should I define this receiver table.

It gives syntax error as Type mismatch.

Thanks,

Rupa.

3 REPLIES 3
Read only

amit_khare
Active Contributor
0 Likes
565

This seems to be some Custom Development class...

search forum you will get lots opf examples with code for sending mail using OO concept.

Read only

Former Member
0 Likes
565

Hi,

Refer to this link...

https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/abap-SendingemailwithclassCL_CRM_EMAIL_DATA

https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/sendingmailwithattachmentusingObjectOriented+Approach

Edited by: avinash kodarapu on Dec 19, 2008 7:51 AM

Read only

Former Member
0 Likes
565

thanks.