cancel
Showing results for 
Search instead for 
Did you mean: 

Error using filter function mapping

jorgehuedo
Explorer
0 Kudos

Hi,

I'm trying to user the function filter but it's not working as I expected.

I have a list of elements with the next structure:

ITEMS

           ERROR_CODE

           DESCRIPTION

And I have to filter the elements that has error code 000.

So I'm trying to perform a mapping using the filter function in the next way:

filter(ITEMS,"ERROR_CODE=000")

But it's always returning an empty list.

Any ideas??


Thanks.

Jorge

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

First you have to write the complete path not just "ITEMS" and second it should be a list(unbounded).

thanks

Manish

Answers (3)

Answers (3)

former_member191643
Active Contributor
0 Kudos

Hi Jorge,

It is always  advisable to use either an EJB method or a custom function in your BPM itself for such requirements so that it can be used somewhere else in the BPM process too.

jorgehuedo
Explorer
0 Kudos

Thanks guys,

there were a little bit more complex logic for this filter so at the end I used an ejb to filter it.

Best regards.

Jorge

Former Member
0 Kudos

This example in SAP help document should help you.