Xpath in BPM correlation. Have to pass only few characters of a field in co

Hi All,
Header file:
MDk-111;1728;175;02.09.11;781961.09;0.00;0.00;781961.09;;;;;;;;;0
MDk-112;8574;175;02.09.11;4462;1112;104098800;104102150;;;;;;;;;2
MDk-113;1729;175;02.09.11;781962.09;0.00;0.00;781961.09;;;;;;;;;0
MDk-114;8575;175;02.09.11;781963.09;0.00;0.00;781961.09;;;;;;;;;0
Detail file:
MDk-112;8574;175;02.09.11;;DEBIT;;;;;-1112;;0;02.09.11;;;;20555;;;037;
MDk-112;8574;175;02.09.11;;CREDIT;;;;;104098800;;0;02.09.11;;;;;;;099;
- I have to merge header and detail records into one target structure..
- For the records which doesn't consists of detail records should pass only header record. ex: MDk-113
- To merge the both the files, im using BPM with correlation.
The correlation which i need to use in BPM is the first record in both the files "MDk-XXX" where XXX is the number which may or may not match in both the files.. So i need to pass only first four characters of the first filed in the correlation ie. "MDK-".
After file content conversion, the input xml payload will be as below
<Code>MDK-112</bankCode>
How can I pass only first four characters of this field ("MDK-") in Xpath in the correlation tab?
Kindly suggest.
Thanks
Deepthi

Hi Deepthi,
You can send the substring of the Code value. This is explained in the following WIKI, have a look at this.
http://wiki.sdn.sap.com/wiki/display/XI/XpathConditioninReceiverDetermination
regards
Ramesh

