on 07-30-2008 7:05 AM
Hi all,
I need to read several files and perform checks on there attributes,
like name and date of creation.
and only if the checks are o.k i need to transfer them to, otherwise i need to send an email reporting the error.
I saw in the sender file adapter an option of reading several files, how does it work, how can i perform the checks.
I thing that i can also perform this task using BPM, but from whet I understand it can be problematic when reading big files.
Thanks,
Naama
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>>I need to read several files and
Give the source file name in the file adapter as
*.*.
>>perform checks on there attributes, like name and date of creation.
Check the option Adapter-Specific Message Attribute in the sender file adapter.
>>and only if the checks are o.k i need to transfer them to, otherwise i need to send an email reporting the error.
Have a look at my article which addresses a similar requirement..
Thanks
SaNv...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
What u mean by several file --> Is it from different Folder .
Well File Adapter can read Files and it polls periodically based on u r polling time.
To read it's attributes use the Advance Option and check mark on the Filename and time stamp.
rthis can be captured by u r dynamic config and used for further verification
rgds
srini
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
>>can you pleas explain more,
Read the article.. It has the procedre in detail..
>>how in the mapping i perform the checks on all the files?
Read the file name using the Dynamic Configuration and perform the check against the file name as per your requirement....
>>how will the message tyoe look like?
Design your Data type as like your source file structure in additon add one more element i.e. status that will be used by the java mapping to set the validation result.
Thanks
SaNv...
Thanks,
i need to check the name and the creation date, and the number of files (the interface should work only if ther are 4 files in the directory)
there is in the file adapter an option of reading several files and there is an option of using more attributes like source file time stamp (maybe its the creation date?)
I need to tranfer the files data to sap only if the checks on the name and date and the number is correct.
do you knwo if BPM will work here, even if the total size of the file can be up to 250MB?
>>there is in the file adapter an option of reading several files
Only one file will be picked as payload and others will be part of Attachments in the SOAP message.
>>there is an option of using more attributes like source file time stamp (maybe its the creation date?)
Correct. Again. You can select one of the option at a time. This will select files one at a time. For handling multiple files you need to use "Advanced selection" which will add the files as attachments.
>>do you knwo if BPM will work here, even if the total size of the file can be up to 250MB?
Even with out a BPM, this size will be a problem.
You are going to use FTP or NFS ?
Thanks
Farooq
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>>NFS
You are going to pick the files of same types or different types?
If it is of same type: Use below informtion.
file.sourceFileName=<filename>
Specify the name of the file that you want to process.
The name can contain a placeholder (*) at any point, so as to be able to select a list of files for processing.
The following are valid examples for filename:
myFile.txt
my*.txt
*.txt
[Read Multiple Files from File Adapter.|http://help.sap.com/saphelp_nw04/helpdata/en/0d/00453c91f37151e10000000a11402f/frameset.htm]
Names that comprise more than two parts are also permitted.
If the files are of different types the use this approach:
Thanks
Farooq.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
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.