on 05-28-2014 1:56 PM
HI Experts,
We have a scenario, File to IDOC
I01xxxxxxxxxxxx
I02xxxxxxxxxxxx
.
.
.
.
I99xxxxxxxxxxxx is the file structure.
Sometime I may get only one line Starting with
I99xxxxxxxxxxxxx
I need to stop these messages in receiver determination based on Condition.
i have tried with "Myfield[(starts-with(.,"I99"))]" and also used "substring" also....but it is throwing error.
please help me out in this as it is an urgent requirement.
Thanks a lot in advance.
Prasad
Hello,
Check this XPath:
/p1:MT_Name[not(RECORDS[starts-with(field[1],'I99')])] EX
Above expression will determine the receiver if the first "field" occurrence has any value other than I99**...
Thanks
Amit Srivastava
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Amit,
Thanks for your reply, the above condition seems to be working, But I observed some wierd behaviour, that When I am Testing the scenario by pushing the message through RWB it is working fine, but When I tried to place file in sender directory it is failing and throwing error in MONI saying "No Receiver could be determined".
Can you or anybody help me on this.
Thanks in advance,
Prasad
Hi Prasad,
Would suggest to rather do a multi mapping. Please see the tutorial below.
Regards,
Jannus Botha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Prasad,
Instead of trying the logic in Receiver Determination why can you try this in mapping?
Regards,
Naveen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.