on 11-26-2013 7:42 AM
Dear All,
I have a requirement: File to Idoc Scenario. File is fixed length file.
In the source file, we are getting first character and the last character is the special character such as &.
We need to validate and generate the Target Idoc.
If both first and last characters are same, then we need to generate the Idoc, else we need to fail the message in PI itself.
Any needful suggestions on this.
Regards,
Arvind
Hi Aravind,
Put first character with first field and last character with last field and use "equals" , Substring & createIf function to determine and then create a target root idoc field.
Regards
Gagan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Gagandeep,
Small change in the reqirement.
We are getting a special character at the end of the fixed length file.
We need to treat it as a key, if
& is present at the end of the file, we need to generate the IDOC. else fail it in PI itself.. How to do it... any suggestions...
Regards,
Arvind
Hi Arvind,
Instead of doing it in the mapping, may be you can handle it in the receiver determination step.
something like below..
(If i check for equals then i dont think it'll check across the nodes)
mt/Records[not(firstfield != "&")] EX
mt/Records[not(lastfield != "&")] EX
or
mt/Records[firstfield = "&"] EX
mt/Records[lastfield = "&"] EX
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.