on 09-22-2012 7:58 PM
Hi All,
I have a requirement where xml file is coming from the source having multiple records, now i have to do some field value checks like date is in correct format, the value should be greater than 4 and many more and if the validation is sucessful i have to pass that record to Idoc and if any of the validation fails then i have to create an error file with that invalid record.
Note: Suppose file is having 10 records and out of them 5 records are not fulfilling the validations then i have to create 5 idocs in ECC and rest 5 source records needs to be send to an error file folder.
I am planning to handle this at mapping level (using multimapping) where i will filter the valid and invalid records and then ICO (java idoc adapter + file adapter) will split the message and send the reords to create an IDOC and File ?
Note: My client is planning to install PO 7.31. So, is it possible to use above approach?
PO supports splitting of XML files and sending it to two different adapters (IDOC and file)?
Please help
Thanks
Vasant
Hi Vasant,
The problem you describe can best be solved using a multi message mapping which is supported in all versions of PI (and thus PO).
In the multimapping you create multiple idocs and/or add rows to the error file.
You then have 2 channels on the receiving business system. 1 being the idoc channel, the other is a file channel where you write your error file to.
Regards,
Joppe Koning-van Noort
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
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.