cancel
Showing results for 
Search instead for 
Did you mean: 

ccBPM integration process Condition Editor XPATH question

steve_coombes
Participant
0 Kudos

Hello,

I am splitting a message in a BPM, and calling a BAPI for 'n' messages. I would like to use the response in a switch element to determine that path the process follows.

I am having trouble using XPATH in the Condition Editor and would appreciate some advice.

If I use the following expression in an XPATH editor I get a result :

count(/rfc:BAPI_ACC_DOCUMENT_CHECK.Response/RETURN/item[TYPE!="S"])

In the integration process I have a container variable called 'CheckResponse' that corresponds to 'rfc:BAPI_ACC_DOCUMENT_CHECK.Response', so I am using :

count(CheckResponse/RETURN/item[TYPE!="S"])

The count keyword is coloured red, so I assume that is not supported.

When I tried

(CheckResponse/RETURN/item[TYPE!="S"]) EX

the EX keyword is red.

I would like to know if any items do not have a type of 'S' (Success), so that I can route the process accordingly.

Kind regards

Steve

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Steve,

Please check this link:

http://help.sap.com/saphelp_nw04/helpdata/en/ab/13bf7191e73a4fb3560e767a2525fd/content.htm

You need to enter XPATH in expression editor and select EX in condition editor.

Regards,

Beena

steve_coombes
Participant
0 Kudos

Hello Beena

Many thanks for your reply.

I think that link is used for conditions in Integration Builder. I'm trying to create a condition in an integration process in Enterprise Services Builder and I don't think they work in quite the same way.

I should have also mentioned that I'm using PI 7.1.

Kind regards

Steve

Former Member
steve_coombes
Participant
0 Kudos

Hello Beena

Thanks again. That is just what I was looking for.

It all makes sense now, and I've finally got it working.

Kind regards

Steve

Answers (0)