cancel
Showing results for 
Search instead for 
Did you mean: 

HI

Former Member
0 Kudos

hi

this is upendra kumar

Q: In file adapter how to pick a record as start with "abc" out of text file?

Thnks&Regards

upendra.v

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Upendra,

You can accomplish your requirement by using standard functions provided by XI during message mapping.

e.g you can use substring function if your field have some string with "abc"and then createif function can help you to send value to target or not.

Have a look at this document (PAGE 29)

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8a57d190-0201-0010-9e87-d8f327e1...

(PAGE 23)

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f59730fa-0901-0010-df97-c12f071f...

Hope this would help you.

thanks.

Pooja

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Same Question i already explained,,,

Use UDF in message mapping with complete Queue option , from source node -- remove context-- UDF---map to root..

In UDF - maintain loop < upto source length, check if source msg node s having abc,then add to result list.

Second way is take Vector and add all msgs with 'abc' later add remaining ..to vector, after add allvectore data to resultlist..

The another way is put filter condition according to your Business requirement...

OR You cn Use BPm, but idont suggest...With BPM you can filter according to correlation on node = 'abc'..

If this is useful points rewarded please..

Regards

Chilla..

Former Member
0 Kudos

hi

vy helpful answer

thnaking you sir

upendrakumar

Former Member
0 Kudos

Hi Upendra,

from file adapter, just map the whole text file to XML file......then in message mapping in XI, pick your record by using a UDF in JAVA, in which you will check the data of the node if it starts with "abc".......

Hope this solves your query......

Thanks,

Rajeev Gupta