Multiple Source directory Scenario
I have a situation where my source files will be in several directories based on State. If I give the multiple source directories how the Sender File Adapter picks up those files?
Does Adapter picks up 1 after the other or It picks up all files and merges and sends as one file ?
Your input is greatly appreciated.Thanx
Hi,
1. Write a shell script to copy allt he file in one directory. YOu can ask business if you are getting unique fil names. If yes then all you need to put is just copy the file using shell script.
2. Point your file adapter to this directory and pick the file as *.csv or any other pattern that is more suited to the fil names.
3. Also you can use this functionality of file adapter so that you know all the files are picked up correctly.
<i>Msecs to Wait Before Modification Check
Enter the number of milliseconds that the adapter must wait before it checks whether the files have been changed.
This parameter is not available if you have selected File Content Conversion as the Message Protocol and then made an entry under Recordsets per Message that splits an input file into several messages.</i>
Regards
Vijaya
Similar Messages
-
File Sender Adapter - Multiple Source Directory
Hi all,
I have the following file to IDoc Scenaraio:
The source file might be in any of 3 directories in source system and so created file sender adapter as follows:
File access parameters:
Source Directory : Directory1
File Name : Filename*.XML
Addiontal Directory:
Directory2 Filename*.XML
Directory3 Filename*.XML
The porblem we are facing is the file adapter is picking the file from Directory1& 2 and not from Directory3.
If the change Directory Order in adapter as follows:
File access parameters:
Source Directory : Directory3
File Name : Filename*.XML
Addiontal Directory:
Directory2 Filename*.XML
Directory1 Filename*.XML
... then file from Directory 2 & 3 is getting processed and not from Directory1.
Any thoughts on this will be greatly appreciated.
Thanks
Sarat.Why use BPM for this?
Instead write an abap program to pick from any of 3 directories in source directory and place it in the shared XI folder and configure your file adapter pointing to XI shared folder...shecdule the abap report for every 5 min..
Wanna know more /people/sravya.talanki2/blog/2005/08/23/sender-xi-ftp-adapter-with-regular-path-expression-150-abap
Or write OS level scripts for doing same. -
Multiple Source Messages Scenario - Need help
Hi,
This is my scenario.
System A sends Message A
System B sends message B
both of them are diffrent strcutures.
Now I need to map both of the messages to Message C and send it to system C.
I would need help on how to achive this requirement.
I tried using correlation in BPM but i dont know if I'm following the right approach to activate correlation.
Any help in this regard would be appreciated.
Cheers!!
SidharthHi,
I've gone through the thread but did not find much information.
The blog talks about collecting messages for same interface which I'm afraid is not wht I'm looking for.
Just to summarize wht I've done....
Start --> Receive 1 (Message A) --> Receive 2 (Message B) --> Transformation --> Send 1 (Message C) --> Stop
I've defined correlation accordingly... to pick up the PO num field.
Now when message A is submitted the outbound status on sxmb_moni is set to waiting....
But the moment I submit message B, The outbound status is set to a Green Flag and there is a SYSFAIL entry in the queue.
The error is " Permanent Error in BPE Inbound Processing"
But I see the message A is has still got the outbound status wating..
I guess I'm missing something in correlation..
cheers!!
Sidharth -
Sap xi SCENARIO source directory working ,but not working target directory
sap xi SCENARIO source directory working ,but not working target directory..
plz help meHi,
Be more specific on the problem you are facing so that the ppl here can help..
looks like your are trying to file to file scenario and the file is not generating at the target folder ...
then check the communication logs of the receiver adapter using RWB->CC logs..
post the error you have received there..
HTH
Rajesh -
I want to Pick the Single file from The source Directory
Hi,
My Scenario is File to RFC .. I'm getting the files in the source Directory.. File names are SENDER_(TIMESTAP).XML .. but the problem is... When ever Files are available in the Source Directory Immediately XI was picking all the files at a time.. But I want to to Pick a single file at a time..
for Making this what we have to do.. After Processing the first file then only my Sender adapter should pick the next file... (even though Multiple files are available in my Source Directory)
Regards
JainHi,
the other option was use Adapter specific attributes in the Sender Communication channel..
or
while droping the files ask them to drop using time stamp in another directory and an external validation is required .. and after validation push single file to Source directory using batch file..
i.e use a batch file using run time operating system or make that batch file to run at OS level ..
where the batch files needs to validate the time interval of the file and needs to push a single file to the source directory.. where from there we can directly pick a single file and process..
regards,
Kishore -
File sender ch. - specifying multiple source with *
Hi folks,
In my File2Idoc scenario I need to pick up files from an ftp server where I have about 20 partners which folders look the same.
like
root/p1/subd1/import
p1/subd2/import
p2/subd1/import
p2/subd2/import
In my file sender channel I wanted to specify /root///import but it didnt work.
1. Is there a way to specify directories like above?
Or do I have to enumerate all the directories (near 100) in the Advanced selection for source file in the adapter?
2. I have to move the processed files to import/archive in each partners folder.
If I specify multiple sources in the adapter, how can I reference them in the Archive directory field on Processing tab?
thanksHi ,
While you are using the FTP File Adapter then in the sender Communication channel
Go to source Directory : then mentioned the /direcotry/filename then under mentioned the File name.
After that Go to Process Mode tab in the Sender CC Select the Process Mode like "Archive " then you mentioned the Archive directory Path like for ex: /dirname/interfaces/devision/inboundoroutbound/archive then choose the file Type Binary
May be it helpful to you !
Regards,
Ravi. -
FTP to IDOC : multiple source files
Hi experts,
I finished designing my File-FTP to idoc scenario.
I still have one question left, I did tests with my FTP by putting one file in the directory called test.xml
In the case I would have multiple source files (i.e. test2.xml, test3.xml, ...testn.xml), how can I handle these different files to be sent to SAP ???
Thanks a lots, any help would be appreciated.
Regards,
Jamalhi,
If you want to process all the ".xml" files in the folder then just give the file name "*.xml".It will process all
the xml file in the folder.
Advanced Selection for Source File:
If you want to process only the file name will start "a" , "b" and extension is xml then,
".xml" is the file name and "a" ,"b*" is the Exclusion Mask.
Regards,
Prakasu
Edited by: prakasu on Aug 7, 2008 12:15 PM -
Source Directory same in FIle to IDOC
Hi Friends
Can we have a same File Name and same Source Directory for 2 different scenarios?
Means in my communication channel i am putting
this
Source Directory : /POS/input/test
File Name: *.DAT
for one let us say ABC file to xyz-iDOC scenario
and same Source directory and same file name for
another scenario say hgf file to uio-iDOC scenario
Will it work or do i have to change the name of the file or something?
Please guide
ThanksSwarup,
I've some doubts.
>It will definately work provided you have not marked any action such as archive or delete file after processing in sender communication channel.
Ok, I agree to this point. If you give TEST mode then obviously it will work. Provided there is atleast some time gap between these communication channels polling time. For example Channel1 Polling time 60 seconds, Channel2 Polling time 60 seconds. For example if he activate the first channel at 10:00:00 AM, then he need to activate the other channel 10:00:30 AM( hh:mm:ss). But I always need to make sure, re-activating again it's big pain we need to check at what time the first channel is activated based on that u need to re-activate the next.
>If suppose you need to use the file for both scenarios then you could even use the common sender communication channel also.
Is it, are u sure? So u mean the same comm.channel can be assigned to different scenarios also is it? I mean for two diff.O/B Interface you can create two diff.sender agreements with same channele? Can you try this and let me know?
raj. -
Dynamic source directory in sender adapter
Hi Experts,
I have a File to File scenario, where my source directory needs to be dynamic. The directory structure is like:
Y:\ParentDrive\<DynamicFolder>\<DynamicFolder>\<DynmicFileName>
And then on the receiver side, I need to create the DynamicFolders and the file.
Please let me know if this can be achieved using modules or if there is any other approach.hi,
refer my article:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70c89607-e4d9-2910-7280-f6746e964516
it shows using filename. similarly u can use directory attribute.
[reward if helpful]
regards,
latika. -
'Source Directory doesn't exist' error in sender file adapter
Hi All,
I m getting the error 'Source Directory doesn't exist' in sender file adapter.
The source file directory doesn't exist in XI Server. Its in a different system.
gone through other sdn t hreads.
the options seems to be
1. either to mount the Source Directory on the XI Server.
2. Install a FTP server and use FTP protocol.
My doubt is that, could nt we give necessary access rights to the XIAFUSER whihc will access the Source Directory?
Wont it be sufficient?Hi Aarthi,
If you are using system other than XI, then you have to use FTP server
else check you have proper authorization of read/write to the source directory...
and check the name of it as well, as it is case sensetive and you have provided the proper details of server.
check these blog as well...
/people/venugopalarao.immadisetty/blog/2007/01/24/troubleshooting-file-to-idoc-scenario-in-xi
/people/shabarish.vijayakumar/blog/2006/08/01/along-came-a-file-adapter-mr-ftp-and-rest-of-the-gang
Sachin
Edited by: Sachin Dhingra on Mar 24, 2009 12:16 PM -
How to specify source directory in File sender adpate using (NFS)?
Hello experts,
I am doing File-PI-Proxy scenario.
Input file is available on machine which is within the Network area and FTP is not available on that machine.
For this reason I am using the NFS Transport Protocol.
In ID File sender I have specified Source Directory:-
IP Address\Directory
I am geeting the Error in RWB as 'Configured source directory '
IP Address\Directory' does not exist'.
Please suggest how to specify the Source Directory path.
Regards,
JageshHi,
If you want to use NFS protocol, then the file needs to be within the a folder in the XI server and not outside it, In your case if you need to use the file in a different machine which is on a network then try to use the FTP protocol.
Refer this blog:
/people/shabarish.vijayakumar/blog/2006/08/01/along-came-a-file-adapter-mr-ftp-and-rest-of-the-gang which shows the details of how you can install a local FTP and use it
Regards,
Nithiyanandam
Edited by: Nithiyanandam A.U. on Mar 18, 2009 10:43 AM -
Source directory changed every month?
Hi Experts,
my scenario is File to proxy
message protocol for file adapter is NFS
according to my scenario every month is changed source directory...
for ex :
for this month my source directory is
Source Directory:\xyz\abc\1\daily
next month source directory is
Source Directory:\xyz\abc\2\daily
like that..
Source Directory:\xyz\abc\3\daily
Source Directory:\xyz\abc\4\daily
Source Directory:\xyz\abc\5\daily
Every month is changed...
Then in PI, i need to write any code.............or implementing JOB Shceduling?
please help me on this.........
Thanks&Regards
E. Ravi Chandra ReddyHi Ravi,
Can you try this and check.
In Sender channel use directory as \xyz\abc\*\daily. I am not sure if this works but give it a try.
Or
Make use of Advanced Selection for Sender Channel.
Give at least 6 or 12 directory name like
\xyz\abc\1\daily FileName
\xyz\abc\2\daily FileName
\xyz\abc\3\daily FileName
This would somehow help you to maintain entry once for a year.
Regards
Jitender -
Renaming the file in the Source Directory
Hi ,
I have a scenario where the file is left in the source directory after sending it to XI for processing. In order to exclude the file from next polling onwards , the file needs to be replaced . I know the solution is possible through Archiving or OS Command (which are not possible in my project)....Please let me know the feasibility through adapter module(if possible ,sample code pls) or any other solution ?
Thanks in advance
Edited by: chitra l on Aug 12, 2009 12:09 PMChitra,
Why do you want to go to the hardest route when you have a standard and simple route. The hardest would be to write an adapter module. The simplest way would be simply read the file and send it to the same folder with a different name. You dont need to do anything in IR also.
/people/william.li/blog/2006/09/08/how-to-send-any-data-even-binary-through-xi-without-using-the-integration-repository
Regards,
---Satish -
Hi All,
Our scenario like....
source directory:
/data/interface/xxx/file1.txt
/data/interface/yyy/file2.txt
/data/interface/zzz/file3.txt
I want file will be archived in different directory.
Archive directory...
/data/interface/xxx/processed/file1_timestamp.txt
/data/interface/yyy/processed/file2_timestamp.txt
/data/interface/zzz/processed/file3_timestamp.txt
I am using one file adapter for sender.
Plz Help needed urgently.
Regards,
SamarjitHi,
For each interface you must be having different Communication.
In the sender communcation channel for<b> each</b> of the sender
Specify:
Processing Mode : Archive
<b>Set</b> Add TimeStamp Indicator.
Specify the archive directory path.
Further reference
http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm
<b>Cheers,
*RAJ*</b> -
Source directory doesn't exist
Hi experts,
my scenario is file to proxy..
i am developed end to end scenario......
i am using TP is NFS.... & also used as ICO configuration
while checking in RWB it will give error like source directory does not exist..
see the fallowing screenshot..
The source directory is fine.............but i am getting the error source directory does not exist...
please help me on this...where is exactly problem occurs?(source directory is fine)
Thanks & Regards
E.Ravi Chandra ReddyHi Raja,
please find below screen shot of corresponding CC..
Thanks & Regards
E.Ravi chandra reddy
Maybe you are looking for
-
I have an iphone 4 with ios 5. I was using the built in "map" app today and was expecting it to tell me directions. Does it not have this capibility? Thank You Tonya
-
Sudden dramatic loss of TM remaining storage i.e. sudden increase in backup
Over the months, the amount remaining on my 1 Terabyte HD has been gradually decreasing, as Time Machine does backups. Today, I noticed a sudden, dramatic decrease in the amount of remaining storage. It dropped from around 400Gig to 360 Gig. That's a
-
Attribute Change Run in BW 3.5
Hi, In RSA1 ->Monitoring ->Reallignment Run, When I click on the InfoObject List button, I can see one InfoObject. 1) Does it mean the attribute Change Run is not yet perform for this InfoObject? 2) If yes, then I would just need to select this InfoO
-
Talent Managemnet Core: Talent Group
Hi , I would like to know mainly three questions regarding the topic 'Talent Group'. 1. How to create a talent Group in the backend system? 2. Let know the transaction or report that generates the list of talent groups existing? 3. Let know the trans
-
Exporting Raw files from iPhoto to a thumb drive
I shot some photos in camera Raw with my Canon 40D and uploaded them to iPhoto. When I dragged copies of the Raw image file to the desktop they were converted to Jpeg. When I tried dragging them directly from iPhoto to a thumb drive, the same thing h