cancel
Showing results for 
Search instead for 
Did you mean: 

How to use condition while mapping

Former Member
0 Kudos

Hi Experts,

I have XML file having 1000 record messages. I need to create Idoc on specific conditions. Per example..... I have equipment number XX88844 with 3 records. but out 3 records 1 record is matching my requirement. So i need to create Idoc only for this 1 record. I have to generate rest of 2 records in error log. So this condition should apply for all 1000 records. How I can do this in message mapping. I am new to XI. Could some one help me to solve this problem..

Thanks,

Accepted Solutions (0)

Answers (2)

Answers (2)

GabrielSagaya
Active Contributor
0 Kudos

if you need to create Idoc only for the correct record you can use various conditional mapping functions like createif, exists(), ifthenelse(), ifthen(),equals()

There are several standard functions are available.

http://help.sap.com/saphelp_nw04/helpdata/en/43/c4cdfc334824478090739c04c4a249/frameset.htm

see also

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/877c0d53-0801-0010-3bb0-e38d5ecd...

former_member181962
Active Contributor
0 Kudos

/message/5451471#5451471 [original link is broken]

will tell you how to create idoc with multiple occurances.

then you can put a condition on the root node of the idoc, so that the idic node gets created only when your condition is satisfied.

regards,

ravi