on 01-17-2018 12:01 PM
SAP PI how to sent file into two different folder according field in incoming file.
I have service that got file from folder A and send it to folder B. Now I need add condition when field F = 1 - send file to folder Q or if field F = 2 - send file to folder U
Hi Asher,
Use XPath in your ICO-Receiver tab and point two separate Business components.
i.e. If F=1 then BC = BC_Q
If F=2 then BC = BC_U
Now, Under BC_Q create one communication channel with required FTP server details and path and accordingly another CC under BC_U.
Thanks,
Apu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Asher!
1. In case of File/NFS mode you could use variable substitution or Dynamic Configuration attribute "Directory" to set destination path.
2. In case of using different folders on the same FTP server you could use "Directory" DC attribute.
3. In case of using folders on different FTP servers you could use two receivers with its own communication channels and determine receiver depending on payload value using conditions in receiver determination or enhanced receiver determination.
Regards, Evgeniy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
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.