cancel
Showing results for 
Search instead for 
Did you mean: 

XML condition expression in looping process call in Sap CPI

vineetha12
Participant
0 Kudos
2,305

Hi,

I have Looping Process Call in Iflow, which needs to make multiple calls to the local integration process until the XML data is empty.

The XML data contains multiple 'Achievement' nodes as shown below.

The looping process call should iterate until the Achievement node is empty(i,e XML data is empty).

I tried using the below XML condition-"/Achievements/Achievement", but I am getting an error.

Error message:

Anyone, please help me with what should be the condition in the looping process call?

Below I attached the XML data.achievmentsrequiredformat.txt

Thanks,

Vineetha

Accepted Solutions (0)

Answers (1)

Answers (1)

VijayKonam
Active Contributor
0 Kudos

There is no condition in the expression. You might want to use "count" and then < 500 or something. However, this would be inefficient. You could simply initialise a parameter with count and then use a counter inside your flow to increment it in every loop and the condition could then be counter<= countOfAchievements.

Thanks,

vineetha12
Participant
0 Kudos

Hi Vijay,

I have used this condition '/Achievements/Achievement' as shown in the first pic, but it is throwing an error.

I want an XML condition that says the XML data is empty. Could you please help?