cancel
Showing results for 
Search instead for 
Did you mean: 

BPM Switch Xpath

Former Member
0 Kudos
68

Hi to All,

I'm working at a RFC - BPM - File scenario with in de BPM a switch. The switch must evaluate the element ICODE.

Here is the message

<?version="1.0" encoding="UTF-8" ?>

<rfc:_-ACTION_-ZHR_PI_PERNR_STAM_EV1 xmlns:rfc="urn:sap-com:document:sap:rfc:functions" >

<TA_EVOLUTION>

<item>

<TECHNICALENTITY>417100</TECHNICALENTITY>

<WORKERCATEGORY>B</WORKERCATEGORY>

<WORKERNBR>10000436</WORKERNBR>

<VALIDFROM>2010-12-06</VALIDFROM>

<VALIDTO>0000-00-00</VALIDTO>

<LASTNAME>Integration</LASTNAME>

<FIRSTNAME>Process</FIRSTNAME>

<GENDER>1</GENDER>

<BIRTHDATE>1973-09-12</BIRTHDATE>

<BIRTHCITY></BIRTHCITY>

<BIRTHCOUNTRY></BIRTHCOUNTRY>

<NATIONALITY></NATIONALITY>

<NATIONALNBR>00000000000</NATIONALNBR>

<ADDRESSVALIDFROM>2010-09-01</ADDRESSVALIDFROM>

<ADDRESSVALIDTO>9999-12-31</ADDRESSVALIDTO>

<ADDRESSTYPE>1</ADDRESSTYPE>

<STREETNBR>intefacebus1Q</STREETNBR>

<ZIPCODE>1000B</ZIPCODE>

<ADDRESSCITY>Bruxelles</ADDRESSCITY>

<ADDRESSCOUNTRY>BE</ADDRESSCOUNTRY>

<HOMEPHONE></HOMEPHONE>

<HOMEMOBILE></HOMEMOBILE>

<HOMEEMAIL></HOMEEMAIL>

<HIREDATE>2010-11-01</HIREDATE>

<TERMINATIONDATE>9999-12-31</TERMINATIONDATE>

<TERMINATIONREASON>Unknown</TERMINATIONREASON>

<SENIORITYDATE>2010-09-01</SENIORITYDATE>

<PROBATIONPERIOD></PROBATIONPERIOD>

<PROBATIONENDDATE>0000-00-00</PROBATIONENDDATE>

<FUNCTIONVALIDFROM>2010-11-11</FUNCTIONVALIDFROM>

<FUNCTIONTYPE>60000075</FUNCTIONTYPE>

<LOCATIONVALIDFROM>2010-11-11</LOCATIONVALIDFROM>

<JOBPLACE></JOBPLACE>

<COSTCENTERVALIDFROM>2010-11-11</COSTCENTERVALIDFROM>

<COSTCENTER>2003</COSTCENTER>

<POSITIONVALIDFROM>2010-11-11</POSITIONVALIDFROM>

<LEVEL1>2001</LEVEL1>

<ICODE>ACCTE</ICODE>

</item>

</TA_EVOLUTION>

</rfc:_-ACTION_-ZHR_PI_PERNR_STAM_EV1>

I have used the website http://www.whitebeam.org/library/guide/TechNotes/xpathtestbed.rhtm to test the following Xpath:

//TA_EVOLUTION/item/ICODE="LE"

It results a boolean false. So switch should work.

However I don't know what syntax I have to use to let the Switch work

What syntax I try. It gives a syntax error or it results to the first branch of the switch, I want it to result in the otherwise branch.

Regards

Remco Nieuwboer

View Entire Topic
former_member200962
Active Contributor
0 Kudos

BPM in PI7.1 or lower?

if in 7.1 then check :

for lower if i remember correctly you can select the node from expression editor.

Regards,

Abhishek.