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.
Similar Messages
-
Dynamically construct Target/Source Directory in File Adapter
Hi All,
Is it possible to Dynamically construct target/Source Directory in File Adapter? If yes can anyone plz provide details about the same.
regards
VinayHi vinay,
have a look @ these threads..u may get some help!!
Re: Dynamic directory name in Receiving File adapter
Dynamic FileName and Directory - UDF
Re: Dynamic Directory and File Naming in Receiver Adapter
Re: target directory in file adapter
Regards
BILL -
Source directory of file adapter
Hi.
I want to use windows share directory as source directory of sender files adapter.
So we need set the path UNC name.
for example.
<hostname>\d:\sourcedirectoy
Does this setting is supported?
And are there any problem?
regards,>>I want to use windows share directory as source directory of sender files adapter.
Expose the Windows directory as an FTP server.
Along came a File Adapter, Mr. 'FTP' and Rest of the Gang By Shabarish Vijayakumar
Thanks
SaNv... -
Dynamic File Name and Directory File Sender Adapter
Hello gurus,
I have a question: Is there any way to make the File Name, and Directory Dynamic of a File Sender Communication Channel ?
For example, taking it as a parameter from a Web Service Request.. (I mean, the only way with this would be a ccBPM). I don't exactly know if there is a way, I just thought about this.
Please tell me if someone could make Dynamic these 2 parameters while picking a file.
Regards,
Juanoops,thought i was replying to the PgP question:)
I think you should be able to achieve this via adapter module but i m not really sure how exactly it will be done .
Thanks
Aamir
Edited by: Aamir Suhail on Jul 28, 2009 1:42 PM -
No Source Directory on Sender FTP Adapter
Hi Guys,
I am using a sender adapter to poll an external FTP Server. The adapter is able to see the server fine.
My problem lies in this:
The company in charge of the FTP server has put a restriction disallowing the 'cd' command on the ftp server. Now in the sender ftp adapter, the source directory is a mandatory field and therefore if nothing else, I need to put a '.' into the source directory.
This in effect will do a cd . when it logins into the ftp server. It is here that I get an error because command cd is disallowed.
Does anyone know how I can prevent the sender ftp adapter from automatically doing a cd command i.e. have no source directory?
Thanks,
MiguelHi,
I think it is not possible with file adapter .
Have a look into this SAP note -821267 Question no 27,34.
It may give some inputs
Regards,
Moorthy -
Hi Experts
I am doing file to Idoc scenario. For the source file, the files can reside in different folders. Is it possible to handle the different folders in single communication channels or we need to create multiple communication channels for the different folders.
Thnz
FaheemHi Aamir,
I dont think we can make a sender file adapter poll in multiple directories. May be the file name could be given using wild card characters, but not the file path. Is there really a way we could achieve this. If so, I have no clue here. Can you throw more light on this. Am too looking forward for a soln here.
Regards,
Jaishankar -
Dynamic Source location using FIle Adapter
Hi Experts,
I having a scenario of file to file, my problem is how can I configure the comm channel to where the file will be pulled wherein the path is defined during the runtime process in certain ABAP program(defined from selection screen)? Is it possible?
Thanks,Hi
No mapping is involved here. your source data should contain the directory path. Use the path in the variable substitution ,
Enable the variable substitution and,
payload:MT_test/dir_path/
Regards
Ramg -
Archiving faulty Source file not working in Sender Adapter FCC
Hi Experts,
I have enabled "Archiving Faulty Source File" in Sender Adapter FCC and pen down the directory path accordingly.
Likewise I also enable the processed mode as "archive" and give it the direcotory path.
However when there is a error flagged in sxmb_moni for this interface, I unable to see any file created in the error folder but I can see a file with timestamp being created in the archive folder.
I have checked the access right to the directory, so this is not an issue. I ran through the forum on this subject and come across the help.sap note on the following
" To archive source files where a permanent error occurred during processing, set the indicator.
A permanent error occurs either during the conversion of the file content, or in a module in the module processor.
More information: MessageTransformBean, Migrating Dispatcher Classes
○ Specify the Directory for Error Archiving.
○ To add a time stamp to the archived file, select Add Time Stamp. "
What is the definition as "permanent error". The error I got in sxmb_moni is a mapping conversion error, so it should be archive this to the error folder, right ?
Anyone have any such setting enabled and working ?
Regards
FNGThe error I got in sxmb_moni is a mapping conversion error, so it should be archive this to the error folder, right ?
No, it is not the case. As mentioned on the SAP Help site, for the faulty file to be archived, the error has to occur in content conversion, or in module processor.
If the error you are getting is in MONI, then it means syntactically the file is correct and hence adapter engine has picked up and sent to integration engine (SXMB_MONI).
-Supriya. -
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 -
Dynamic directory for Sender SFTP adapter
Hi All,
Hope everybody is doing fine.
I need urgent help for below requirement for SFTP adapter ,client requirement is
We have deployed the SAP security Add ons (PGP-SFTP) for one of the requirements in our PI system (PI 7.11 SPS 11).
The SFTP adapter is configured to read files from the source system.As per the guidelines from the source system , we need to determine the source directory dynamically and then poll the files.
The source folder structure looks something like this :
\Archive\FROM_System\<yyyy>\<mm>\<dd>\Interface1
\Archive\FROM_System\<yyyy>\<mm>\<dd>\Interface2
That is we need to pick up the file every day from a new folder, say, for 24th July 2013 - \Archive\FROM_System\2013\07\24\Interface1
25 July - \Archive\FROM_System\2013\07\25\Interface2
Will the PI SFTP adapter support this kind of requirement? As this is sftp sender adapter Operating system level command option is also not available.
Do we have any standard module/Bean to dynamically change directory name in the sender SFTP adapter?
i will really appreciate your quick help.
Thanks
MonicaHi Monica,
Yes it should work. Did you check this thread:
http://scn.sap.com/thread/3376137
Also refer to the following documentation link for the SFTP sender adapter (scroll down to the adapter specific message attributes):
http://help.sap.com/saphelp_nwposc/helpdata/en/2e/99f0fb5a9e45b3b148c90e87fafcd1/content.htm?frameset=/en/c5/56eb8e7ec04435a0d54d96a18231e5/frameset.htm
Best Regards
Harald -
Error in sender file adapter: source directory does not exist
Hi,
The PI system is 7.11
I've created sender file adapter with following details:
Transport Protocol : File System
Source directory: /interfaces/In
I checked in AL11 that this path really exists and it does. (I can even see the .txt file that should be processed.)
But still i get in Communication Channel Monitoring the following error:
"Configured Source directory "/interfaces/In" does not exist.
(i also tried to give the source directory as "interfaces/In" and as "//interfaces/In" but still the same error.
Any suggestions as to what is wrong?
kr
RobertActually, Need to use forward slash (/) to separate directory names in accordance with the Java specification.
But wanted to try if that works..
Also check directory name , path again as this is case sensitive...
--Divyesh -
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. -
'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 -
Setting the File Adapter Sender Source Directory...
Good morning, Experts
We have 2 sender file adapter communication channels in XI 7.0. Source directories for each are as follows:
Channel A - //757spgmr16-xp.sauder.com/SAP
Channel B - //devqas.sauder.com/ROOTBIN
Channel A works. Channel B does not. It returns "Configured source directory '//devqas.sauder.com/ROOTBIN' does not exist". When I remote into the XI box as the administrator I can open a Windows Explorer window and can see both of these source folders.
What user ID is used to access the NFS for the communication channel???
Any help you could give would be greatly appreciated.
Thanks,
ChadIs the integration engine running in a service on the XI server??? There are a number of SAP labelled services. Some are started with the log on of "Local system", some with the administrator account and then some with an ID of "SAPServicePID".
My guess here is that possibly this SAPServicePID user is running the integration engine and does not have permissions to the source directory??? Could this be the case???
Can somebody tell me the name of the service for the integration??? -
File Sender Adapter - Dinamic Source Directory and Filename
Hi Experts,
I have to receive in XI a file and depeding of some info, put it in diferent directories with diferent fieldnames.
In receiver File Adapter we can set the directory and fieldname dinamically by ABAP-CLASS mapping, but not in Sender.
I've read Michal's blog
/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
and sap help
http://help.sap.com/saphelp_nw04/helpdata/en/43/03612cdecc6e76e10000000a422035/frameset.htm
But, I can't find Adapter-Specific Message Attributes in my File Adapter...:-) I've checked SP version is SP16, where are my Adapter-Specific Message Attributes?
How can I set Directory and Fieldname at runtime for Sender File Adapter?
Please help...
Thanks all in advance,
Regards.
Urtzi.Hi Nilesh,
Your threath is not about my issue...
Answering to other friends, what I want is not to write p.e.: '/server/dir/' in each File Sender Adapter Channel, and put it with any other way looking some 'customizing' or checking a condition.
The problem is that frecuently in the Company changes servers and we have to enter to the Directory and change every Channel one by one...We would like to reduce the maintain of the Channels with a mapping, variable, customizing table...or something similar. Do I explain?
I don't know if its possible but I had the hope...:-)
Thanks all.
Urtzi.
Maybe you are looking for
-
How to remove bursting control file?
Hi, I attached a bursting control file to a data definition to test the functionality. Now I want to get rid of it, unfortunately I don't see a delete button or anything similar in XML Publisher Administrator. How can I delete the file? Thanks, Arthu
-
Unable to logon to Enterprise from Crystal Reports XI
I would like to upload a report I have produced to our CR Server for scheduling, when I logon I get the following error message: Security plugin error: An error has occurred in the plugin, but the plugin is unable to return a detailed error message.
-
Hi All, Can any one help me how to consume a JAVA Web Service using R/3 6.0 version? I want to send some data to the third party system so please send me the Sample code if possible or steps to be followed to achieve this. Thanks in Advance
-
Using Equals (option) in boolean functions of graphical mapping
Hi Sapall. here i have created an idoc to file scenario but i just cont find on how i can do the below mentioned validation. there is one segment with E1EDT13 name that i need to do validation with the functional admin need to do the mapping as Whe
-
Thinking about upgrading.
Hi. I've been using After Effects CS3 for a while now, as I just haven't had the funds to upgrade to CS4. I recently got my finances in order and am thinking about upgrading to CS5. Can someone briefly explain the differences between CS3 and CS5, and