Mailing from XI to different groups based on Condition

Hi Experts,
I have a scenario where i have an incoming XML Invoice document which i need to map with Invoic02 idoc and to send to R/3.
While sending it to R/3 i also need to put conditions on certain special links,when fails sends out mails to a
respective mail group .
When i get a wrong field/condition the map fails.Based on the condition which failed the map,XI should be mailing to
the respective group .
I will be having around 4-5 mailing groups in the single map .
Please suggest me some helpful blogs and inputs for this scenario.
Thanks,
Sudhansu

B'cos you are failgn the mapping at deisgn time (by various conditions), you can configure diff ALERTCategories & invoke them appropriately from your UDF.
/people/bhavesh.kantilal/blog/2006/07/25/triggering-xi-alerts-from-a-user-defined-function
For each of these AlertCategories, you will configure your respective recepients.
Regards,
siva Maranani

Similar Messages

  • BPMOn: Is it possible to send email notification to different groups based on filter value for IDOC?

    Hi there,
                  I have setup the monitoring for idoc through interface monitoring and I am getting the alerts for the same. The alert is generated for different status values for the same idoc. Now my question is, is it possible to send email notification to two different groups based on the status values?? I mean for example , for a single idoc for some status values I want to send email notification to group1 only and for other status values I want to send notification to group2.Any help will be apperitiated.
    Thanks and regards,
    Rutvik Upadhyay

    We currently do not support that level of control for sending email notifications. If you think others are interested in this you should add an idea here: http://forums.adobe.com/community/formscentral?view=idea
    We use that to help us prioritize our work.
    Thanks,
    Randy

  • All the mail from my 3 different accounts appears in one INBOX!!

    I have a mobile me email account, along with 2 external POP accounts from my own domain, I added them both, and everything works fine, I can send and receive mail, sent folder is OK, drafts, etc. But the thing is that all new mail arrives to my mobile me Inbox, instead of arriving to external account Inbox. This causes a mess, since my mobile me account is personal, and the other POP accounts are from my job. And one more thing, if I try to read my new mail from the external accounts via Safari, it does display anything, it's like my mobile me account is dragging all my messages, Any help on this one, please?

    Hi Manuel
    Unless you yourself have set up forwarding from your POP accounts to MobileMe, there is no connection whatsoever between those email accounts.
    Click on the small triangle to the left of the Inbox in Mail - it will separate out into your three different account inboxes.
    And it sounds like you have set your POP accounts to delete mail from the server once you've received it in Mail. In your Mail account preferences, go to Advanced, and change the Delete from Server option if you also want to see the same messages in webmail.
    Matt

  • On my laptop, when I read my incoming e-mails from my yahoo e-group, only a few are sent each day, instead of all the posts. Where's my problem?

    Each day, a lot more posts come from my yahoo e-group on my msn e-mail account, than on my gmail account. I prefer to use the gmail account.

    It is interesting that "Recent Mode" is in violation of the RFC's for POP mail. When asked by a pop client for all mail that is what is supposed to be supplied. Unfortunately for Google they have made such a mess of email that complying with the RFC would mean some clients would get 10 or more Gb of mail because now we save everything to the cloud and in Google's case they encourage permanent storage. Even it we don't want to. Good one Google, perhaps you to could call it "innovation"

  • Dataset from two set of tables based on condition

    I have two queries that will return same columns from two different set of tables ( column mapping has been taken care of). The return type is out ref cursor. (P_SUPPLY_REORDER )
    Query 1-SO
    select
    so.SMO_NO,
    so.SPLY_ORD_DT,
    so.fk_CUST_ID as CUST_ID,
    so.CUST_PO_NO,
    so.ATTENTION_NAME,
    sum(sol.SPLY_ORD_QTY) as SPLY_ORD_QTY,
    --sum(sol.sply_shp_qty),
    so.ST_NAME,
    so.ADDR_LN_2,
    so.ADDR_LN_3,--sta.SHIP_TO_ADDRESS_LINE_3,
    so.CITY_NAME,
    so.ST_TERR_CD,
    so.ZIP_CD,
    so.SPCL_SHP_INSTR_TXT,
    so.SHP_CNFRM_DT
    ,XCOM_ORDER_NO
    from
    supply_order so,
    supply_order_line sol,
    XCOM_ORDER_HEADER
    where
    so.FK_CUST_ID =in_cust_id
    and so.pc_ord_no = sol.fk_pc_ord_no and
    XCOM_ORDER_HEADER.FK_PC_ORD_NO = so.PC_ORD_NO
    group by so.SMO_NO, so.SPLY_ORD_DT, so.fk_CUST_ID,
    so.CUST_PO_NO, so.ATTENTION_NAME,
    so.ST_NAME, so.ADDR_LN_2, so.ADDR_LN_3, so.CITY_NAME, so.ST_TERR_CD,
    so.ZIP_CD, so.SPCL_SHP_INSTR_TXT, so.SHP_CNFRM_DT, XCOM_ORDER_NO;
    Query-2 Xcom
    select
    null as sMO_NO,
    xso.created_date as SPLY_ORD_DT,
    xso.fk_cust_id as cust_id,
    cust.cust_po_no as cust_PO_NO
    ,(sta.SHIP_TO_ATTN_FIRST_NAME||''||sta.SHIP_TO_ATTN_LAST_NAME) as attention_name,
    xsol.CARTONS_ORDERED as SPLY_ORD_QTY,
    --sum(sol.sply_shp_qty),
    sta.SHIP_TO_ADDRESS_LINE_1 as ST_NAME,
    sta.SHIP_TO_ADDRESS_LINE_2 as ADDR_LN_2,
    --sta.SHIP_TO_ADDRESS_LINE_3,
    NULL as ADDR_LN_3,
    sta.ship_to_city as CITY_NAME,
    sta.SHIP_TO_STATE as ST_TERR_CD,
    sta.SHIP_TO_POSTAL_CODE as ZIP_CD,
    sta.SHIPPING_INSTRUCTIONS as SPCL_SHP_INSTR_TXT,
    null  as SHP_CNFRM_DT,
    xso.XCOM_ORDER_NO as XCOM_ORDER_NO
    from
    XCOM_ORDER_HEADER xso,
    XCOM_ORDER_LINES xsol,
    customer cust,
    ship_to_address sta
    where
    cust.cust_id = xso.fk_cust_id and
    sta.fk_cust_id = xso.fk_cust_id
    and xso.FK_CUST_ID =in_cust_id
    and xso.FK_PC_ORD_NO is null
    and xso.xcom_order_no = xsol.fk_xcom_order_no;Now the requirement is
    One of four conditions are possible for each Supply Reorder Number:
    •     Both table queries return no records
    -     Populate all the P_SUPPLY_REORDER output fields with nulls
    •     SUPPLY_ORDER returns a record, but XCOM_ORDER_HEADER returns no records
    -     Populate output fields with values from the join of SUPPLY_ORDER and SUPPLY_ORDER_LINE.
    •     SUPPLY_ORDER returns no records, but XCOM_ORDER_HEADER returns one record
    -     Populate output fields with values from the join of XCOM_ORDER_HEADER and XCOM_ORDER_LINES.
    •     SUPPLY_ORDER returns a record, and XCOM_ORDER_HEADER returns a record; find out the latest order by comapring max(SPLY_ORD_DT)
    from SUPPLY_ORDER with max(CREATED_DATE) from XCOM_ORDER_HEADER.
    -     If the latest order is in SUPPLY_ORDER, then populate output fields with values from the join of SUPPLY_ORDER and SUPPLY_ORDER_LINE.
    -     If order dates are equal from both join results, then populate output fields with values from the join of SUPPLY_ORDER and SUPPLY_ORDER_LINE.
    -     If the latest order is in XCOM_ORDER_HEADER, then populate output fields with values from the join of XCOM_ORDER_HEADER and XCOM_ORDER_LINES.
    Question is how can we switch over the queries to pull respective dataset based on these conditions ( checking that which table join is going to return a row and then based upon latest order if both tables return a row) and all this logic as part of single SQL statement that is returned as OUT Ref Cursor.
    Your help will be really appreciated. Thanks much in advance.

    It would be easier if you would supply a dataset we can work with. And I assume the queries are called within a other cursor which returns in_cust_id right?
    The best/fasters way would be to say goodbye to nested cursors.
    You need:
    the in_cust_id_query
    extend SUPPLY_ORDER with a new field
    max(CREATED_DATE) over (partiontion by cust_id) max_created_dateextend XCOM_ORDER_HEADER with a new field
    max(SPLY_ORD_DT)over (partiontion by cust_id) max_sply_ord_dateThen you make a 3 level SELECT
    the innerst () join all 3 sources
    the second level names the rule
    the outermost level applies the rule to each field:
    SELECT
    -- case statement to each field:
    CASE rule
    WHEN 1 THEN null
    WHEN 2 THEN s_smo_no
    WHEN 3 .... END  SMO_NO,
    SELECT
    -- check all rules:
    case
    --• Both table queries return no records
    when s_in_cust_id IS NULL and h_in_cust_id IS NULL then 1
    --• SUPPLY_ORDER returns a record, but XCOM_ORDER_HEADER returns no records
    when s_in_cust_id IS NOT NULL and h_in_cust_id IS NULL then 2
    --• SUPPLY_ORDER returns no records, but XCOM_ORDER_HEADER returns one record
    when s_in_cust_id IS NULL and h_in_cust_id IS NOT NULL then 3
    ELSE 4 end rule_id,
    i.*
    (SELECT c.in_cust_id,
                 s.*, (with alias of course eg. s_...)
                h.*, (with alias of course  e.g. h_...)
    from  in_cust_id_query c
      LEFT JOIN SUPPLY_ORDER s
       on (c.in_cust_id = s.in_cust_id)
    LEFT XCOM_ORDER_HEADER h
      on (c.in_cust_id = h.in_cust_id) i;I hope you get it.
    Of course you can do what you probable currently do. Open both cursors one by one and compare the results. But when you have 10000 in_cust_ids you start 20000 queries and you have a lot of code.
    This method I'm showing need these roles coded as well, but you'll have ONE single query and that will be as fast as ORACLE can be. And I believe it's easier to read too. (But not simple!)
    If you need more help, try to supply an example we can work on.
    -- andy

  • IDOC -XI-SOAP one sender different  receivers based on condition

    Hi All,
    I have an IDOC to SOAP scenario.
    For each record based on the input flag XI has to send the  any one of the request ...like either create or update or delete request. All these message types are a part of single WSDL.
    How can i do it?
    Thanks in Advance
    Jyothsna

    hi There are two ways you can do this:
    1. Without BPM - Since you have to create all the target messages adn you want either the 1st and second, or the first and third: create two multi-mapping with one and two, and one and three. In the receiver determination check the condtion based on which you decide the second or the third message has to be created and route it to the correct mapping accordingly.
    2. with BPM, create all the target mapping. In the BPM check the condtion in the switch and do a send accordingly.
    You can do this either on Receievr Determination or on Interface Determination.
    Add multiple Receievrs/ Interfaces and then add the conditons on which the target should be choosen
    to use Xpath for your receiver det. ref these blogs;
    a combination of logics should help you in this case ...
    /people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination
    /people/shabarish.vijayakumar/blog/2005/08/03/xpath-to-show-the-path-multiple-receivers
    pls reward points if solution found helpfull
    regards
    chandra.k

  • Auto provision different groups in oim 11g

    Hi,
    While provisioning a user to AD, I need to add few different different groups based on the user's dept code.
    We have around 250 dept codes and I dont want to create 250 access policies to provision different groups based on the dept code.
    Is there any other way to resovle my issue?
    I am using OIM11g. Please let me know.

    Adding more to Bikash Reply...
    Create a Lookup with codekey as Dept Code and Decode as Groups like
    Dept1->Group1
    Dept1->Group2
    Dept1->Group3
    Write a code which retrieves the groups for corresponding dept code from the lookp, and in the same code call addProcessFormChildData(under tcFormInstanceOperationsIntf) for each group retrieved from lookup. Attach this adpater to new process task and call this task on success of create user task.
    Reference:
    JavaTask to be called after AD User provisioning succeeds
    HTH

  • Suddenly can not access .mac mail from Apple Mail

    Suddenly, I can not access .mac mail from Apple Mail (Version 2.1.1 (752.3)).
    For quite a few years I have been using Apple Mail to access my .mac email. As of last Friday, Mail stopped working. Nothing has changed (accept for the installation of the latest OS X security upgrade - SecUpd2006-008Univ.pkg).
    I can still access my .mac mail through the .mac web browser and I can still access it through SnapperMail on my Palm Treo 680. But, when I open Apple Mail on my MacBook, it does not do anything, just sits there. When I open the Activity Viewer window, 3 activities are going on:
    1. Opening Mailbox
    2. Synchronizing with Server (Connecting to...)
    3. Synchronizing with Server (Synchronizing with...)
    After a few minutes, the error triangle appears next to the Inbox and .Mac logos on the left hand panel.
    I have tried Apple Mail from several locations (different ISP / WiFi / LAN) over several days but get the same problem.
    Does anyone have ideas for a solution?
    Regards
    Peter

    Let’s first make sure that the update is installed properly, and post back with your observations when done.
    Verify/repair the startup disk (not just permissions), as described here:
    The Repair functions of Disk Utility: what's it all about?
    After having fixed all filesystem issues, if any, reinstall the update that appears to not have been installed properly. You may also need to reinstall the Combo Update for the type of computer and the version of Mac OS X you’re using, unless this is the version of Mac OS X that came with your computer:
    About the Mac OS X 10.4.8 Combo Update
    Mac OS X 10.4.8 Combo Update for PPC
    Mac OS X 10.4.8 Combo Update for Intel
    Take a look at the following articles for guidelines on how to properly install system updates:
    Troubleshooting installation and software updates
    Installing software updates
    Basically, you should verify/repair the startup disk before installing the update, no applications should be running while installing it, and you may experience unexpected results if you have third-party system software modifications (not normal applications) installed.

  • Drop the files into different directories based on the filename

    Hi,
    I had a reqiuirement based on the file name, i should drop the files in to different directories.
    I can get the filename through variable substitution in receiver file communication channel, now i want to drop the file into different folders based on conditions.
    suppose, if the file name is DDDX234
    i should do substring of filename0+(4), if the value is L then i should drop in X directory
    suppose, if the file name is DDDY234
    i should do substring of filename0+(4), if the value is L then i should drop in Y directory.
    How can i drop the file into differnent directories based on filename.
    Thanks
    Srinivas

    Thanks Michal,
    I mapped the directory and filename to the target header in the mapping
    Filename --> UDF --> Header(target)
    and in the receiver channel checked the ASMA and given * in the filename and directory name.
    But in runtime iam getting the error as
    Attempt to process file failed with com.sap.aii.adapter.file.configuration.DynamicConfigurationException: The Adapter Message Property 'FileName' was configured as mandatory element, but there is no 'DynamicConfiguration' element in the XI Message header
    MY UDF is
    public String Directory(String a,Container container){
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key  = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/File", "FileName");
    DynamicConfigurationKey key1 = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/File", "Directory");
    String FileName = conf.get(key);
    FileName = a;
    conf.put(key, FileName);
    %%%based on filename the directory should change
    String Directory = conf.get(key1);
    Directory = "/SAPInterface/XI/PPD/DHX/out";
    conf.put(key1, Directory);
    return "";
    Help me in correcting this error.
    Thanks
    Srinivas

  • Running Query Based on Condition

    Hi
    I want to run different query based on a condition. I am not able to execute the following query. is this the right way to run different query based on condition?
    SELECT * FROM (
    CASE WHEN (SELECT COUNT (*) from data1 where ID = 1 AND stype = 'A') > 0 THEN select * from data where ID = 1 AND stype = 'A'
    WHEN (SELECT COUNT (*) from data1 where ID = 1 AND stype = 'B') > 0 THEN select * from data where ID = 1 AND stype = 'B'
    WHEN (SELECT COUNT (*) from data1 where ID = 1 AND stype = 'C') > 0 THEN select * from data where ID = 1 AND stype = 'C'
    END
    ) as a;
    Edited by: user6016744 on 21 Apr, 2011 12:40 AM

    This works for us; hope it helps.
    CREATE OR REPLACE FUNCTION SCHEMA.GET_STEP_COST (loan_number_in in VARCHAR2, step_code_in in VARCHAR2 default null, ws_in in VARCHAR2 default null )
    RETURN VARCHAR2 IS retval  VARCHAR2 (50);
    /*passing in loan number and step code you need the cost for, will return the cost*/
    BEGIN
        CASE ws_in --depending on workstation in is the table select
        WHEN 'F' THEN
            EXECUTE IMMEDIATE 'SELECT '|| step_code_in ||' FROM CLAIMS_FCL_STEPS WHERE LOAN_NUMBER = '|| loan_number_in ||'' INTO retval;
        WHEN 'R' THEN
           EXECUTE IMMEDIATE 'SELECT '|| step_code_in ||' FROM CLAIMS_RS_STEPS  WHERE LOAN_NUMBER = '|| loan_number_in ||'' INTO retval;
        WHEN 'L' THEN
           EXECUTE IMMEDIATE 'SELECT '|| step_code_in ||' FROM CLAIMS_LM_STEPS  WHERE LOAN_NUMBER = '|| loan_number_in ||'' INTO retval;   
        ELSE
            retval := 0;
        END CASE;
      RETURN retval;
    END GET_STEP_COST;
    /

  • Add contact from Mail directly to Address Book group?

    I am aware of adding a contact to Address Book by Control-clicking the email address, however I would like to add an address directly from Mail to an Address Book group. How is this done?

    You first need to open the message(s) that have the addresses you want to add to Address Book, then select the Add Addresses… script from the Mail Scripts folder listed in the Scripts icon in the menu bar (you can activate this by launching the AppleScript Utility.app program in HD/Applications/AppleScript and check the box labelled "Show Script Menu in menu bar" if it isn't already there).
    The script will launch and gather the information it needs about those messages, including the To: and From addresses and present them to you in a window; you need only check which ones you want to add and select the group you want them to go to from the drop-down menu it has and click Add or Okay, or whatever it has listed there to execute the script.
    Rinse and repeat for each different group of messages you want to add to a specific group.
    Mulder

  • I have three different e-mail addresses, and need to receive the incoming e-mails from the three sources.  How do I enable my iPhone to do it? Tks in advance.

    I have three different e-mail addresses, and need to receive the incoming e-mails from the three sources into my iPhone (it's presently receiving msgs from only one of them).  How do I enable my iPhone to do it? Tks in advance.

    Many thanks for your help!

  • I have my ITunes account on my home Macbook.  Can I log onto my ITunes account from a different Windows-based computer?

    I have my ITunes account on my home Macbook.  Can I log onto my ITunes account from a different Windows-based computer?

    Yes, but your iTunes library won't automatically show up on a different computer; putting it there is a separate process.
    (122714)

  • Need to send mail from Microsoft Exchange 2007 account(different from Gmail) on behalf of another Gmail ID. How to configure that ?

    I have a Gmail ID (e.g [email protected])
    I have a Exchange ID (e.g  [email protected])
    I need to configure exchange account (2007)  such that I can send a mail from my Exchange account but at the receiver end it looks like it was sent from  ([email protected]).
    Both the accounts are my accounts.
    I need this because I do not have access to my Gmail account from place where I access the internet and I need to send the mails from my Gmail account only.

    So you want to spoof your e-mail address.
    You can make your Exchange server send as any address you want.  Just create a different mailbox with that address as the primary (reply) address.  It has to be a different account.
    However, be aware that many systems to which you send such mail to will bounce it as suspected spam because they'll detect that your server is sending mail from Gmail but your server is not Gmail.
    Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."

  • I received an iPhone 6 in the mail from my previous service provider but I already changed to a different provider and got an iPhone 6 thinking I wouldn't receive the phone in the mail. Should I mail it back?

    I received an iPhone 6 in the mail from my previous service provider but I already changed to a different provider and got an iPhone 6 in the meantime because my iPhone 5 stopped working and I was desperate thinking I wouldn't receive the phone in the mail. Should I mail it back or sell it?

    You aren't serious are you? Send it back. It is not yours, you do not own it, therefore selling it would constitute selling stolen goods. You would be committing a crime, and you would be screwing whomever you sold it to.
    GB

Maybe you are looking for

  • How to get the name and value of an attribute on a node/element that is not a child

    Hello, Can someone shed some wisdom on how I can compare 2 xml nodes for differences. My main challenge is I need to use the attributes/values of 'ProductDescription' and 'Features' as 'key' to identify the same node in another doc with the same layo

  • MacBook + 19" TFT DVI = Mouse problem

    Hi, I'd like to use my MacBook 2,16GHz (Mid 2007) with my external 19" TFT Dell Display. When connecting it via DVI it's almost impossible to use the MacBook trackpad or an external mouse. The mouse pointer reacts with a slight lag and then jumps, so

  • Pinch to Zoom not working

    Hi, Just bought an iPhone and my pinch to zoom on certain web pages isnt working. eg: on google I cant pinch and zoom on any search results or pictures in the 'Images' tab. When I click on an image it still wont zoom. Has anyone else had the same pro

  • (i7 battery) Macbook Air 2013

    So basically let me give you a quick backstory.. I got the MBA 13 inch with the i7 upgrade as a birthday gift. While I was in the store, before I purchased it, I wanted to check the battery life. On a factory charge, mine said 11:35 Hours (aprox. 84%

  • I cannot load my google calendar, how can i decrypt the connection in order to have access?

    The information about this website says that the page has been encrypted because there is no authorized owner. I need access to my google calendar from work. How can i decrypt the connection? Is there other way to fix the problem?