cancel
Showing results for 
Search instead for 
Did you mean: 

User Defined Search for repeating segments

former_member185846
Active Participant
0 Kudos

Dear Experts,

I need to search say based on the IDoc field E1EDK14 - Qualf, which can occur multiple times in an IDoc. Is it possible to define such user defined search patterns? If so, please let me know how to specify the XPATH for the same.

Thanks in advance.

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member185846
Active Participant
0 Kudos

Thanks for the replies. But, E1EDK14 - QUALF is not an attribute, its an element. And my question was about the way to search line items as they may be repeating and may or may not occur multiple times. Hence, we will not be able to specify the exact index. Any idea?

Former Member
0 Kudos

Hi Joe,

Just wanted to check if you were able to resolve/find a solution. I'm in the same boat, implemented the search criteria but in the payload the segment repeats multiple times and system is not extracting the data/

Thanks,

BG.

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

Here is a link for the w3 specification for xpath

http://www.w3schools.com/xpath/xpath_syntax.asp

I think it should be /E1EDK14//@Qualf

Hope this helps,

Mark

nageshwar_reddy
Contributor
0 Kudos

I believe XPath allows you to find all occurrences of an element. Try //Qualf or (//@Qualf for an attribute) elements. This should give you all the Qualf elements or attributes. Although, i have not tried this, according to SAP documentation, this should work.

Former Member
0 Kudos

Hi.

If you want to extract specific value in multiple items . You need to add the index.

E.g

/RecordSet/Root/Child[index]/Element

Regards

Lucho.