cancel
Showing results for 
Search instead for 
Did you mean: 

Xpath Expression

Former Member
0 Kudos

Hi gurus,

I ned to make a condition in a receiver determination with the following logic:

If document creation date is 7days or more from current date then stop the message in PI (7.1).

Creation date is part of the message (oders05 IDoc).

Could anyone help me with an idea on how to implement this logic in an Xpath expression?

Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi,

Use enhanced receiver determination and write user defined function to fulfill your logic,i think it is not possible to write user defined function logic in receiver determination,you have to go for enhanced.

search in sdn for how to use enhanced receiver determination.

Regards,

Raj

Former Member
0 Kudos

Thanks Raj,

In a previous thread (see below) I was told to do this as a condition in the receiver determination, which I would very much prefer if possible.

Could somebody please help

"create a condition in receiver determination (that will check the date from message

and compare with today) and route to some dummy folder for old sales orders"

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi,

We can write/form different conditions in Receiver determination,but i doubt your logic is going to be bit complex,so it is not possible using standard receiver determination,if you go with enhanced there you can write receiver defined functions,so you can achieve your requirement easily.

Regards,

Raj

stefan_grube
Active Contributor
0 Kudos

> "create a condition in receiver determination (that will check the date from message

> and compare with today) and route to some dummy folder for old sales orders"

I doubt that XPATH is mighty enough to provide the required functions.

Have a look by yourself:

http://w3schools.com/xpath/xpath_functions.asp