on 10-07-2015 7:32 AM
Hello Experts,
I have a requirement of IDocs to file(FCC) scenario in which SAP PI 7.3(single stack) will receive IDocs from ECC system and will write to text file as CSV format. In this scenario we have to use only one file and need to append data to same file for which I have used append mode in receiver file adapter.
But this is working fine for only one record in IDocs. If suppose one IDocs contains same multi segments and all these segments needs to be written to file at the same time in append mode then it is taking only 1st record and skips all other records.
Below is the example..
IDoc--
-- Segment1
-value1
- value2
-- Segment1 --(segments1 is repeated)
-value1
-value2
Required File format--
value1,value2
value1,value2
Current file format-
Value1, value2 --- (from 1st segment1)
In above example all the records in segment1(both) needs to be written in file in append mode. Since "segment1" is repeated in same IDOC so file adapter need to process it in one go with append mode which it not able to do
So is it possible for receiver file adapter to delay processing in append mode..??
Please help...!!
Regards,
Vishnu Srivastava
Hi Vishnu,
So is it possible for receiver file adapter to delay processing in append mode..??
In your file receiver under Run OS Command Before Message Processing, try entering sleep 5 (for Unix) or timeout 5 (for Windows). It will make the receiver adapter sleep for 5 seconds.
Regards,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you can try the delay in the mapping also.
http://wiki.scn.sap.com/wiki/display/XI/Add+Time+Delay+in+message+mapping
Hello Raghu,
Thanks fro your reply. I have tried using ufd in between starting node of IDOC(IDOC) & starting node of receiver datatype(MT_IDOC_TO_FILE_INBOUND) but issue still persist. Still I can see only one record in file though I have multiple repeated nodes in IDocs.
Please suggest.
Regrds,
Vishnu Srivastava
Hi Vishnu,
Are you sure timing is the issue? Can you post your receiver FCC configuration for us to review?
Regards,
Nick
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok so I assume your mapping produces an output type with repeating node Details that is mapped from the repeating segment in the source IDOC? Do you have a screenshot of that mapping?
Before trying OS commands you need to ensure that the mapping is functioning properly. Also the processing log won't pick up any stderr/stdout from the OS command since it doesn't block.
Hello Experts,
Any suggestions plss..
Regards,
Vishnu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Mark,
I tried with this option as well also able to see processing delay but again receiver channel is unable to append multi records at a time. PFA the screenshot.
The delay is in area marked in red but requirement is to get delay in area which is marked in green.
Also in this scenario I am using multi receivers concept so I used UDF in mapping which is used to determine receivers. PFA
Have tried using same UDF in main mapping also but same result.
Please suggest.
Regards,
Vishnu
Hi Raghu,
I tried increasing the timings also. But again the same issue. I need message delay after every record while its getting fetched by receiver channel but somehow it is not happening .
Also, Our customer does not have BPM installed as of now, So can't go with these options.
Regards,
Vishnu
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.