on 02-07-2008 5:20 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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
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.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.