cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple Input String List Processing

Former Member
0 Kudos

I am receiving 2 String Lists (comma delimited) from a custom BAPI. Below are String List examples:

TagNames (String List 1)

Tag1

Tag2

Tag3

TagValues (String List 2)

1

0

1

I need to somehow bring these lists together so I can iterate through the associated lists and write the tag values using a Tag Query.

I understand how to utilize the Tag Query. However, I cannot find a way to bring the lists together in an indexed fashion.

Any help or advice would be greatly appreciated.

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

jamie_cawley
Advisor
Advisor
0 Kudos

Assign each list into a string list to xml parser action. Repeat on the tag names list and use the currentItem to create an xpath statement to get the values.

Jamie

Former Member
0 Kudos

Now that I have that figured out I am finding that the performance isn't very good when repeating through the tag names and tag values while writing one tag at a time.

Using the Tag Query to write as many tags at one time as possible using the TagName and TagValue parameters improves the performance quite a bit (no surprise).

Now my challenge is how to get the values from the two taglists into the TagName and TagValue tag query parameters.

Any ideas?

agentry_src
Active Contributor
0 Kudos

Why not do the merge in the custom BAPI?

Regards,

Mike

Former Member
0 Kudos

Thanks for your help. This was the obvious answer that I was trying to avoid but I couldn't find another way to solve the issue.

Answers (0)