BMP: Condition Editor for SWITCH Step

Hi
Can anyone tell me how I stipulate the following conditions for a switch step in BPM:
>, <, <=, >=
The only options that seem to be available are:
=, !=, Existence check and contains a particular string pattern...which is very limiting?
Surely SAP has given the options for the greater than, less than etc oprands....hopefully i simply missing a service pack or something like that.
Cheers
Yackeen

Hi
One way could be to use XPATH expressions & XPATH functions in your condition editor. Chk whether an element has a value greater than or less than some value in the XPATH expression itself.
The result of this check now can be compared to a true or false(that is your rt hand operand). My 2 cents.
-Saravana

Similar Messages

  • Receiver determination wildcard in condition editor

    Hi experts,
    I have a question regarding the condition editor for receiver determinations on PI 7.1. I have an xpath expression on the left side and I need to have a condition on the right side that includes a certain pattern.
    One example:
    p1:myDocument/element = 1A2B*
    There I would want to read the xml element "element" and redirect to a certain communcation component if the value of 'element' starts with 1A2B.. regardless if its 1A2B3 or 1A2BC and so on.
    Is that possible? I tried like in the example to use * as a wildcard, but that didn't work.
    Any help would be appreciated.

    It should not be = operator ....it should be Contains Pattern Operator
    Refer: http://help.sap.com/saphelp_nwpi71/helpdata/EN/67/49767669963545a071a190b77a9a23/content.htm
    Regards,
    Abhishek.

  • CcBPM Loop Condition Editor

    Hi
    I am trying to control the number of iterations of a Loop witihn a ccBPM Integration Process.
    I have a Container name: index type: xsd:integer , which is initialised to 0 before the loop is entered.
    I also have Container name: InterfaceCount which is an Abstract Interface containing the total number of iterations required.
    In the Condition Editor for the Loop, if I put    index!=InterfaceCount  
    ... it complains that types xi:operation and xsd:integer cannot be compared.
    Would someone be able to tell me the correct way of doing this please?
    Thanks in advance.

    Hi.  Thanks for the reply.
    What I need to do is compare index to a value passed in on a field on a message.
    Maybe I need to define another integer container, and then use a  'container operation' to extract the interface field to this new integer container, before entering the loop.  Then I can compare  my 'index' integer with the new one to control the loop?

  • IDoc Message Structure Missing from Condition Editor - SWCV Dependency

    Hi All,
    I have an issue whereby I am missing the Message Structure in the Condition Editor Dialog while doing Receiver determination. I have seen others posts with the issue but none of the solutions seem to apply to me. My config:
    I have a SWCV called MY_SAP_BASIS, which is defined in the SLD with SAP BASIS as prereq. I import this SWCV into IR and build some objects. I wish to use an IDoc, so I import it into SAP BASIS, and it appears under my SWCV (MY_SAP_BASIS) in the "Basis Objects" section, but not directly under "Imported Objects" - as I would expect because of the relationship created in the SLD.
    My issue comes when I try to create a Rec. Determination. I want to use the condition editor, for multiple receivers, but when I click on the button to bring that up, first I get the error "Message interface does not exist in any software components installed on this business system", then when I try to use the Structure of the IDoc for an XPath, the structure browser is empty.
    I can't see why this would be. If I look in the SLD, and look at the Business System in question, it lists MY_SAP_BASIS and SAP BASIS as being installed.
    Also, when I do a "Where used" in IR on that IDoc, using my own SWCV and SAP BASIS, I get the same list. I have also checked the GUID's between the SLD and IR, and they are identical (except fpr hyphens in the display, which I am assuming don't matter).
    Anyone have any ideas? I assume that if I import the IDocs directly in MY_SAP_ERP, I will be able to solve this. But I would rather the Software Dependency worked!
    Many thanks.

    Jai/Michal,
    Many thanks for your replies. But unfortunately I had already checked this and I don't think it is the issue. My first message probably wan't as clear as it should have been: I have a Product "MY_SAP_BASIS" - this has one SWCV under it, also called "MY_SAP_BASIS". This SWCV has a dependency on "SAP BASIS 4.6c". Now, on the Technical and Business systems involved, the Product "MY_SAP_BASIS" is installed. This, as you would expect from the dependency, brings across the "MY_SAP_BASIS" SWCV and the "SAP BASIS 4.6c" SWCV, so they are both installed on the technical system . So I don't know what else I should be adding? Unless my understanding of Software dependencies is incorrect, I think my config looks right in the SLD. The SWCV under which the IDoc imports are done is "SAP BASIS 4.6c", and this is installed on both the technical and business system. The only difference is that it gets there through a software dependency, and is not added "directly". In IR I can see the imported objects under the "MY_SAP_BASIS" SWCV - in the "Basis Objects" section.
    Is there anything else anyone can suggest?

  • Receiver Determination - condition editor

    Hi,
    I have a receiver determination which receives files and the filename determines where the file is sent/routed. I am using the condition editor for this functionality and need some help. The filename contains the following format 'xxxxxx010xxx20070101.out' where xxx represents different codes depending on the extraction. I used the following in the condition editor:
    ++++++010* I understood each + to represent a character. This is not working, any ideas?
    Thanks,
    Leanne

    you can utilize XPATH functions in your conditions to acheive the same.
    Try to take the help of the following weblog and maybe the string functions of xpath to achieve your results.
    ref:
    /people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination
    http://www.w3schools.com/xpath/xpath_functions.asp#string

  • Checking condition in switch step of BPM

    hi all,
    i am doing an 1to1 transformation where: i am converting my source into a target. the target has
    header 1
    lineitem 1..unbouneded.
    lets say there are three line items:
    header1
    lineitem
    lineitem
    lineitem
    i am using a send step where i am sending this target msg to a switch step. in the switch step i am checking for a condition.i am checking for the occurence of a field in the line item. but when specifying in the condition editor, it allows only to choose from the root of the structure. how can i check the ocuurence of a particuler field for the lineitem alone??
    is there a way to to do it??
    Any help will be greatly appreciated.
    Thanks

    Hello,
    This is the condition i have currently given: but if i have 2 or more lineitems in the incoming msg does this condition also check for :
    MI_DOC./p1:SRC_ROOT.lineitem/itemfield2 EX
    MI_DOC./p1:SRC_ROOT.lineitem/itemfield3 EX
    etc...
    and in one of the line item the field may EX and some it does`nt. when it doesn`t i am cancelling the process, if the field EX then it is sent to further processing.so if i have 3 lineitems in which two of the line items the field EX and in the other one the field does the EX, are the msgs split accordingly??
    Message was edited by: Aarthi R

  • How to check condtions for multilines in switch step in bpm?

    Hello,
    I am implementing a scenario that send PO create Idoc(orders.orders05) to bpm and bpm receives an OrderResponse from File adapter, I have a switch to check the condition if the Qunatity for each line items from the OrderResponse xml matche with the quantity for each line ltems in OrderCreate, but I don't know how to specify mulitline containers in conditon editor, currently the system only takes the quantity from the first line item.  Any suggestions or other recommendations?  BTW, here is the blog talks about modeling multi rows for incoming message, didn't totally get it...
    Using BPM (Blocks) when Incoming message has multilple rows
    Thanks,
    Hy

    Hi,
    go to Condition Editor-->After selecting your message in the LeftOperand -->then it will lead into Expression Editor there you can see a check box stating "Multiline".
    This will be enabled , if you choose option of XPATH in this Expression Editor.
    Hope this helps,
    Regards,
    Moorthy

  • BPM: XPath-Condition in Switch Step

    Hello,
    I have the following requirement in BPM.
    There is a switch step with five branches, and I have the following document structure:
    <Root>
    <Segment>
       <Docnum> 12345 </Docnum>
    </Segment>
    <Segment>
       <Docnum> 12346 </Docnum>
    </Segment>
    </Root>
    The switch condition is done based on the last digit of the first Docnum element. So in this case the value would be 5.
    I tried to work with a substring as the total number of digits of docnum is always 5.
    How would an XPath expression look like to retrieve the substring from the first <Segment> element? I tried different combinations but none of them really worked.
    Example what I tried: p1:/root/Segment[1]/substring(docnum, 4,1)
    Any advise on this?
    Thank you very much

    Try this...
    substring(/p1:/root/Segment[1]/docnum,4,1)
    for more info see
    http://www.w3.org/TR/xpath
    Message was edited by:
            Alex

  • Condition in switch step is not getting checked

    Hi Friends,
    My requirement is to send the input msg to two receivers based on a condition and get the response. If the condition is true it will either goto both or anyone of the receiver.
    I defined two branches in a switch step. In each branch i defined condition using XPath. Under that branchs i defined the sync send step to send the msg to receiver and get response.
    If i give input that is true for any one of the receiver, it executs successfully. But if my input satisfies the condition of both branchs, instead of sending the message to two receivers it is sending the msg to only receiver.
    Pls help me in resolving this issue.
    Thanks & Regards,
    Senthil.

    Senthil,
    Please confirm your process looks like this:
        /-- item name CE 'X' -- [send] --\    /-- item name CE 'Y' -- [send] --\
    Or, if you follow patrick's suggestion
         /-- item name CE 'X' AND item name CE 'Y' -- [send] -- [send] --\
    ---   -- item name CE 'X' -- [send] ---------------------------------   ---
    Kind regards,
    Koen

  • Condition in switch step

    Hi:
    Somebody help me with some information about how to Configurate the switch step (Condition, left operand) in BPM

    Even though this forum says BPM and WF, but for your question XI forum will be right place.
    Regards, IA

  • XPath for root node in condition editor

    Hi,
    I have a HTTP to IDOC scenario. I have to accept any incoming document,(i will know only at runtime whether it is ORDERS or INVOICE or ASN etc) and post it to the respective receiver based on what is the name of the root node. But how do i specify this in the condition editor? if i give /* or name(/*) it does not work.Can anyone suggest a solution for this?
    Thanks
    Shakthi

    Well I have one solution but don't konw if it is worth for you.
    First create one mapping called pre_mapping in this mapping map all fields and the root node value to the target structure correspondingly . Now use BPM with simple receive & send steps. BPM should send the message back to XI.
    Use the final mapping with this messge retuned from BPM.
    Now use the x-path and select the field from source structre (which BPM has sent back to XI) which contains IDOC type. So in this case your sender system will be BPM.

  • Testing switch step conditions

    Hi
    Is there a way to test conditions in switch step?
    With real data when the process is executed... it seems that the condition does not work... but I can not see more details to investigate what is wrong.
    Has anybody ideas how to test switch conditions?
    Thanks for any input,
    Heiko

    Ok sorry, I thought you were maintaining a Business Workflow, not an XI process..
    I haven't worked with ccBPM or the integration/workflow builder myself, but could you go to the graphical builder, drill down to the switch step and see what's available there? In the business workflow builder you can see a small simulation button in the bottom together with create test data button.
    -Mikko

  • Predicates for XPath in Condition Editor of NWDS for PI AEX 7.4 (SP 7)

    Dear all,
    we are in the middle of migrating from our old Dual Stack PI 7.0 to our new PI 7.4 AEX.
    We have a fairly largen receiver determination on the old system that makes heavy use of predictes. One expression for example looks like this
    (SHPMNT05/IDOC/E1EDT20/E1EDL20/E1EDL37/E1EDL49/E1EDL50[XSIQUALF='EEIVERF']/VLABDATA = 01)
    However, when I'm trying to insert this in NWDS' condition editor there's an error stating "Predicates are only allowed with EXISTS operator"
    1. Is this a limitation of the condition editor in NWDS?
    2. Is there a way to configure the above XPath so it is working in NWDS?
    3. Would it be safe / wise to configure the mappig in ICO in Swing Tool or would this be overwritten by NWDS configuraiton?
    Many thanks
    Jens

    Hi Jens
    From SAP library, the example shows that the usage of predicate is with the EX operator, so maybe it is a limitation.
    Integration Directory - SAP Library
    Maybe you can try to combine your two conditions in the predicate and use it with the EX operator
    (SHPMNT05/IDOC/E1EDT20/E1EDL20/E1EDL37/E1EDL49/E1EDL50[XSIQUALF='EEIVERF' and VLABDATA = '01'] EX)
    Rgds
    Eng Swee

  • Steps to maintain condition records for MB1B

    Hi all,
    i need complete steps to maintain condition records for
    T Code MB1B for stock transfer between storage locations for same plant with movement type 311
    Your help will be appreciated
    Siddharth

    Hi Siddharth,
    TP b/w st.locs of same plant there wont be any accounting documents generated..so ..no condition records required.....as such,,material will be in plant only...means same valuation area..
    Check the basic rules.....
    BR,
    Krishna

  • Problem with switch step

    Hi,
    I want to proof in a switch step, if the message part 'price' is lower than the 'price'-part of an other message. Dependent from the expression, the corresponding fork is triggered in my BPEL process.
    I know there is an expression editor, but I can't find a lower than and greater than symbol, respectively.
    Are these operands not supported or am I blind
    Best regards
    Sascha

    I donot think you are blind..:)Switch step doesnot provide that....Instead check the condition in the message mapping and add a field in the target message which will contain the result.You can use that check for you to switch...Iam not sure wether am right but this is option I could think..:)

Maybe you are looking for

  • Can I have 2 iPhones with different Apple IDs link to the same Photo Stream?

    My husband and I use the same computer and Aperture program.  I set my iPhone up with the Photo Stream from Aperture with no problem but when he set his up, it didn't get the feed of pictures.  We have different apple ID's on our phones?  Can this be

  • Add child to root (PL/SQL PARSER) Oracle 8.1.7

    Hi all, i have two dom documents, i need to add to the root of the first one a subtree of the second one. Could someone give me an example of how to do that ? Thanks.

  • How to clear WinJS listview

    I am new to WinJS, and want to clear a list view. I am having trouble even selecting the list view. When attaching events I selected list view like var listView = document.getElementById("listView"); listView.addEventListener("iteminvoked", goToJob);

  • RAC node reboots from time to time

    Hi %, we have a problem with our rac: it's a three node rac on sles9, 64 bit. one node reboots from time to time. We found nothing in any log file. (only in /var/log/messages of node 1: "Feb 21 14:58:02 pmg-db1 kernel: o2net: connection to node pmg-d

  • How to bring in .nsf file into KM?

    Hi all,        I have a .nsf file from Lotus Notes. Can someone tell me the procedure to extract the file and bring the documents into KM repository? Any help will be rewarded accordingly. Thanks & regards, M.Subathra