Similar Messages

  • BPM Correlation from Dynamic Configuration not being filled

    Hey guys,
    I'm having the following problem with BPM correlation.
    In my correlation definition, I have 2 fields: one which is filled with information from the message payload, and another one which is filled with a context object (which was created with adapter metadata and filled with dynamic configuration, as refered here: /people/michal.krawczyk2/blog/2006/10/09/xi-dynamic-configuration-in-adapter-modules--one-step-further).
    All instances of BPM are with error status. And when I go into the workflow log for these processes, if I check the correlation object, it is like this:
    <?xml version="1.0" encoding="utf-8" ?>
    <CorrelationKey Version="001">
    <Field1 />
    <Field2>123456789</Field2>
    </CorrelationKey>
    Field1 is the one read from context object, and is not being filled (thus I think the error comes from here). Field2 is from payload and is being normally filled.
    Any ideas on this matter?
    Maybe the problem is not from the correlation. If not, what else could be the case? The BPM crashes on the very first step (one more reason to think that the correlation is the issue).
    Thanks in advance,
    Henrique.

    HI,
    In general Correlation , concept, whatever we configured in Correlation editor , i mean in runtime which xml element should filled with which element of which interface ..as you said you have configured the local correlation to block, in block it is the first receive step, while receiving the first message which is relevent to first recieve step , i mean if it receives the one message which is related to first receive step inteface .. the respective element data will be filled in correlation id and it will assign on giud for processing , so while assign the runtime data to correlation element ( imean filling stage) check you said two elements in correlation does the first message contains these two elements ??
    if so ok , no then check , and try to use the IM before calling the IP to fill the payload.
    Regards
    Chilla
    Oh closed!!
    Message was edited by:
            Chandra Sekhar Chilla
    Message was edited by:
            Chandra Sekhar Chilla

  • BPM Correlation problem

    Hi All,
            I did BPM correlation scenario. According to this scenario I have to send 2 messages, if I send two messages from the sender side it is working fine. If I send one message from sender side it is waiting until second message reach. Here my problem is if the second message may not send, I want to kill the message waiting process at a specified time. Please help me how to do this process.
    Thanks ,
    Kumar.

    Hi,
    There is a 'Deadline branch' dedicated for this purpose. In a block you can introduce a deadline branch.
    Go thro the link for more details:
    http://help.sap.com/saphelp_nw04/helpdata/en/c5/582541019fa52fe10000000a155106/content.htm
    Regards,
    P.Venkat

  • XPath in BPM switch

    Hi,
    I'm trying to use a switch in an integration process that relies on XPath for the switching logic and I am having some difficulties getting it to work.
    I've tested the following and it is a valid XPath statement, but does not seem to work as I would expect in XI
    /p1:BAPI_EQUI_GETDETAIL.Response/DATA_GENERAL_EXP[number(translate(READ_CRDAT, "-", ""))>=20010101]
    This should return a node and if the string in READ_CRDAT is greater than 2001-01-01 and thus satisfy the EX condition. However, all of the records are rejected even though there are number of test cases that should pass.
    What type should I specify in the expression editor for the XPath? Can you use the number() and translate() functions in XI? Is there a length limit to XPath expressions? Are there other known issues that prevent this kind of logical comparison?
    TIA for your help.
    Rob

    Hey,
    In the source structure is the the string of the format 2001-01-01 ? Then probably you can use this deine a constant of type string and the value 2001-01-01.
    Then for the xpath expression
    /p1:BAPI_EQUI_GETDETAIL.Response/DATA_GENERAL_EXP[number(translate(READ_CRDAT, "-", ""))>=constant]
    or you can try this one for the existing condition.
    /p1:BAPI_EQUI_GETDETAIL.Response/DATA_GENERAL_EXP[number(translate(READ_CRDAT, "-", ""))>=2001-01-01]
    Give it a shot.
    Cheers
    <b>*RAJ*
    *REWARD POINTS IF FOUND USEFULL*</b>
    XPath in BPM switch
    Posted: Jul 18, 2007 4:54 AM 
    Hi,
    I'm trying to use a switch in an integration process that relies on XPath for the switching logic and I am having some difficulties getting it to work.
    I've tested the following and it is a valid XPath statement, but does not seem to work as I would expect in XI
    /p1:BAPI_EQUI_GETDETAIL.Response/DATA_GENERAL_EXP[number(translate(READ_CRDAT, "-", ""))>=20010101]

  • TS4268 When i go to settings and i go to facetime it says waiting for activaton but when i click on my apple id on top of it, it doesn't take me to go activate it, where exactly do i have to go do activation? do i have to see only hotmail? or somewhere?

    When i go to settings and i go to facetime it says waiting for activaton but when i click on my apple id on top of it, it doesn't take me to go activate it, where exactly do i have to go do activation? do i have to see only hotmail? or somewhere? i am on my iphone 4 6.1.3

    Hi debinarizona,
    I see the Handoff setting under "Settings > General > Handoff & Suggested Apps".
    Connect your iPhone, iPad, and iPod touch using Continuity
    Best Regards,
    Nubz

  • HT5858 I can't update apps on my iphone 5. theirs an old apple ID. That I don't have the pass word. I've created a new apple ID. but the old one keeps popping up. I have it on the Itunes on the phone but the old one keeps comming up and asking for a pass

    I can't update apps on my iphone 5. theirs an old apple ID. That I don't have the pass word. I've created a new apple ID. but the old one keeps popping up. I have it on the Itunes on the phone but the old one keeps comming up and asking for a pass word. 

    Apps are permanently tied to the Apple ID used to purchase them. You will have to delete the apps from the phone and re-purchase them using your Apple ID.

  • After upgrading to Yosemite (I don't have iPhoto anymore, only PHOTOS) my pictures will not import from my iPad or iPhone 5s or any picture from web, it shows "Database Error: failured to persist version"

    After upgrading to Yosemite (I don't have iPhoto anymore, only PHOTOS) my pictures will not import from my iPad or iPhone 5s or any picture from web, it shows "Database Error: failured to persist version".  Any help will be greatly appreciated.

    Sorry,
    Yes, the error message is exactly like that  ("Database error: failured to persist version")
    No photos will import at all.  I use USB to import from iPhone 5s or iPad 2. 
    About the difference?  iPhoto and Photos .  Are there two softwares?
    I also will like to merge and/or synchronize all my photos I had saved to iCloud backups, Macbook Pro,  iPhone 5s and iPad hard drives using iPhoto.  It's call iPhoto library.  At one point I turned off streaming. 
    Thanks again Larry HN.

  • Is there a way to have multiple pass codes on a singe iPad or iPhone?

    I would like to have multiple pass codes on my iPad2s. I need a separate pass code for the 'Reset" functions. I want to use one pass code for when the iPad is "booted' or woken up  then a different passcode for when the "Reset" funtions are accessed. Is there any way to do this? During my testing I have not seen away to have different pass codes for the different functions.
    i am using the iPhine configeraor but have not havd any luck setting up diferent pass ciodes when restrictions is runed on.
    What I would really like is to completely disbalte the "Reset" function from within iPhone onfigurator.
    Any advice would be appreciated.
    Thanks

    Sorry but no, that's not possible, at least not with the current version of iOS. You can have a different passcode for the screen lock and for the Restrictions, but that's all, and the Reset functions cannot be restricted.
    Regards.

  • My iPod 4th gen has been broken for at least 2 years, the screen is broken so it won't spence me touching it but it still turns on, I have heaps of photos and vidios I would like to look at but my laptop is inked it to broke, I also have a pass code on it

    My iPod 4th gen has been broken for at least 2 years, the screen is broken so it won't sense me touching it but it still turns on, I have heaps of photos and vidios I would like to look at but my laptop that it was synced to is broke, I also have a pass code on my ipod. Is there anything I can do!

    Photos
    - If they are in an iPod backup then restore another iPod, iPhne or iPad from that backup. See the restore topic of:
    iOS: How to back up
    - Maybe from the restored iPod via
    How to perform iPad recovery for photos, videos
    Wondershare Dr.Fone for iOS: iPhone Data Recovery - Wondershare Official     
    http://www.amacsoft.com/ipod-data-recovery.html
    iPod recovery software to restore lost music files      
    -iPod touch Deleted Photo Recovery Tips You Should Know
    To restore the iPod:
    Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
    iOS: Wrong passcode results in red disabled screen                         
    If recovery mode does not work try DFU mode.                        
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings        
    For how to restore:
    iTunes: Restoring iOS software
    You can also contact a Data Recovery Company

  • In the libary of iPhoto I do have double pictures only in the year 2006. Can someone please tell me how to remove the double pictures. I did rebuilt the libary but that solution did not help me any further.

    In the libary of iPhoto I do have double pictures only in the year 2006. Can someone please tell me how to remove the double pictures. I did rebuilt the libary but that solution did not help me any further.

    I think the warning is very clear.
    What warning? Where do you say that this plan you suggest will lose at least some, and possibly a whole lot of metadata, plus  the original files of edited photos. This is significant dataloss. And you should warn people that this is the case.
    While your metadata and originals may not be important to you, that is not necessarily the case for other users.
    Fourthly, and last, cleaning the iPhoto library should be done at least once per year
    This is nonsense. The iPhoto Library has no need of "cleaning" and certainly not in any way that trashes a whole lot of data.
    I'm very impressed that you assess the application based on the sound of the name. It's not a common way to review applications, but I'm sure it has some merit.
    FWIW it has been recommended on this - and other - sites for many years and has proven safe and effective.
    Regards
    TD

  • I have moved from the UK to the USA and have a new phone, I try to change my country location on the store and get an error message saying I have to cancel my itunes match and have a pass incomplete, any ideas?

    I have moved from the UK to the USA and have a new phone, I try to change my country location on the store and get an error message saying I have to cancel my itunes match and also that I have a pass incomplete, any ideas how to fix and change the store. It is becoming a problem with getting some USA aps and content
    Thank you
    Tom

    iTunes match is a subscription that you have in when you were still in the UK. According to the terms & conditions you'll need to wait for the susbcription to end before you can change your country to iTunes Store USA.

  • I have not bought only one program only

    I have not bought only one program only
    It SSH
    Gath message from you it was reported that I bought three programs and this is not true
    This is the body of the message
    Or maybe pressed Balkhtae
    Can canceling
    Greetings,
    Billed To:
    Tamer Salama
    EGY
    Order ID: MH*****MDD
    Receipt Date: 21/01/13
    Order Total: $21.97
    Billed To: Visa .... 0450
    Item
    Developer
    Type
    Unit Price
    SSH-Terminal, v3.2.2 (4+)
    Write a ReviewReport a Problem
    PRAKASH KATARIYA
    App
    $0.99
    Dont Touch This, v1.2 (4+)
    Write a ReviewReport a Problem
    Se Young Kim
    App
    $0.99
    iSniper 3D Arctic Warfare, 224K Credit Pack
    Report a Problem
    TRINITI INTERACTIVE LTD
    In App Purchase
    $19.99
    Order Total:
    $21.97
       Please retain for your records
    Please See Below For Terms And Conditions Pertaining To This Order.
    Apple Inc.
    You can find the iTunes Store Terms of Sale and Sales Policies by launching your iTunes application and clicking on Terms of Sale or Sales Policies
    Answers to frequently asked questions regarding the iTunes Store can be found at http://www.apple.com/uk/support/itunes/store/
    Server Admin Remote
    Harlekins
    Magic Lock Screen
    Panorama Concepts
    VNC Viewer
    RealVNC
    https://phobos.apple.com/WebObjects/MZFinance.woa/wa/accountSummary
    <Personal Information Edited By Host>

    Posting personal information ina  public forum is a very bad idea.
    We are all users like yourself, no one here can do anything about your account.
    If you have issues, report them to iTunes Customer Support... they are the only one's that can make changes to the account or reverse charges.

  • Please, I hd not paid my adobe plain, so, it´s canceled ... ok ... but just on few days I paid. My payments, today is OK, bur, all the time I opened my sotwares, I receive messages talking about I have, only, few days to use my softwares ... like "You hav

    Please, I hd not paid my adobe plain, so, it´s canceled ... ok ... but just on few days I paid. My payments, today is OK, bur, all the time I opened my sotwares, I receive messages talking about I have, only, few days to use my softwares ... like "You have 02 days to expire your Adobe CC" ... I try reload my computer  ... and many others ways to resolve this case, but I didn´t have successul ... Someone help me? Tks!

    You had purchased CC on 01/24/14 which was cancelled & then you again purchased CC 9/7/14, the error message that you are recieving is due to the cancellation as the server is trying to remind you, please log out & log back in of the CC desktop app to activate the new cc . The issue should be resolved.
    You have 20 GB of space allocated indicating you have active CC.
    Regards
    Rajshree

  • HT1386 After syncing with itunes(windows), messages for one of the contact(I have saved the contact name as 'Unknown') are lost. I can see only few messages which fits to the screen. I don't see option to load earlier messages.

    After syncing with itunes(windows), messages for one of the contact(I have saved the contact name as 'Unknown') are lost. I can see only few messages which fits to the screen. I don't see option to load earlier messages.
    Can anyone help.

    Can anyone help on this?

  • I have difficulty pasting text into the file name field(prefix only) while saving files.

    OS: WinXP sp3
    FF: 3.6.3
    I have difficulty pasting text into the file name field (prefix only) while saving files. example: File name is Pic123.jpg and I want to rename it ABC123.jpg and I have ABC loaded into the WinXPsp3 clipboard. When I highlight\right-click\delete "Pic" then attempt to paste the ABC, I get either no reaction, or upon multiple paste attempts, the ABC is appended to the end of the file, after the extension, as "Pic123.jpgABC". If I delete this unwanted suffix, or repeat the process several times, eventually I can delete the unwanted portion of the prefix and paste the desired text. Sometimes it works fine first try, but mostly it takes several tries. I'm using Firefox 3.6.3 but the problem existed in whatever previous version I had too. This issue only occurs when using the delete/paste; I can always manually change the name by typing. Thank you for your help.

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    A possible cause is that the server sends a wrong response header.
    The server may not comply to RFC 5987 and sends a wrong Content-Disposition:attachment; filename header.
    * https://developer.mozilla.org/en/Firefox_8_for_developers#Network

Maybe you are looking for

  • Can't make muse mobile fill phone side to side

    In translating my desktop site to mobile, I'm trying to make a long vertical series of linked pictures that serves as my menu. Instead of retaining the picture width in the layout, Muse, both in preview and online, sees the whole height of the page,

  • How to get the data type of a variable

    Hi I'm new to java and I'd like to put some variables with different data type into the HashMap. But when I'm going to get the value of the variable I want to know its data type (int,String,long,float etc.) before I do some processing. here's my samp

  • Sorting with Comparator, wrong order?

    Hello, i've a string array, and every string in this array in form of "Firstname [MiddleName] LastName". After i sort the array i get "List A" below, but i expect to get "List B". All "Alp"s must be together like dictionary order, isn't it? What caus

  • "Error Images" Collection question

    Hi all, I just noticed that this collection contains one of my images (DNG). However, I can't find a reason. File is not missing from hard drive, and it does not look corrupted or having missing metadata. Is there way to find why Lightroom placed a p

  • Unable to download my copy of PS CS6 from my account.

    Hi, I'm unable to download my copy of PS CS6 from my account.I keep getting the following "413  Header Length too Large". I had to uninstall as the app would not update. Now I can't download again. Really frustrating. What do I do?