SWITCH step in BPM

Hi,
I am designing one BPM.
In my incoming payload there is one field,on the basis of this field I have to decide receiver in runtime.
Please guide me to disgn this BPM.
I have put switch step ,but I am getting error in BPM.
Waiting for reply.

Hi,
Check this links
/people/daniel.graversen/blog/2006/09/07/using-a-bpm-to-collect-messages-for-a-set-interval-of-time
This is really a good document about BPM
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c071d7bb-0601-0010-d6b8-f4e4dc7f1e20
Thanks,
Prakash

Similar Messages

  • Problem with Switch Step in BPM

    Hi,
    I am using Switch Step in BPM, to check a condition. I created following condition (App_Resp./p1:App_Resp_MT/Response = true). The mentioned is correct and it should succeed but it is failing. Its going thru OTHERWISE branch. Can anybody help me to solve this out?
    Thanks,
    Yaseen.

    HI,
    I checked in the workflow the xml file generated contains value 'true'.
    Its not multiline and looks xpath reflects for the changes made.
    I think it may be problem that needs to deploy any OSS notes.
    Please throw some idea.
    Thanks,
    Yaseen.

  • Prblem with Switch step in BPM

    Hi all,
    I have a problem with a switch step in my BPM. The condition on my BPM is that I have an xpath and that should have a particular constant value. If true, then proceed or else passs through the otherwise branch. The success branch has a transformation and a send step. The otherwise has a control step with an Alert category defined.
    So the BPM is like
    Receive message --> Switch (XPath condition a particular node must have a value not equal to zero.) --> if tru then transformation and send step otherwise control step.
    This all works fine as expected when I pass in the correct message format. The problem is, if I send in a message of a completely different structure, it is still going through the otherwise step of the switch case and not erroring out. The BPM is not erroring out no matter what message I pass in.
    Ideally I am expecting it to error out and send an alert message according to the category.
    could somebody please help me on this?
    Thanks
    Karthik

    Thanks for your reply. I already did go through that thread. The switch case works fine for correct conditions and wrong conditions. The problem is, there is no error being generated when the input message is not in a recognizable structure. Switch goes on to otherwise path is I just pass in some random file.
    My question is, why dint the BPM error out when the XPath itself failed..meaning the structure itself is wrong?
    Please reply.
    Thanks
    Karthik

  • 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

  • Switch Step in BPM. Pls advice

    Hi All,
    I want to give condition that if in a field (test) value
    is 000 or field (test) is empty it should go to branch1
    How will I do this
    For case 000 I can select my test field as left operand
    and select value 000 as integer as right operand.
    Now I want to have OR condition for empty also
    How to do it
    Regard

    Hi,
    As suggested
    (SWITCH_RES./p1:MT_SWITCH_RES/Response u2260 000) OR (SWITCH_RES./p1:MT_SWITCH_RES/Response = )
    Now when I am not sending any value in field Response
    it is going to different condition.
    Is ot not ok?
    Regard

  • 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

  • Switch Step Problem

    I have a Switch Step that receives a message base on a Message Type without Namespace, despite evaluation path is good and the Switch Step recieves a correct message the Step is not working, the xPath for evaluation does not include Namespace, Is the Namespace necesary in order to use a Switch Step?

    Hi Rubens,
    <i>>> Is the Namespace necesary in order to use a Switch Step?</i>
    Yes it is!Look at this..
    Prblem with Switch step in BPM
    Hope this solves ur issue!
    cheers
    Prashanth
    P.S Please mark helpful answers

  • 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

  • Switching Step based on Send Step Acknowledgement in BPM

    Hello Everyone,
    We have an inteface scenario to read a file, send the message to an R/3 system, check the return code and generate an email if the acknowledgement is not OK.  NT file -> SAP XI -(asyn ABAP proxy)-> R/3.
    We want to use the standard inbound interface provided by SAP which is an asynchronous proxy interface. We implemented a BPM with a send step and application acknowledgement. Now based on the application acknowledgement we want to send an email to a support group. Is there a way we can check the acknowledgement status and implement a switch step?
    Sathi.

    Hi Naveen,
    Thanks for your response.
    OK I will try transport acknowledgement. I find these acknowledgements are not available in a container. So how can I implement a switch to perform 2 different processing paths based on success/failure status of the acknowledgement.

  • Controlling a send step in BPM

    Hi I have a BPM like in which the last step will be
    block starts( (syn)RFC -> container->) block ends ->transformation-> send and i need to send the message in the last send step..based upon on field in the RFC response, i used a switch step after the block and in the branch i hav transform and step and in the branch otherwise i have the control step, but it seems ,it is not checking the condition, it alwys goes to the send step.
    and i am not able to see the switch step in the graphical work flow..any ideas?
    thanks

    Some basic checks that need to be done on the BPM:
    1) return code should be 0 in SXI_CACHE
    2) In SXI_CACHE there is an option to see the XML of your BPM.....this indicates what all steps are present in the BPM.....open this XML and check if each and every step is mentioned there.
    3) Check if there is any errored instance of the BPM in tcode SWWL...if yes then delete this instance
    4) I hope that your condition in Switch block is defined properly.
    5) Delete all the objects from ID (related to this interface)....then reimport the BPM from IR and again create the objects....last option
    Regards,
    Abhishek.

  • 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

  • BPM status is "IN Process" even after all the steps in BPM are completed

    Hi All,
    we have designed a BPM for collection of messages and have a transform step .
    In some cases all the steps in BPM get completed but the status of BPM is still in" In Process"  and in SWWL transaction the status is "Started".
    Even though the status is started we are able to get the desired output.
    Ideally after the steps in BPM get completed the status should be "Completed".
    please suggest why we are  getting this status and how can this be resolved.
    Thanks and Regards,
    Rajesh

    hi ,
    I am using a fork and loop with a condition to end this loop.the condition gets satsfied.
    The messages are coming out of the loop and fork but even then the status is in "InProcess"
    thanks,
    Rajesh

  • How to add a Wait Step in BPM for the synchronous send step

    Hi,
    we have a scenario where in one of the step in BPM is a synchronous step which sends data to ECC system and gets the Respose .
    The Requirement is that we need to add a wait for the Synchronous step in BPM as the data sent to RFC(ECC) need to get comitted before sendng the response which requires some wait time.
    Currently we are getting the Response to PI from ECC where it was reported as the response is not correct.
    Is this possible to add wait

    > Is this possible to add wait
    No, this does not make any sense.
    The BPM waits for the response anyway.
    You could change the scenario to an asynchonous pair of messages.
    But in my opinion the error is inside the ECC, because the response from ECC is not correct.

  • Expression must return the interface type in Transformation Step in BPM

    hi,
    We are getting below while activating the IP,
    Expression must return the interface type SI_Send_AA
    Expression must return the interface type SI_Get_AA
    No semantic errors found
    We have a Transformation Step in BPM,
    In OM, Source is SI_Send_AA and Target is SI_Get_AA
    Also Container variable points to  the same Abstract SI's.
    Few Thread's for Same are error are:
    Error in  BPM
    expression must return the interface type
    Transformation step in ccBPM scenario
    Error while compiling Business Process
    Even after checking these i am getting this Exception.
    Please Help!
    Thanks,
    Mayank

    Also Container variable points to the same Abstract SI's
    Are you sure that you are using Abstract Message Interfaces only and that these are referring to relevant container variables.
    Normally it happens that there is some mis-match between the message types/ interfaces that we use in the mapping and that we use in the BPM.
    If still not solved, then delete the Transformation step --> save --> activate......then again Edit the BPM to include the Transformation Step.
    Regards,
    Abhishek.

Maybe you are looking for

  • Aging reports for SD

    I need to create an aging report on No. of Incomplete Sales orders: The report output should have 2 columns. Column-1                            Column - 2 Aging                                No. of Incomplete orders Upto 1 days 2-5 days 6-10 days 1

  • Oracle 11g table compression feature

    Is anybody using Oracle 11g's compression feature in production? I read a whitepaper on this and also read some forums/threads on this topic and so far I haven't read anything negative yet, that doesn't meant that there isn't anything that could have

  • Problem when creating list box in table control

    Hi every body ,                   I am placing a list box in table control ,  the list box is coming perfectly but when I am scrolling  or pressing enter the data in that field is clearing.    if I remove the list box , and i enter the data directly

  • TOC blank in RH8

    I am using RH8.0.2.208. I think I've seen this issue reported before, but since the search function on this forum is currently unavailable, I can't find it. I renamed my TOC in the Project Manager.  When I open it in RH, it is blank.  When I open the

  • Java instalation

    i have installed java according to the instructions given to me in my linux os . but when i compile i get bash: javac: command not found. i have installed in /usr/java/j2sdk1.4.2_06. i have compiled the program in /usr/java folder. how do i solve it