cancel
Showing results for 
Search instead for 
Did you mean: 

Dummy symbol in condition editor

laurent_touillaud
Contributor
0 Kudos

Hello all,

Does anybody know if it is possible to use the dummy symbol "*" in the condition editor. (interface determination)

My requirement is to test the incoming file name and check if it contains certain string.

Ex : ( if filename = MM_IN_004_01_ECG_''001''.txt OR filename = MM_IN_004_01_ECG_''002''.txt )

Or is there some other way to do it...

Thanks for you replies.

Best regards,

Laurent.

Accepted Solutions (1)

Accepted Solutions (1)

former_member200962
Active Contributor
0 Kudos

This can be achieved using the Contains Pattern option in any Condition Editor....it is represented by CP.

Good information is available on it in help.

Update:

Check this WIKI: http://wiki.sdn.sap.com/wiki/display/XI/XpathConditioninReceiverDetermination

Regards,

Abhishek.

Edited by: abhishek salvi on Oct 8, 2009 12:49 PM

laurent_touillaud
Contributor
0 Kudos

Thanks for your answers,

Abhishek I will try your solution because i can get the filename in the condition editor.

It's not in the "XPATH" but in the "Context Object".

I will get back to you as soon as i have tested.

Laurent

former_member200962
Active Contributor
0 Kudos
It's not in the "XPATH" but in the "Context Object".

The CP option is available for both XPATH and Context Object......actually is is just the matter of selecting the right Middle Operand and making a correct entry in Right Operand.....Left Operand's type does not affect it

I will get back to you as soon as i have tested

yes please update the forum with your findings....

Regards,

Abhishek.

laurent_touillaud
Contributor
0 Kudos

Back again,

It works! Thanks Abishek for your answer and to all the people who answered.

Best regads,

Answers (3)

Answers (3)

Shabarish_Nair
Active Contributor
0 Kudos

the concept is to use xpath functions in your condition

please have a look through this - /people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination

Former Member
0 Kudos

HI,

Will the payload of your data will contain the filename for doing so in interface determination ?

if i understand you correctly you want to check the filename for first few characters(pattern) then use ? instead of *

Rajesh

former_member187339
Active Contributor
0 Kudos

Hi,

You can use * in condition editor but the problem is you can not get the file name in the Xpath expression editor.

Regards

Suraj

Edited by: S.R.Suraj on Oct 8, 2009 3:18 AM