Mail Receipient to be determined dynamically

HI All,
I have a requirement where i have to send a mail to user depending on the plant. So i have created a custom background method to determine the agent for the mail based on the plant. Then i am passing this as a expression to mail. I mean i am binding this to agent name to addressstring container of the mail task.
But I am getting the error Object 000000058286 method SENDTASKDESCRIPTION cannot be executed and Document <Budget For Order 800053 Exceeded> could not be sent. How can i rectify this error.
Please guide me as soon as possible.
Thanks and regards,
raj

hi raj,
You can directly use mail distribution list and define container element and put its type as SWHACTOR!!!
then append as much user you need to send to
OBJECT-TYPE = 'US'
OBJECT-TYPE = 'USERID'.
Then append it to container element.
You can define container element in workflow container and also in the corresponding task then do corresponding-binding between them!!
in send mail step use expression and put this element ino it
then don't worry it will works on !!!
Hope this will help you!!
And ofcourse swhactor is in ABAP Data-dict.
its a structure!!
you can also refer this forum
Mail distribution list as container element
Regads,
Purvesh Patel.

Similar Messages

  • Determine dynamically option in logo upload in smartforms

    Moved to correct forum by moderator
    hi all,
    I have a logo uploaded in either color or black and white. when I select the option 'determine dynamically'
    , its giving error that graphic can not be displayed.
    How should I resolve this error.
    Please help.
    Rgds,
    Madhuri
    Edited by: Matt on Feb 9, 2009 9:22 AM

    hi Aakash,
    Thanks for reply.
    But I know how to give the logo name dynamically.
    I was asking about the 3rd option in the logo window (Detemine Dynamically(BMON,BCOL)).
    I have some of the logos uploaded in b&w and some logos uploaded in color.
    How should I determine at the run time that this logo is color one or dynamic one.?
    rgds,
    MAdhuri

  • Receiver Mail Adapter sending Attatchments to dynamic recipients

    Hi,
    I am using a Receiver Email Communication Channel. I need to be able to send emails to dynamically assigned recipients. I know I need to use the 'Use Mail Package' option. I am doing this and it is working. However, I also need to attatch the payload to the email. This will work by not specifying the 'Use Mail Package' option. I need to do both.
    I can send an email with an attatchment. But the content of this attachment has been generated by a Message Mapping. I want the payload on the attchment.
    Thanks
    Martin

    Hi Martin,
    when you use the Mail Package format and assign your payload to the <Content> Element, it should be send as an attachement.
    <?xml version="1.0" encoding="UTF-8"?>
    <p2:Mail xmlns:p2="http://sap.com/xi/XI/Mail/30">
    <Subject>My Mail</Subject>
    <From>[email protected]</From>
    <To>[email protected]</To>
    <Content_Type>text/xml;name="MyContent"</Content_Type>
    <Content>...</Content>
    </p2:Mail>
    Hope this helps
    Thomas

  • How to query repository to determine Dynamic parameters used by a report

    Using BOXI 3.1 SP3
    Windows 2008
    .NET
    SQL 2008 Database
    I would like to query the repository to figure out which report is using which a dynamic parameter and then to figure out the name of that dynamic paremeter.
    The issue is the when I publish a report with Dynamic Paremeters from CR2008 to BOXI, BOXI will automatically create all the underlying connections and also rename the parameters if there is a duplicate.  I have a situation where there were over 100 +reports published and thru repository explorer in CR2008, it's impossible to tell which parameter belongs to which report.
    I would like to find in the repository the name of the dynamic parameters being used by the report.
    If I query CI_INFOOBJECTS, it does have the prompts and the original name (SI_NAME).  I don't know if it's possible thru Query Builder to query and find this result, or whether I need to write some .NET code.  The only hint in CI_INFOOBJECTS that a report has dynamic parameter is thru SI_GROUP_ID = eor://HOECRS02.NA.XOM.COM:6400/AVDGc3Df_G5Ej9HoJqO3V2g
    All dynamic parameters have SI_GROUP_ID populated.....but not sure how to use this unique value AVDGc3Df_G5Ej9HoJqO3V2g  which appears to be a SI_CUID but not sure what to query next to get more information.
    If anyone has a query built already or some code to point me in the right directiion, that would be greatly appreciated.

    The best way to determine what your wattage draw is is to purchase a killawatt meter. They are relatively inexpensive (20-30 bucks).
    http://www.amazon.com/P3-International-P4400-Electricity-Monitor/dp/B00009MDBU/r ef=pdbbs_sr1?ie=UTF8&s=hi&qid=1209640995&sr=8-1
    Glor

  • JMS Queue - how to determine dynamically

    Hi,
    I have the following scenario File -> PI -> JMS Queue
    Based on the above I would like to dynamically determine the JMS Queue name based on the source file name, for example:
    XXX_data_file.xml        should route to JMS Queue   XXX_JMS_Q
    YYY_data_file.xml      should route to JMS Queue   YYY_JMS_Q
    <any>_data_file.xml    should route to JMS Queue   <any>_JMS_Q
    How can I dynamically set the JMS Queue name?
    There are several suggestions which say to use 'DCJMSReplyTo' but they make no sense to me. I have looked in WIKI "FAQ J2EE JMS Adapter" and "Note 856346 - J2EE JMS Adapter: Frequently Asked Questions (FAQ).
    I can get the source file name in a UDF but how to set the target JMS Queue in the same UDF?
    Che

    Check the following link for how to get the name of the file:
    http://help.sap.com/saphelp_nw04/helpdata/en/43/03612cdecc6e76e10000000a422035/content.htm
    In your target strucuture, add one elment to hold the above file name:
    In your receiver determination, you use conditonal routing, you can say
    if file name element = file 1, then select your queue1 receiving system
    if file name element = file 2, then select your queue2 receiving system
    If you do not want to have many receiving system,  you can also use conditional interface determination as well, that way, you need to have number of inbound interfaces that corresponding to your queue.
    in this case, you just have one receiving system.
    Regards.
    Liang
    Edited by: Liang Ji on Jun 2, 2009 8:07 PM

  • Source Structure determination Dynamically

    Hi ,
    I got a requirement to develop a File to IDoc scenario. Below are requirement details.
    1.  Source system application creates maximum 9 XML files of different strucure for each run. File name is generated dynamically by the source application.
    2. Each file represents one message(MATMAS, ORDERS01,etc.,) in SAP R/3 (IDoc)
    3. Each file has two sections one is header and another details section.
    4. Header section structure is same for all the files.  and it has a key to determine the document type.
    5. Details section structure differs from file to file.
    6. PI has to process the source files in the order its created on the source system.
    Process flow is : PI has to pick the file/s from the sources system and  post the data on SAP R/3 system after data transfermations.
    Hope above details help in understaning the requirement.  Please suggest me how can i achive this functionaly.
    Please give me some light....
    Thanks & Regards
    Sree

    HI Jonnavarapu,
    I dont think it is possible using the standard file adapter funcitonality because of the dynamic nature your items are having. For this you need to have an adapter module where you put your own code and then deploy the same and use it.
    Else since your header is same for all the files and details are differnet. If you can ask the source file system guys to generate a file in this format:
    first 10 fields are for Orders and next 10 fields are for matmas etc. Then you can create a source message type with 20 fields and read that file. Based upon the data inside the items you can route to the corresponding idoc. If they cannot generate this format then you cannot achieve your requirement.
    Else you can request them to put the files in different folders and then you can create that many no. of interfaces.
    or you need to come up with some generic file communication channel and then use java modules as mentioned in this blog:
    /people/sravya.talanki2/blog/2005/08/16/configuring-generic-sender-file-cc-adapter
    Regards,
    ---Satish

  • Dyanamic mail receipient

    Hi Friends,
    I am looking for a proper solution where I want to send workflow notification to external mail box. Presently I  am using SENDMAIL task and it is sending notification to SAP inbox. But for any recipient, I want to consider dynamically the email id mentioned in their user profile and send to that ID . I don't want to go for auto forwarding in SO13 or SO16. I appreciate your valid inputs.
    Thanks
    ES

    The send mail task does indeed sends mail to external mailid. The only catch you need to have an mail server up and linked with SAP and the mail delivery job up and running in SCOT.
    Once the necessary settings are done, use sendmail step type in workflow or use SELFITEM->SENDTASKDESCRIPTION to send external mails. You would only need to mention the user ids and mails will be sent to what mail-ids are defined in there profile(SU01)

  • Sending mail of infotype record using dynamic actions

    Hi
    How can we send mail of info type record using dynamic actions if possible give me one example
    Mail to me: [email protected]
    Thanks & Regards
    santhosh reddy

    Hi..
    Already Standard Entries exists for the same.. pls check T588Z

  • Configure the e-mail recipents in the AlertDestination  dynamically in OSB

    Hi all,
    Can we configure the e-mail recipients in the Alert- Destination dynamically in OSB.
    i.e can i pass the e-mail address to the Alert-Destination of OSB by using this e-mail adress it has to send an e-mail .
    Thanks
    Phani

    the only thing coming to my mind is getting a Ref instance for the Alert Destination
    http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/javadoc/com/bea/wli/config/Ref.html
    using a Java Callout and ALSBConfigurationMBean:
    http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/javadoc/com/bea/wli/sb/management/configuration/ALSBConfigurationMBean.html
    and investigating if you can change some properties ....
    I have no clue if this path can actually lead to a solution.... surely it requires some experimentation.

  • Can the name of the TASK bound to process level determined dynamically?

    In the 'Complete and Order' step of shopping cart scenario, we can display/ edit agents. This function enable us to see the approver list. In the 2nd column Process Step, there will be a description of the approver, which is the name of the corresponding task in the BRF process level. But when we want to reuse the task for several process level, we need to dynamically set this description. Since it is a name of the TASK, how can we achieve that?
    Thanks for reading.

    Actually this is what I was trying to do:
    <select name="<c:out value="${id}"/>versions" >
    <c:if test="${param.{id}versions == yyy}"> selected </c:if>
    </select>
    Do you know how to make the comparision works? The problem is the double curly bracket.
    Thanks again

  • How to delete the mail receipient in job

    Hi,
         Any one can help me regarding.My user wants me to delete a reciepient for a job.She doesn't know the job name.Any one have any idea here.If yes help me ,I will reward points for right answer.
    Regards
    Ram Pedarla

    Hi Aram,
    Ask the user whats the program name and some part of the name she might be knowing.
    Infact she can use the last mail which must have come from the job to identify the job. Once the job is identified then she can go to sm37, click on a schedule job and uncheck released, completed and cancell.
    This will display the scheduled job and then go and edit the "Spool list recepient".
    Regrads,
    Abhishek

  • Determine Sender dynamically while Sending workitem notification to Outlook

    Dear Experts,
    We have configured Extended Notifications for workflow in our system. We have set SENDER_NAME_INT = wfadmin SENDER_ADDR_INT = wfadmin mail ID .  I want this to be determined dynamically.
    i.e. For MM related notification it should be purchadmin
          For HR related notification it should be hradmin
          For FI related notification it should be fiadmin
    Any suggestion how can we achieve this.
    Regards,
    Vaishali

    Hi,
    You can set the sender ID dynamically for sure. But particularly for your query, first you need to find the type of notification.
    If you can do that, then on the basis fo type of notification(HR, FI , etc.), just set the sender id and pass it on to the FM which is sennding the mail.
    Regards,
    Guddan

  • How to determine package size dynamically for select - endselect statement in ABAP

    Hi All,
    I was using select- edselect with package size but i have hard coding the package size. Can any one tell me the the process to determine dynamic package size so that i can use in parallel processing.

    Hi,
    If you are looking to determine or set the value of package size dynamically then use below code for reference.
    DATA: itab TYPE TABLE OF spfli,
           wa like LINE OF itab,
           n    TYPE i.
    n = 10.
    SELECT carrid connid
    FROM   spfli
    INTO   CORRESPONDING FIELDS OF TABLE itab
    PACKAGE SIZE n.
       LOOP AT itab INTO wa.
         WRITE: / wa-carrid, wa-connid.
       ENDLOOP.
    ENDSELECT.
    If you are concerned about the performance then either use SELECT with OPEN CURSOR and CLOSE CURSOR.
    Let me know if it helped?
    Regards,
    Zuber

  • Dynamically Determine the level of approval in OIM

    Hi All,
    I have a requirement in which the level of approval has to be determined dynamically based on the requested resource. We have two levels of approval (first& second) and my customer wants second level approval only for certain resources and these details defined in a csv file. e.g., (resource1,first_app,second_app). So if the file contains second level approver data then 2nd level is required otherwise not required. Also the second level approval task should be intiated after the first level approver approves the request.
    e.g., When the user request for a resource , the request should go to first level approvar. Once the first level approver approves the request it should validate whether second level approval is requred or not for the requested resource. If required then second level otherwise it should provision the resource to the user. Is it possibe to do that in OIM?
    I have created 3 task , First one is for first level approval (unconditonal) . Second task is for second level approval (conditonal) and I have created another task (conditional)is just to validate whether second level approval is requred or not. With this task have attached an adapter and passing the requested resource as an argmuent from the object data , this adapter invokes a java and will return TRUE if second level required or FALSE if not required.
    FIRST LEVEL -- Response Tab - For Approve -- Task to Generate -- I have mpped IS SEOND LEVEL task.
    IS SECOND LEVEL -- Response Tab -- For TRUE - Task to Generate -- I have mapped SECOND LEVEL task (Status C).
    IS SECOND LEVEL -- Response Tab -- For FALSE - Task to Generate -- nothing (Status R).
    if IS SECOND LEVEL returns FALSE the approval ends with Rejected status. If IS SECOND LEVEL returns TRUE it immediately execute the provisioning process and then assigns the request to SECOND LEVEL approver. Am I missing anything?
    Can you suggest me how to process with this?
    Thanks in advance,
    INIYA

    Hey the only basic problem I can see with that is already written over there.
    IS SECOND LEVEL -- Response Tab -- For FALSE - Task to Generate -- nothing (Status R).
    So you have defined that with 'FALSE' response status you are rejecting your task, and if you are rejecting your task then your approval is finished. What you need to modify over here is just change the Status to 'C' which will let your workflow know that now there is no second level required and the approval stands completed.
    I think you will not be able to change the response to 'C' for this because you have already used this 'Task Response' for some tasks. What you can do for this is -
    1) Eitgher go and update the database for this mapping.
    2) Send some other response from the file in place of FALSE. eg Send NO and then mark it as completed- 'C'
    You should be done.
    Thanks
    Sunny

  • How to map CC to Dynamic Email Recipient

    Hi ,
    I am using BO XI 3.1.
    I created a Publication with source Document as Web Intelligence Report and used Dynamic Recipients (Source Web Intelligence Report). I have configured the destination as Email and sending report in PDF format as attachment.
    The publication is working fine.
    Her my question is; I want to add CC in the mail which also should be dynamic. That means I want to pick up the email addresses from same Source Web I Document which contains column for CC. But there is no additional placeholder available to map CC Email address.
    Can any one tell me how can I achieve this?
    Is there any way so that I can Add additional place holder (eg. %SI_EMAIL_ADDRESS2%).
    Or there is any other way around using SDK.
    Please advice.
    Thank You,
    With regards,
    Sachin Dalal

    Thanks Leon,
    But this is the requirement from business users and they are not ready with any work around.
    I have resolved this.
    Instead of using Email as Destination, I used Files System as destination.
    The list of desired recipient along with filename to be sent in email as attachment and its location is stored in database table.
    And created one small Java utility which will send an email with file attachment from the file folder and send it to the desired email receipient by reading from the above database table. I scheduled this small java utility after execution of the Publication.
    Thanks,
    Regards
    Sachin Dalal

Maybe you are looking for