How to implement validations in message mapping?

Hi experts,
I have a simple requirement:
I have a simple synchronous scenario:
SOAP -> XI -> RFC
In a message mapping, one of the fields in the source message is of type String.
However, the target application (RFC) does not expect a non-numeric characters in this string.
My question is how can I perform the validation in XI and tell the sender that this field contains Non-numeric characters?
Please help.
Thanks.
Ron

> Ron,
>
> >>With a RunTime Exception thrown, how can I tell
>  the sender an error has occured?
>
> Sure. You can do this with out a BPM. You need to
> configure alerts for this. If you configure ALERTS
> and SCOTT, this will send an email of the errors
> occuring in your scenario.
>
> For configuring and trouble shooting alerts check
> these
>
> https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/
> 2327
> https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/
> 2328
>
> Regards,
> Jai Shankar
Hi Jai
I already have alerts configured.
But what I had in mind is to send a response to the sender (The sender is waiting for a reply since this is synchronous), instead of telling the sender through an alternative means such as email, sms, etc.
Is this possible?

Similar Messages

  • Validations in message mapping

    Hi,
    How can we do different validations in message mapping
    and how can we trap them
    Pls suggest blogs.
    Regards

    Hi,
    you need to model them yourself
    with some standard functions like:
    - length
    - if
    - ifwithoutelse
    etc
    Regards,
    michal

  • How to use functions in Message Mapping

    Hi All,
           I am new to SAP XI. I don't know how to use functions in message mapping.     Can any body tell me how to use IF condition in message mapping.
         Please provide me a good link where I can get the details how to use those functions.
    Thanks,
    Srinivas.

    HI Srinivas
    Please take a look at these links,
    http://help.sap.com/saphelp_nw04/helpdata/en/43/c4cdfc334824478090739c04c4a249/content.htm
    /people/sravya.talanki2/blog/2005/08/16/message-mapping-simplified--part-i
    /people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii
    This will help you
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/190eb190-0201-0010-0ab3-e69f70b6c257
    http://help.sap.com/saphelp_nw04/helpdata/en/55/7ef3003fc411d6b1f700508b5d5211/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/a8/bfc6373c8fea43bdb3541535bcbd43/frameset.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/8a57d190-0201-0010-9e87-d8f327e1dba7
    This will give you a detailed Idea about Context
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db95f835c111d1829f0000e829fbfe/frameset.htm
    This will give more explanation on Queue
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/51a39490-0201-0010-5b9f-ae21e8b78195
    For understanding node functions this blog will help you
    /people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii
    Not sure you can find a collection of all...
    Cheers..
    Vasu
    <i>** REward Points if found useful **</i>

  • How to do this with message mapping in PI  ?

    Hi All,
    Field 1 = 100 characters having values in  first fifty characters and last 50 characters blank . I need to remove all the first 50 characters with blank and pass 100 blank characters .How to do this with message mapping
    Thanks

    Adding to that, since usually a tab = 8 spaces. What you can do is to open notepad, press tab 4 times. Copy it and paste 3 times, afterwards press space 4 more times and you get 100 spaces.
    Regards,
    Mark

  • How do I resolve error message "mapi was unable to load aplzod.dll"? Outlook2010 on Win7

    Attempts to open Outlook calendar files (apparently located) on iCloud result in the error message "MAPI was unable to load the information service C:\PROGRA~2\COMMON~1\Apple\Internet Services\APLZOD.dll". Be sure the service is correctly installed and configured."
    I am running Outlook 2010 on Windows 7. I have uninstalled and reinstalled iTunes with no apparent effect. Is this a problem with iTunes or Outlook, how do I resolve it?

    That's part of my problem - I was getting the error message when I tried to click on iCloud in the Calendar portion of Outlook 2010. I don't know where it was generated (iCloud, iTunes, or as an add-in to Outlook).
    After my original post I tried restoring my computer to a date when I knew this worked, the restoration worked, and I can access my calendar. So that problem resolved itself.
    I do have another question, but I'll post it separately. Thanks for your response.

  • How to implement multi-source XSLT mapping in 11g PS3 BPEL  ?

    Hi
    How to implement multi-source (single destination) XSLT mapping in 11g PS3 BPEL ? Is there any good example step by step ?
    thx
    d

    Hi d,
    Also there's a sample available at samplecode.oracle.com mapper-105-multiple-sources.zip.
    Regards,
    Neeraj Sehgal

  • How to remove nodes in Message mapping

    Hi XI friends,
    in my idoc to file..
    i have number of segments..all segments are optional...
    i want to remove in resultanat xml file..
    please tell me how to remove if the values are not exsisted for that Segment ..
    i think its possible in message mapping..
    please guide me..
    Munna

    Hi Munna,
    Try Creating a UDF in your mapping name it like: "Create"
    Paste the below mentioned code in it
    ========================
    String str = a;
    if(str != null && str.length()>0)
    return "true";
    else
    return "false";
    ========================
    2) Save this function .
    3) Now Map like this
    (Source Node->UDF Create)->Check if it returns a string "true"--> if yes Map it with source node->add this in the "then" of an "if with out else"---->Target node.
    4) Test now in testing tool in Message mapping.
    Try it.
    it will work
    regards
    Pl: reward points if it worked

  • How to pass GUID in message mapping

    Hi ALL
    I would like to populate one of the target fields with SAP PI GUID or Message ID.
    Can you please let me know, how to get the GUID in my message mapping and map it to the target field.
    Thank you,
    Ritu

    Hi Ritu ,
    its simple you can pick the messageID from the streamtransformation constant and map it to ur target field .
    use this UDF it does not taes any input and its output can be mapped to target field where you want to populate the messageid.
    java.util.Map param = container.getTransformationParameters();
    String MSGID = (String) param.get (StreamTransformationConstants.MESSAGE_ID);
    return MSGID
    Regards,
    Saurabh

  • How to implement a client side map with ObjectImage control?

    We need to implement a client side map with an ADF Faces ObjectImage control. In the code below, the JSF Faces GraphicImage contol does support a client side image map using the usemap property. However, it appears that the ADF Faces ObjectImage control does not support a client side map. Is there someway of implementing this functionality in an ObjectImage control?
    <h:graphicImage url="/images/map-usa.gif"
    usemap="#m_mapusa"
    binding="#{backing_map.graphicImage2}"
    id="graphicImage2"
    style="border-style:none;"/>
    <af:objectImage source="/images/map-usa.gif"
    binding="#{backing_map.objectImage2}"
    id="objectImage2" />
    We could use the Graphic Image control except we have a problem by mixing a JSF GraphicImage control in the same table with a variety of ADF Faces controls in that when a user clicks on the GraphicImage, then the browser windows scrolls down to center the GraphicImage control. A user then needs to scroll back up to see the rest of the page. If an ObjectImage control is used with an onClick action, then the page does not scroll, which is what we want. So if we can figure out how to add a client side map to an ObjectImage control we would get the desired results.
    An alternative might be to use a server side map with the ObjectImage control. But our question here is how to implement the existing client side image map in a backing bean. As the following map code shows, not all image map areas are rectangles - some are polygons.
    <area id="_state_05" href="#"
    shape="rect"
    coords="681,38,702,50"
    target="_self" value="VT" alt="Vermont"
    onclick="javascript:getDtl(this);"/>
    <area id="_state_06" href="#"
    shape="poly"
    coords="221,442,209,436,209,418,191,403,155,382,116,367,101,370,98,364,
    122,355,158,367,203,388,212,394,242,427"
    target="_self" value="HI" alt="Hawaii"
    onclick="javascript:getDtl(this);"/>

    Hi,
    Any news about that issue, we are also interested in any solution.
    Thanks
    Math

  • Ignoring a DTD validation at message mapping

    Hi,
    I'm facing the following situation: as a responce for a HTTP service consume, we are getting this payload:
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE ChannelAdminResult SYSTEM "/AdapterFramework/channelAdmin/ChannelAdmin.dtd">
    <More tags....>
    the problem is that the message mapping is not able to get the dtd that validates the payload. I did try uploading the dtd file as external definition, but it still not working.
    Is there anyway to bypass the !DOCTYPE validation?
    Thanks in advance,
    Ariel

    Hello, I have the same problem. If you have an solution for it, please post it here anyway.
    In my case, the external reference is an http-adress. The server has an connection to it, but it doesn't work until now.
    I tested the way over the external  definition, too, but with the same effect.

  • How to render validation error messages with a specified language.

    in my jsf project, i want to display validation error messages in Turkish. But due to the performance considerations we keep our servers language setting in English.
    how can we manage..i will be very appreciated with your guiding.
    note: we have already tried the solutions with defining our local and supported local language on faces-config.xml . it did not work.

    there is only one difference. my development environments(my local server) local setting is Turkish. but the Application servers local settings is EnglishSounds like you defined application supported locales but no application default locale.
    If there is no match of requested locale and supported locale, application default locale will be used.
    If application default is also not available JVM default locale will be used.
    This would explain the differences.
    (Mojarra)

  • How to implement Dynamic Context Node Mapping between Components

    Hey genuis:
               I am looking for how to implement context mapping bwteen two components. I read some threads, and try to use external context mapping. The example works fine. However, my requirement is more than that.
    I have a context node in Component B, and the attributes in it are dynamically generated. Component A is the main component which use Component B's function. Both A and B work fine by theirselves. 
    When I assemble A and B (external mapping), the system gives me a exception:com.sap.tc.webdynpro.progmodel.context.ContextException: MappedNodeInfo(T8UploadCompInterface.data): cannot create nodes, no mapping defined yet.
    Please give me some suggestion?
    Any responses are appreciated.

    I miss this thread.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6fdae690-0201-0010-a580-d104b459cb44
    This is almost the right solution for my problem.

  • ** Any one know How to Implement POI of Google map ***

    **Hi Friends,
    if any one knows about implementation.just share with me.
    [email protected]

    HI Friends,
    How to implement Point Of Interest from google map.
    Is it possible, i checked in google static map api ..it provides markers and path and also some features
    other than POI.
    May i know how to implement POI,
    what api i have to use..i checked google ajax api. im not able to get that one.
    So,give me ur suggestions.
    what i have to do .
    [email protected]

  • How to export parameters from Message Mapping

    You can make use of this export parameter only in transformation step of Integration Process. You may use the following "Parameterized Mapping Programs"
    http://help.sap.com/saphelp_nwpi71/helpdata/en/27/db283fd0ca8443e10000000a114084/content.htm
    Regards,
    Prateek

    If you have defined the signature of your UDF then the return value of the UDF must be assigned to the Export paramter of message mapping.
    Basically import parametrs represents the inputs to be passed for that function(message mapping here)
    and export represents the output of that function.
    so in your case if you want toassign the value to Export parameter (ERROR_TEXT) in UDF catch block
    assign the error returned to the ERROR_TEXT field
    http://help.sap.com/saphelp_nwpi71/helpdata/en/43/c3e1fa6c31599ee10000000a1553f6/frameset.htm
    Check this link
    Hope this is clear
    Rajesh
    Edited by: Rajesh on Mar 13, 2009 5:31 PM

  • How to use Variable in message mapping

    Hi Experts,
    I have some problem using variable in message mapping.
    In one message mapping, since a block of logic is repeated for several fields, then i tried to use a variable instead.
    the repeated logic is: first if condition, then use a udf to form a queue which will be suppressed by its father node.
    i tried to assign the result queue to a variable after the UDF execution. (this variable is created after the father node)
    I am wondering is there any restriction of using variable?
    Can we assign the whole queue to a variable?
    Can we use UDF during the process of assigning value to variable?
    thanks in advance.

    I dont think you can assign a queue to a variable,I am not 100% sure, . and there is no restriction to useing a Zvariable, only u can use it after you declare at some parent level.
    Yes you can use a UDF in the process of assigning to a Zvariable.
    Check out this link and read the comments of the blog.
    SAP PI 7.1 Mapping Enhancements Series: Using Graphical Variable
    /people/william.li/blog/2008/02/13/sap-pi-71-mapping-enhancements-series-using-graphical-variable
    Edited by: Saiyog Gonsalves on Nov 6, 2010 6:40 PM

Maybe you are looking for

  • Recommened wireless router for IMAC

    Just purchased an IMAC 21.5 computer and need a better wireless router for the IMAC and IPAD AIR. Used for surfing the net, email and wireless printing. What should I look at?

  • XFCE popup message in panel not appearing

    after upgrade to last XFCE release i seem to be unable to see the popup messages from items on panel such as Network monitor. I hover with mouse cursor over it but nothing appears. Anyone had similar happening?

  • Update wsdl for mulitple tests

    I have over 1000 WSDL and WM tests that we need to update the WSDL and it looks like the only way is to access each test in ALM, then click link to execute test in ALM, update the WSDL and repeat for each test Is this true? Thanks, Wendell

  • Flash Prof. CS5 simple photo album/slideshow template

    I am trying to use the "simple photo album" template that comes with Flash Prof. CS5. I have it working except I want it to play by default. The actionscript that came with the template is below (in blue), but if I set var autoStart:Boolean = true; I

  • Oubli email de sécurité...

    Bonjour. Je voudrais effectuer un achat sur iTunes sauf que j'ai oublié mon e-mail de secours ainsi que les réponses aux questions posées. Quelqu'un a-t-il une solution?