on 04-26-2019 2:13 PM
Hello,
I have quite complex scenario where I need to pop files from given file share and, depending on content, push data to different places. Content is different, some files are XML, some are plain text like CSV. The problem is the files have the same name pattern and it's not possible to know what's inside before looking. The question: is it possible to use PI/PO to get all files and depending on the content push it to different receivers?
Best regards,
Pawel
use extended receiver determination.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pawel!
You could use Extended Receiver Determination functionality provided in SAP PI to build the list of receivers using separate OM (and MM). Using java mapping, for example, you determine content type of the given file and append respective receiver in result list accordingly.
Regards, Evgeniy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pavel,
Without wasting any time no out of the box functionality, if it not pdf or excel something which can not be read as string or stream bytes by Java mapping then you can do it in java mapping
1. read the file in java mapping.
2. Match the exact string in the content on which you want to route.
3. write dynamic configuration code in the map to set different directory or filename.
https://blogs.sap.com/2015/01/12/dynamic-and-yet-perfectly-static-benefits/
java mapping for dynamic config
https://blogs.sap.com/2017/11/02/sap-pi-java-map-to-read-file-and-return-it-to-target-message/
Regards,
Vikas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.