cancel
Showing results for 
Search instead for 
Did you mean: 

Problems sending mail to multiple receivers

inigo_sacramento
Participant
0 Kudos

Hi everyone.

I'm trying to send a mail with 'send mail'. In addresstring, i must put the user concatenated with string US. Type os user is 'B'.

My problem is that i have to send the email to some users. This users are stored in a Z table. With a parameter, i must get the list of users.

I've made a task in order to get the users and store them in a container. Then, i will make the binding between this container and the addressstring.

This is only my idea, but don't know how to develop it.

In other place, i've developed a FM that is used to determine the users to receive a task. In this case, i don't understant how the ACTOR_TAB works, because is not a container.

Can anybody explain a simple way to do this?

Sorry but i'm new with workflow.

Regards,

Inigo.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I think you dont have to do the binding. If the container element contains User Id concatenated with US it will get binded automatically.

Thanks

Arghadip

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Inigo,

I suggest you have an export parameter in your method , which would be a table type of string. Determine all the users to whom the mail has to be sent to in the method, and place the user names in this export parameter,also ensure that you have added US as the suffix to the usernames.

then in the workflow use the send mail step in loop to send the mail to all the users. in the send mail step the address to which the mail has to be send can be derived from the expression ContainerElement<i>.

Where ContainerElement would have all the user names and you need to increase the value of i.

I hope the message has been conveyed properly and you find some relevance to the requirement you had asked for.....

Please revert in case this is not what you were searching for.....

Thank and Regards,

Narsingh.

Edited by: Narsingh Panigrahi on Feb 8, 2008 6:54 AM

inigo_sacramento
Participant
0 Kudos

Hi again.

I've developed the mail step but i get ERROR in workflow.

As i said, i have a method that insert user into an internal table (defined in tables of FM). I make a select in a table and get the users. I concatenate US and then the SAP user and append it on the internal table.

Then, in send mail, i make the binding between addressstring and my new container of actors.

Container of actors has been defined refered to a field of a Z structure.

I also put a B in type.

When i execute the workflow, i get an ERROR. There must be a problem because if put in addressstrig my user (USDES001) and type B, works.

Regards,

Inigo.

Former Member
0 Kudos

I think one of the User Id in the list does not exist in the system. Please check.

Thanks

Arghadip

Former Member
0 Kudos

Hi ,

I agree with Arghadip the error could be generated if one of the users doesnot exist in the system.One more suggestion I want to give is that instead of trying to pass the entire internal table with all the users list to the addressstring we could try and use the send mail step in a loop and pass one user from the multiline container element to the send mail step.

I hope this could be one of the solution.....

It would be more helpfull if you could give us the error message being displayed in the workflow log.....

Thanks ,

Narsingh

inigo_sacramento
Participant
0 Kudos

Hi.

Thanks for the replies. I was trying to check if the FM was retrieving fine the users but is impossible to make a debugging.

WF-BATCH user is the one that execute and when i try to get in SM50 to debugg process, system doesn't allow me.

I will try to test in Sm37.

regards,

Inigo.

Former Member
0 Kudos

Hi,

You can debug the method using the transaction SWUD.......there you click on Test Environment ....create an instance for the BO(pass the guid of an old transaction) and then debug the appropriate method.....

I hope this would be helpful to you...

Thanks and Regards,

Narsingh

inigo_sacramento
Participant
0 Kudos

Hi.

I've discovered that even if i set my user in Adressstring with correct format US+user and then type = 'B', i get the same error.

i've seen that if i try to send a message via business workplace, messages are not arriving to my own user and this works fine in QUA systems.

Perhaps business workplace is not well customized?

Regards,

Inigo.

Former Member
0 Kudos

Hi,

May be you can ask your Basis guy to check the settings in the SCOT transaction....

Regards,

Narsingh.