2007 Mar 15 12:56 PM
Hi,
I'm trying to send emails via cl_bcs. It's working great, when I define the receivers on my own with:
recipient = cl_cam_address_bcs=>create_internet_address(
'mail@adress.com' ).
CALL METHOD send_request->add_recipient
EXPORTING
i_recipient = recipient
i_express = 'X'.
But when I'm using a list of email addresses from an internal table, I get the error "it_receivers-email is not type compatible to formal parameter i_address_string" (translated from german error text). it_receivers-email is declared as string. Why isn't this working?
loop at it_receivers.
recipient = cl_cam_address_bcs=>create_internet_address(
it_receivers-email ).
...
endloop.
Regards
Christian
2007 Mar 15 1:02 PM
2007 Mar 15 1:02 PM
2007 Mar 15 1:03 PM
2007 Mar 15 1:23 PM
Thanks for your help. Typing the field like ADR6-SMTP_ADDR solved the problem.
Regards
Christian
2007 Jun 29 12:43 PM
I have the same problem, but typeing
parameters: login(3) type c.
data: receiver like ADR6-SMTP_ADDR. and then...
select SMTP_ADDR from ADR6 join usr21 on adr6~persnumber =
usr21persnumber into receiver where usr21bname = login.
endselect.
in statement:
PERFORM send_mail USING receiver nalezeno text-014.
FORM send_mail
USING email LIKE reclist-receiver
nalezeno TYPE i
predmet LIKE doc_chng-obj_descr.
.
.
.[e.t.c]
I have error message:
In PERFORM "SEND_MAIL", the actual parameter "RECEIVER" and formal parameter
"EMAIL" are incomapatible.
please, help