cancel
Showing results for 
Search instead for 
Did you mean: 

Configuration - Condition Editor

Former Member
0 Kudos

HI,

im looking for a special condition but i cant find it.

I need the following condition.

1.

FIELDA like "45*" and

FIELDB is not existing (or maybe empty)

2.

FIELDA(IDoc Field) equal to FIELDB (in the same IDoc)

is there doku about the expression editor ? The normal xi doku about this step is small and not efficient.

Thank You,

Gordon

Message was edited by:

Gordon Breuer

Accepted Solutions (0)

Answers (2)

Answers (2)

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

CHeck these blogs and see if they help,

/people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination

/people/shabarish.vijayakumar/blog/2005/08/03/xpath-to-show-the-path-multiple-receivers

Regards

Bhavesh

Former Member
0 Kudos

HI,

1. thank you for the blog but i cant find a function or something else to ask "not existing" ?

ideas ?

2. this one is not working. ideas ?

(/MBGMCR01/IDOC/E1BP2017_GM_HEAD_01[substring(BILL_OF_LADING,0,4) = "0591"] EX )

Former Member
0 Kudos

Hi,

Can you give the complete XPATH expression?

From Shabz blog: /people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination

<i>Note : It is not possible to have any operator like 'and', 'or' etc outside the brackets [ ].</i>

Regards,

Jai Shankar

Former Member
0 Kudos

that was my complete expression right ?

(/MBGMCR01/IDOC/E1BP2017_GM_HEAD_01[substring(BILL_OF_LADING,0,4) = "0591"] EX )

the other one should be like:

BILL_OF_LADING is not existing !

stefan_grube
Active Contributor
0 Kudos

Try:


...[substring(...,1,4) = "..."]

...[count(...) = 0]

see details here:

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

Stefan

Message was edited by:

Stefan Grube

Former Member
0 Kudos

Hi ,

You can achieve condition 1 using Contains Pattern..

http://help.sap.com/saphelp_nw04/helpdata/en/67/49767669963545a071a190b77a9a23/content.htm

Sekhar