SAP Certified Associate – SAP Integration Suite — Question 43
You want to dispatch messages only when a child element “Product” exists.
Which condition do you set?
Answer options
- A. /ProductSet/count(Product)=0
- B. /ProductSet/count(Product)<0
- C. /ProductSet/count(Product)>0
- D. /ProductSet/counter(Product)>0
Correct answer: C
Explanation
The correct answer is C because it checks if the count of 'Product' elements is greater than zero, ensuring that messages are dispatched only when at least one 'Product' exists. Option A is incorrect as it checks for zero products, while option B is invalid because counts cannot be negative. Option D uses 'counter' instead of 'count', which is not the correct function for this context.