Multiple Exclusion Criteria[Exclusion Mask] in Sender File Adapter
Hello All,
I have a requirement to specify multiple exclusion criteria in the 'Exclusion Mask' property of a Sender File Adapter, i.e. I need to pick up files that correspond to 111*.txt from a specified source directory, but I would also want to exclude specific individual files that go by the following names:-111ACC.txt, 111INV.txt & 111PUR.txt.
I have tried the following - Specified 111*.txt in the 'File Name' field and in the 'Exclusion Mask' field specified ACC, INV & PUR - the exclusion criteria separated by commas. But this does not seem to work. All the 111* files are getting picked up.
Have gone through a couple of weblogs that deal with exclusion masks, but they do not talk about multiple exclusion criteria.
Is there any other way I could accomplish this?
Thanks,
Anand
Hi,
Try this config.
Give *.txt in filename. and Directory as <YourDir>
In exclusion mask give 111ACC.txt
Below this there will be a table. Add two Entries
Dont add anything to FilenameMask.
Directory ->FileNameMask--->ExclusionMask
<yourDir>->--->111INV.txt
<YourDir>->--->111PUR.txt
Try this and get back.
Regards,
Sudharshan
Message was edited by:
Sudharshan Aravamudan
Similar Messages
-
Multiple directory locations in Sender File adapter
Hi All,
I have a scenario where my single adapter needs to poll from 7 different directory locations. Is it posible to configure all seven sorce directory location in single sender file adapter.
Regards,
XierHi,
I apologize for wrong information, actually I never tried but it's possible after seeing this.
Note:821267
11. File Sender: Processing Multiple Source Directories
Q: Can the File Sender Adapter be configured to poll multiple source directories from a single channel?
A: This functionality is available starting with XI 3.0 Support Package 14 as well as PI 7.0.
raj. -
Multiple files at sender File adapter
Hi,
I am new to XI and i am trying to do file to file scenario. My requirement is i want to send four files with different names from same directory to the receiver. Is it possible with one sender communication channel? If so can u please tell me how i can do..?
Thanks,
NareshHi Naresh,
yes it can be done with single CC.
Check this blog:
XI/PI: how to exclude files in a sender File adapter?
Sachin -
How to pick files from multiple directories via Sender File Adapter?
Hi guys,
I have a scenario File to IDOC. The Sender File Adapter has to take all files: .xml from Source directory E://Current/.
Actually directories are like
E:/Plant1/Current/
E:/Plant1/History/
E:/Plant2/Current/
E:/Plant2/History/.
Can I have one Sender File Adapter to pick all *.xml files
from
E:/Plant1/Current/ and
E:/Plant2/Current/ and how can I write it in Source Directory of Communication Channel?
Or do I have to have a Sender File Adapter for each Plant?
Any suggestion please?
Kind regards,
Danijela ZivanovicHey
You might wanna have a look at "Additional selection for source file" parameter in sender file adapter.
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/singleSenderFileCC4MultipleDirectories
XI/PI: how to exclude files in a sender File adapter?
Even though this method works but there are some constraints,please check help.sap.com for constraints.
Thanx
Aamir -
Advance select for source file in Sender File Adapter
Hi
I am trying to utilise the parameter 'Advance Selection for source file' on a sender file adapter to pick the file from multiple folders
My problem is that this parameter that is listed on the SAP help is not getting in File accessing Parameters.
I am running PI 7.02 (NW702_07_Rel)
Service pack 07
Has anyone come across this before?
any suggestions on how to do this?Hi,
In PI7.0 the property exists. I have used it previously. I think SP was 13.
Regards,
Nutan
Edited by: nutan champia on Nov 24, 2011 10:42 AM -
Mapping problem due to FCC in sender file adapter
Hi All
I am doing File( Flat File ) to RFC Scenario.it is working fine..
the problem comes in mapping with multiple records.
FCC at sender file adapter is used
my Data Type are :
Source DT Target RFC import parameter(table).
E2ED20* ITEM*
KEY VBELN
VBELN POSNR
E2E24* CHARG
KEY
POSNR
CHARG
<b>*->>multiple occurence
E2ED20 and E2E24 are 2 segment ,KEY is used in FCC to identify E2EDL20 & E2EDL24</b>
My source text file is like this :
E2EDL20 0200
E2EDL24 xyz
E2EDL20 0201
E2EDL24 abc
E2EDL24 efg
E2EDL24 mln
E2EDL20 0202
E2EDL24 gty
so the payload should be :
0200 xyz
0201 abc
0201 efg
0201 mln
0202 gty
in <i>FCC ignoer record set= true</i>
otherwise is not called...
i try to use split by value & use oneasmany , not helpfull.
in message mapping when i checked th field VBELN -> display queue
i am getting an array 0200
0201
0202 in white fields
thanks & regards
Ashutosh Rawat<b>Source payload</b>
<?xml version="1.0" encoding="utf-8" ?>
- <ns:MT_MATNO_FILE xmlns:ns="urn:abc:xxx">
- <E2ED20>
<KZ>E2EDL20</KZ>
<FIELD1>020</FIELD1>
<b><VBELN>0083662685</VBELN></b>
</E2ED20>
- <E2E24>
<KZ>E2EDL24</KZ>
<FIELD2>020</FIELD2>
<POSNR>900001</POSNR>
<CHARG>1078629</CHARG>
<LFIMG>3200</LFIMG>
<MEINS>PCE</MEINS>
</E2E24>
- <E2E24>
<KZ>E2EDL24</KZ>
<FIELD2>020</FIELD2>
<POSNR>900002</POSNR>
<CHARG>1078630</CHARG>
<LFIMG>1895</LFIMG>
<MEINS>PCE</MEINS>
</E2E24>
- <E2E24>
<KZ>E2EDL24</KZ>
<FIELD2>020</FIELD2>
<POSNR>900003</POSNR>
<CHARG>1079145</CHARG>
<LFIMG>1883</LFIMG>
<MEINS>PCE</MEINS>
</E2E24>
- <E2E24>
<KZ>E2EDL24</KZ>
<FIELD2>020</FIELD2>
<POSNR>900004</POSNR>
<CHARG>1079146</CHARG>
<LFIMG>3195</LFIMG>
<MEINS>PCE</MEINS>
</E2E24>
- <E2ED20>
<KZ>E2EDL20</KZ>
<FIELD1>020</FIELD1>
<b> <VBELN>0083662648</VBELN></b>
</E2ED20>
- <E2E24>
<KZ>E2EDL24</KZ>
<FIELD2>020</FIELD2>
<POSNR>900011</POSNR>
<CHARG>1001450</CHARG>
<LFIMG>2946</LFIMG>
<MEINS>8PC</MEINS>
</E2E24>
- <E2ED20>
<KZ>E2EDL20</KZ>
<FIELD1>020</FIELD1>
<b> <VBELN>0083673936</VBELN></b> </E2ED20>
- <E2E24>
<KZ>E2EDL24</KZ>
<FIELD2>020</FIELD2>
<POSNR>900012</POSNR>
<CHARG>1073953</CHARG>
<LFIMG>2458</LFIMG>
<MEINS>PCE</MEINS>
</E2E24>
</ns:MT_MATNO_FILE>
<b>at target what required is</b>
<item>
<b><VBELN>0083662685</VBELN></b>
<POSNR>900001</POSNR>
</item>
<item>
<b><VBELN>0083662685</VBELN></b>
<POSNR>900002</POSNR>
</item>
<item>
<b><VBELN>0083662685</VBELN></b>
<POSNR>900003</POSNR>
</item>
<item>
<b><VBELN>0083662685</VBELN></b>
<POSNR>900004</POSNR>
</item>
<item>
<b><VBELN>0083662648</VBELN></b>
<POSNR>900011</POSNR>
</item>
<item>
<b><VBELN>0083673936</VBELN></b>
<POSNR>900012</POSNR>
</item>
in Sender FCC
E2ED20.fieldFixedLengths 7,76
E2ED20.fieldNames KZ,VBELN
E2ED20.keyFieldValue E1EDL20
E2ED20.endSeparator 'nl'
E2E24.fieldFixedLengths 7,24,13,7,3
E2E24.keyFieldValue E1EDL24
E2E24.fieldNames KZ,POSNR,CHARG,LFIMG,MEINS
E2E24.endSeparator 'nl'
ignoreRecordsetName true
source file is already there...
Message was edited by:
ashutosh rawat -
Sender File Adapter Not Picking Any File
Dear Expert,
I am newbie in PI. Just tried to create File Content Conversion Scenario. Details as follow :
1. Source Directory ..\file\log\test_q.txt
2. Target Directory ..\file\log\xml\test_q.xml
Transport Protocol : NFS
Message Protocol : File Content Conversion
Adapter Engine : Integration Engine
I have completed all the design and configuration in IR and ID. However, when I produce the log file in the directory, nothing happen.
Hacing checked in the RWB as well, I could not find any clue. simply nothing happen.
Would you please advise me on how to trigger the interface? As per my understanding, sender file adapter will be activated directly once the file is created.
Thank you very much in advance.
Best Regards,
YHi Yonisiwa,
Things you should check here are:
1) If the sender file adapter is active or not.
2) If the source directory is correctly spelt or not. (Check if you are using the correct slash \ or /)
3) The file name/mask is correct or not.
4) The polling interval is too long.
Alternatively, you can check the message monitoring in RWB at the adapter level and go into the audit log if the message.
There you can see the reason for the file not being picked up.
Also check the Communication Channel status in the Component Monitoring link in RWB.
Regards,
Ravi Kanth Talagana -
Hi,
The sender file adapter is reading a fixed width file . The file is not to be seen in the sxmb_moni. In the adapter monitoring is showing processed and green in color.
How do i resolve this issue.
In my recordset contains multiple substructures
<Recordset>
<Header>
type
code
id
</Header>
<Item>
type
qty
price
</Item>
</Recordset>
Header.fieldFixedLengths = 1,5,10
Header.endSeparator = 'nl'
Header.fieldNames = TYPE,CODE,ID
Header.keyFieldValue = 01
Item.fieldFixedLengths = 4,5
Item.endSeparator = 'nl'
Item.fieldNames = QTY,PRICE
Item.keyFieldValue = 02
What should i give in keyFieldValue . Is the above configuration correct.
Kindly suggest
Thanks
VargheseHi,
The key field value is normally a record type identifier. For example, a header record may always start with '1' or 'HD', and an item record may always start with '2' or 'IT' in your file. The 'type' field, which appears in both header and item records in your example, fits in as the identifier.
So, your parameters should be:
Header.fieldFixedLengths = 1,5,10 (or maybe 2,5,10)
Header.endSeparator = 'nl'
Header.fieldNames = TYPE,CODE,ID
Header.keyFieldValue = 1 (or maybe HD)
Item.fieldFixedLengths = 1,4,5 (or maybe 2,4,5)
Item.endSeparator = 'nl'
Item.fieldNames = TYPE,QTY,PRICE
Item.keyFieldValue = 2 (or maybe IT)
If your file has varying values of TYPE instead of 1,2 (or HD or IT), the File Adapter will not be able to handle the structured file. You may have to choose the option 'File without content conversion'.
Hope this helps,
Bhanu -
Send File Adapter - keyFieldValue like 'not(H,B)'
Hi,
I've a problem in a sender file adapter.
The file has one header line, multiple body lines and one trailer line. The structure of the flat file is like:
H; 0815; text;
0235;my text; 745;7...
6341;your text; 464;4 ...
2342;another text; 726;2
T; 3; OK
For header and trailer line there is a key field but for body lines there isn't.
My idea:
I take the first field of body lines as key field and define keyFieldValue like 'not(H,T)'.
Is there a way to define keyFieldValues with expressions with 'not' and 'or' ?
Or have anyone a different idea to solve the problem ?
Regards
ChristophMake the Source str as
MT_Source
Records ------------1 to unbounded
Data ------------1
In the sender File comm channel select Message protocol FCC and specify the parameters as given below
Document Name:MT_Source
Document namespace:(Specify the namespace)
Recordset structure:Records,*,Data,1
Add more parameters choose +
Name Value
Records.fieldNames Data
Records.fieldSeparator 'nl'
Records.endSeparator 'nl'
Follow this blog and modify java code according to ur requirement -
Sender File Adapter - Fixed Length
We have a Fixed File(Sender). With 3 fields. NO Header. Space is the separator for each fields
VendorNumber 10 bytes
VendorName 10 bytes
City 5 bytes
In the File we can have multiple records.
The Root Node is Vendor.
I am trying to define the SENDER FILE ADAPTER in the following way (I have referred mostly all the blogs) but my file is not picking up for some reason.
File looks like this
V123456789 A123456789 Bosto
V234567890 B123456789 Atlan
V334587900 C123456789 Austi
Note : I have been asked to give the Transport Protocol as "NFS" (Whether this is the problem???) I have summarised the complete details below. Please help me
Adapter Type : File Sender
Transport Protocol : NFS
Message Protocol : File Content Convervsion
Adapter Engine : Integration Server
FILE ACCESS PARAMETERS
Source Directory : /business
file Name : vendor.txt
Content Conversion Parameters
Document Name : Vendor
Document NameSpace: http://sap.com/xi/XI/SplitAndMerge
Recordsetname : Message1
Record Structure : File_MT,*
Recordset Sequence: Ascending
Key Field type : String(Case Sensitive)
Additional Parameters
File_MT.fieldFixedLengths 10,10,5
File_MT.fieldNames VendorNumber,VendorName,City
File_MT.fieldSeparator
File_MT..processFieldNames fromConfiguration.Hi Naveen,
Do check the following things,
>>Note : I have been asked to give the Transport Protocol as "NFS" (Whether this is the problem???) I have summarized the complete details below. Please help me
1.If your file resides on your local network/local computer give NFS(Network file system). if your file resides on a FTP location give FTP and also give the FTP log on parameters.
Additional Parameters
File_MT.fieldFixedLengths 10,10,5
File_MT.fieldNames VendorNumber,VendorName,City
File_MT.fieldSeparator
File_MT..processFieldNames fromConfiguration
2.If this structure does not match with the input file structure the file adapter wont pick up the file. So check for the help document provided by SAP in the following path.
help.sap.com --> Documentation --> SAPNetWeaver --> SAPNetWeaver '04 --> English --> process integration --> SAP Exchange Infrastructure --> connectivity --> Adapters --> File Adapter
Your file contains three records
V123456789 A123456789 Bosto
V234567890 B123456789 Atlan
V334587900 C123456789 Austi
You have mentioned the fieldSeperator as space but there is no File_MT.endSeparator '/n' which differentiates between each and every row (record).
Parameters for Record set Structures mentioned in the sender adapter configuration does not match with the actual file structure .
Try giving exact structures in the configuration of sender file adapter.
regards,
Aravindh. -
Sender File adapter to process each file with time gap
Hi All,
I have a sender file adapter which is picking 2 files in a folder. I want to delay the processing of each file by 5 minutes. For ex: PI should process the first file, then wait 5 minutes and the process the next etc. Is this achievable ?
Is there a way to create 2 sender agreements if I create 2 separate comm channels for each file .
I am using PI 7.0
Edited by: Dev Noronha on Sep 17, 2010 8:48 AMHi Sarvesh...
U r correct ... but i am nt wrong.... Just joking...
S u r correct in normal cases..
But this interface also involves BPM too.....
Dev didnt mention the whole prblm in clear....
The prblm is as following..
When he runs the CC at sender , if u have multiple files, then every file will initiate a BPM instance.
And in turn every BPM instance is waiting fr a message from PROXY....
The proxy messages coming from the ECC are not able to go fr exact BPM instance..
Eg: 2 Proxy message gng fr 1 BPM instance...etc..
FYI , no correlation on the messages....
Babu -
Read uniquely named file. Sender File Adapter unsuitable for synchronous
Hi All,
We have a requirement to read a specific file that has a unique name based on a transaction ID. The transaction ID will be passed from the source application.
The communication is required to be synchronous. There could be multiple requests/files generated and present at the directory at any given time but each corresponding to a specific transaction ID. If the file is not yet generated for that transaction ID we return back an error to the calling system.
I think we can not use Sender File Adapter - because of the dynamic naming and also because we have to return a synchronous response back depending on the file availability. i.e. We can not have a defined pattern in the file name nor can we specify a wild card as there could be more than one files in the location.
In theory we could use the File Sender adapter to read all the files in the directory and a BPM with correlation set based on the transaction ID and let the process wait for the request. But as far as possible I want to avoid this unnecessary wait or extra demand on the system. More so because the files could get big.
If I were using a tool like SAP Business Connector or webMethods then I would I used a readFile Java service and given it a filename to return the required bytes in a synchronous read.
Is something like this possible in XI? If someone has written a synchronous Java to read file can they share the code? Or do you suggest I write a ABAP server proxy to read the file? The problem however will be how do we map the data to a XML within the code.
All suggestions welcome. There has to be a simple and effective solution to this mundane requirement !
Wishing all SDNers a bright start to this new year,
Thanks,
Charu
Message was edited by:
Charu Kulkarni
"The transaction ID will be passed from the source application so we know what file to pick"Hi,
You could make the scenario a little simple and avoid custom development if the logic can be put into scripts(out of XI).
Say all the files are coming into a directory called D1.
Here, you could use a script to arrange all these in an order (say ascending) and move the first file into another directory D2.
The sender file adapter would poll this directory D2. The adapter can have a wild card character for the filename field now.
Once the file is in XI, you could check this against the transactionId present(I am not sure how you get this though!), and determine whether to send a mail, or to send a file back.
Here, I have assumed that there is somekind of order present in the files placed in the directory D1.
Again, this is just a suggestion.. I might be wrong with all the assumptions.
Regards,
Smitha. -
How to configure Sender File Adapter to pick couples files in order !!
Hi Folks,
I am really looking for one requirement like, Sender file adapter has to pick multiple files by file name based with some time gap? Can we?
I have got one BPM in this, I have tried with Process mode : Name and Date, with wait step on BPM, but no use. The way how PI behaving, if 40 files in file directory, it is picking all files in one shot. Start processing but not in order.
The problem is on Receiver system side. The receiver system is SNC system, if old data receives later than earlier date data; we get data obsolete application error.
Ex: If I receive 25th and 26th files, first I need to process 25th first on PI sends to SNC, I need to give some time gap and pick another file or even PI picks and process 26th file, no problem but I need to give some time gap to send SNC to this 26th date file?
Please how guys, throw me your great ideas
Thanks in advance!!
Regards
San@ Sandhya
If there are 40 files , can you please specify how many types of files are ther like say first A type shud be picked then B type then C type and so on so forth ?
LIke in my case I had only three types of files file1 and file 2 file 3
and in the directory also only three files will be placed at a time
you need to have some logic to separate the type of files in differnt folders and then process them
@ farooq yes . it will create problem if 40 files are kept at a time .
Regards
Ninad -
Configure Sender File adapter dynamically
Hi,
I need to configure the sender file adapter dynamically. Ex: I will be providing the src dir , file name etc dynamically. I think this is not possible using module because module gets executed after file is picked (in my case file dir and file names need to be determined dynamically). I even don't won't to use directory API for craeting my file sender comm channel. Is there any other way to achive this.
Regards,
RakeshHi Rakesh,
what is the Operating system of the PI server? Could you please kindly explain what conditions determine filename and source directory? I do not think there is anyway you can determine src file and dir names dynamically in PI.
Here is what you can try.
PI server is on windows system u need batch file. If its on unix or Linux you need scripts. Now what you have to do is place all files in a directory. Here the script/batch file will run continuously in background. Once it gets files it will rename files based on file content or file name then move them in different directories as per your conditions. your interface must have multiple communication channels and sender agreement (with diffrent parties) which will pick up those files from these directories.
The name of directories will be fixed in each channel.
regards
Anupam -
FileName in Sender File Adapter Module
Hi Folks,
In my sender file adapter have written a module to read the picked file name. The protocol used is NFS.
Notice that the file name read in the module has the absolute path, including the directory path. E.g The file name xyz has to be picked from source directory
XIServer\Outbound. In the module when I retrieve the file name, it comes up as
XIServer\Outbound\xyz. Is this expected behaviour?
I was expecting just the file name<xyz> to be retrieved.
Thanks,
AnandHI,
Create an UDF and write this code.
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key =
DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
String ourSourceFileName = conf.get(key);
return ourSourceFileName;
in Adapter u will have Adapter specific parameters check the file name check box.
Using this UDF u will get the file name at target side.
Regards,
Phani.
Maybe you are looking for
-
Script to Export Pervious Day Events Logs to CSV
HI, I am trying to export all the previous day's application event logs to a CSV file. I found the following script on net. But for this script to work I need to enter in the Event ID's I wont to export. Does anyone have any idea how I can change ths
-
Payment run through F110 will send mail, need mail list where we maitain?
Hello Experts when we run the payment run F110, it will send the mail to users , but can i find where the mail recipient list maitain ? Please help me to enhanse the mail list. Thanks
-
Oracle Critical Patch Update Advisory - January 2013
Hi all, 11.2.0.3 Oracle Critical Patch Update - January 2013 I am confused about CPU, PSU, SPU, USP. I am reading the docs and it seems they are same thing being rambled? Which of them is the most important to apply? Thanks, PetraK
-
Hi Guys !! I am intrested fot the ABAP and XI certification. I need some guidelines towords applying. How to apply and where to apply all these info i need. Thanks a Million in advance.
-
Slow Imac after installing 10.10.2
all the applications and start up really slow after we Install Yosemite 10.10.2