Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Multiple records using switch in BPM

Hi,

Below is the input file i am having.

<?xml version="1.0" encoding="utf-8" ?>

-<ns2:MT_Receiver xmlns:ns2="File2RFC">

<Details>

<Availability>5000.000</Availability>

<Message />

</Details>

<Details>

<Availability>1000.000</Availability>

<Message />

</Details>

<Details>

<Availability>0</Availability>

<Message>Material Test not maintained in plant 1100</Message>

</Details>

</ns2:MT_Receiver>

I want to divide this input file into two parts based on one condition. If the Availability!=0, then it should display the available quantity. or else, it should get suppliers from the webservice.

For this reqiurement, i have used the switch case. but it is not working. It is considering only the last record, For eg, in this input file the last record is having Availabilty=0. So it should go to webservice and display the suppliers. But all the 3 records are going to the else branch and giving the supplier details.

Could you please tell how to resolve the issue.the Availability which is present should go to one branch and the remaining records should go to the else branch. Please help me in this regard.

Thanks in Advance

M.Leela Ratnam.

Edited by: leelaratnam morampudi on Oct 6, 2008 5:22 AM

Edited by: leelaratnam morampudi on Oct 6, 2008 5:22 AM

Edited by: leelaratnam morampudi on Oct 6, 2008 5:40 AM

Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question