ABAP: Is there a way where we can convert selection screen (multiple selection) to String?

I am trying to capture the email ids from Selection screen. I want to send mails to the multiple email ids given by the user in the selection screen.

SELECT-OPTIONS: s_email FOR somlreci1-receiver NO INTERVALS . send_request->set_document( i_document = document ). l_recipient = cl_cam_address_bcs=>create_internet_address( s_email ). l_sender = cl_cam_address_bcs=>create_internet_address( s_email). 

When I try to give, the parameter as s_email: selection screen option which stores email ids., it says- “S_EMAIL-LOW” is not type-compatible with formal parameter “I_ADDRESS_STRING”.

It works if I give:

send_request->set_document( i_document = document ). l_recipient = cl_cam_address_bcs=>create_internet_address( 'abc@gmail.com' ). 

It doesn’t work when I don’t hardcode a string value ( give select-options parameter name).

Please suggest a way where I can send emails to multiple ids given by the user in selection-screen.

submitted by /u/Mizkax
[link] [comments]


Go to Source of this post
Author Of this post: /u/Mizkax
Title Of post: ABAP: Is there a way where we can convert selection screen (multiple selection) to String?
Author Link: {authorlink}