cancel
Showing results for 
Search instead for 
Did you mean: 

Xpath expression for idoc fields

Former Member
0 Kudos

Hi,

I have a scenario to invoke 2 different operation maps based on a date condition in the incoming idoc. I have tried setting up an XPATH condition in the interface determination similar to INVOIC02/IDOC/E1EDK03/[IDDAT = 13 and DATUM > 2013-05-01] to pick OP map A and another condition INVOIC02/IDOC/E1EDK03/[IDDAT = 13 and DATUM < 2013-05-01] to pick OP MAP B.

But during runtime, I am able to get only OP Map A picked even if the DATUM in the Idoc is less than 2013-05-01. Am I missing something ?? I even tried using paranthesis like INVOIC02/IDOC/E1EDK03/[(IDDAT = 13) and (DATUM > 2013-05-01)] but that doesnt seem to help.

Any help is appreciated.

Teresa

Accepted Solutions (0)

Answers (4)

Answers (4)

rajasekhar_reddy14
Active Contributor
0 Kudos

I think greater than /less than will not work for YYYY-MM-DD format, try to change date format to numeric format and try.

allamudi_loordh
Active Participant
0 Kudos
baskar_gopalakrishnan2
Active Contributor
0 Kudos

INVOIC02/IDOC/E1EDK03/[(IDDAT = 13) AND (DATUM > 2013-05-01)]

You need to use AND keyword.  Please see below for how to do usage for doing AND operation

http://help.sap.com/saphelp_nw73ehp1/helpdata/en/ca/fc6e91d1a945cf9c9b462b69bf15e9/content.htm

ambrish_mishra
Active Contributor
0 Kudos

Hi Teresa,

Date format in the IDoc should be YYYYMMDD. Try to put date value in this format in the condition editor and see if it works.

Hope it helps.

Ambrish