on 01-29-2014 9:09 AM
Hi Group,
I have scenario , File to Proxy in which I am triggering one event , once after finishing the event it is triggering RFC in ECC , based on this RFC trigger I need to pick up another file for further processing,can any body suggest how we can achieve this.
Hi Rajiv,
If I were you, I would probably implement a UDF to read the file inside the mapping of scenario #2, sort of "file lookup". This solves a lot of your problems. So instead of 3 scenarios:
1. File to Proxy
2. RFC to X
3. File to Y (triggered by 2)
I would implement just 2:
1. File to Proxy (same as above)
2. RFC to Y, with file lookup in UDF during mapping.
Regards,
Greg
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rajiv
Implementing this scenario using PI will be very difficult because the file adapter will keep poling
for the new files and we can not hold it for any response or event trigger.
But if parallel processing of multiple files is your concern, then I would suggest you to go for EOIO so that only 1 file at a time will be processed.
File adapter has the option EOIO in the channel configuration.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rajiv,
If i understand your scenario when the RFC is triggered you would need to start a third PI scenario FILE - ???, then you need to start the file polling only one time and in a pointed time. You can start a communication channel ( the last FIle one) from ABAP to do this, check Katlego Jack Mohlankana Maja's blog
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Inaki/Indrajit,
In my scenrio even if I use processing sequence by date with EOIO,file adapter will pick up all the file by sequentially which I dont want , for example if 5 files arrived in the folder, PI adaper should pick up one file and then event will trigger , then post event in ECC I am triggering RFC I will be controlling communication channel to start and pick up next file for processing.
Here my question is in the Adapter how we can restrict to pick one file out of 5?
Hi Rajiv,
You could have a unique name for the file to be picked. For example in the path a sender system has deposited the files A.txt, B.txt, C.txt, and you want to pick only the B.txt file, then as per my knowledge you have two options to ask to the sender system to send the file with always the same name or with name that you can make a pattern to difference among the all files, or you can change the name of B.txt from the RFC function if you have access to that file from ABAP.
Regards.
Hi Rajiv,
For your requirement ,you need to use a custom module/unix script in file adapter to put wait time in between files pick up .We worked on the similar scenario couple of months back .Sorry actually I'm on vocation other wise I could have shared the code to you now .I will try to share the code tomorrow if possible.
Regards
Venkat
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
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.