cancel
Showing results for 
Search instead for 
Did you mean: 

How to use loop functionality in XI

Former Member
0 Kudos

Hi,

I am working with Idoc to file scenario.

And my requirement in some of the fields are as follow.

IF E1IDB02 BA-FIIKWAER = CNY

then MID(E1EDKA1 BE-NAME1,12,11)

IF E1IDB02 BA-FIIKWAER <> CNY and LEN(E1EDKA1 BE-NAME1)<=35

then MID(E1EDKA1 BE-STRAS,1,35)

IF E1IDB02 BA-FIIKWAER <> CNY and LEN(E1EDKA1 BE-NAME1)>35

then MID(E1EDKA1 BE-NAME1,36,35)

Please let me know the functions to be used for mapping

eg:ifequal.... etc

Manoj

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Good Results

Former Member
0 Kudos

Hi,

You can achieve this by UDF,

inputs are E1IDB02 BA-FIIKWAER,E1EDKA1 BE-NAME1

yes then suggest MIDE(E1EDKA1 BE - STRAS,1,35)

IF E1IDB02 BA-FIIKWAER = CNY

then MID(E1EDKA1 BE-NAME1,12,11)

IF E1IDB02 BA-FIIKWAER <> CNY and LEN(E1EDKA1 BE-NAME1)<=35

then MID(E1EDKA1 BE-STRAS,1,35)

IF E1IDB02 BA-FIIKWAER <> CNY and LEN(E1EDKA1 BE-NAME1)>35

then MID(E1EDKA1 BE-NAME1,36,35)

Regards

Chilla

Former Member
0 Kudos

use adavnced UDF that is pass the value in Queue or context then you can loop the all values you have.

Former Member
0 Kudos

Hi Manoj,

You can achieve with the help of BPM loop and block functions

Thx

Ravijeet.

prabhu_s2
Active Contributor
0 Kudos

u can make use of nodes in graphical mapping like if..else,equals etc...but it have more contriol on tis u can check with udf's...the input to the udf will beE1IDB02 BA-FIIKWAER, CNY, E1EDKA1 BE-NAME1 , E1EDKA1 BE-STRAS and inside the udf u will have the java check condition and return the substring which is then mapped to target.

and check if the topic is relevant to ur post.

Message was edited by:

Prabhu S

Former Member
0 Kudos

You can achieve with the help of boolean function "IF"(ie IF the ELSE)of standard fucntions in message mapping.