Skip to Content
0
Former Member
Dec 18, 2008 at 10:21 PM

Send mail using OO Class

143 Views

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.