File Sender Adapter - file pick up
We have a scenario, where we are picking up files from an ftp directory. Before we pick up the file - say .xml file, we have to make sure that there is .FIN file.
How can we achieve this?
reg
Hi,
you could write a module to do the check. Find more information in the blog
Adapter Module to stop processing of duplicate file (FTP
Location) sandeep jaiswal
http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417500)ID1375690450DB01837587727037552414End?blog=/pub/wlg/9664
Best regards,
Erik Hubers
Similar Messages
-
HTTPs sender adapter to pick file from a external HTTP file location
HI gurus
Please see the problem here. I need know hoe to configure the Sender HTTP adapter.
My Scenario-
A Flat file (non-xml but structured) sitting on an external https enabled web server. I need XI to go out and get this file on a regular basis (which will then be processed laterby the business person)
Thanks
VLHi,
The FTP Adapter will do the job for you. Just create a File Communication Channel and change Transport Protocol to FTP. Since you mentioned that the file is non-xml, in the Message Protocol, choose, File Content Conversion.
Here are some blogs that will help you:
/people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
/people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
/people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
/people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
/people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
/people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
/people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
/people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns
/people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem
/people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
FYI.. HTTP Sender adapter is not required to be configured because a HTTP request will directly come to the ABAP Engine
Regards,
Balaji.M -
Sender File adapter not picking the file ABCD.PRN extension file
Hi
Am doing File to Abap Proxy scenario. My source will be in text format of fixed length of fileds 7.
My souce file will be generated by a third party machine with the extension EEE150809.PRN. In my scenario my file adapter should pick the file and update the same in ECC via a Proxy.
I have configured the Sender File adapter with Message Protocol - Content Conversion but file adapter is not picking the file. I have checked the Communication channel and status is fine. But the same Communication Channel works for .XML file.
What are the parameters that I have to consider with the file extension .PRN using File adapter?
Thanks.
S.Hi Swarna,
You dont need to worry about the extension when picking the file. You can try using EEE* so that is picks all the files starting with EEE. If you have the fixed name then you can try giving EEE150809.*. Also EEE150809.PRN should not have any issue. Try to see in sender commu ication cahnnel for anyerrors. Probably there might be some network issues or authorisation issues. If you are reading with NFS then ask them to give necessary permissions. If you are reading through FTP check the user id and pwd you are using.
Regards,
---Satish -
File not getting picked with Sender Adapter
Hello Experts,
i have configured file sender adapter which is polling configured directory every 60 sec. But i could see file not getting picked up. when looked into Communication channel monitoring i could see following error:
Putting message into send queue failed, due to: com.sap.aii.af.ra.ms.api.DuplicateMessageException : Message ID aa2ec9a0-44b3-11dc-9c5b-0003baa19669(OUTBOUND) already exists in database: com.sap.sql.DuplicateKeyException: ORA-00001: unique constraint (SAPDX1DB.SYS_C00120924) violated.
is this due to adapter cache. we are on SP20.
has anybody faced this problem earlier?
Thanks in advance.
Regards
RajeevHello
actually there was small problem in file generation and hence it was failing in message mapping which is resolved. but still that problem is there when it is attempting to delete the file. hence it is not able to delete that file.
can we manually clear the send queues or should we refresh CPA cache?
Thanks
Rajeev -
Pick up a specific file with File Sender Adapter.
Hi guys,
I would like to know how I can pick a specific file in a file pool (folder)? I would like to choose this file by name, like FileA or FileB, etc.
Im asking this because I have an asynchronous file scenario (BPM) with a receiver adapter that put the File with a specific name (variable substitution) in a folder.
And I would like to do something like this:
In another asynchronous scenario (BPM), a File sender adapter picks up this specific file (using the name). The correlation is made trough an IDOC that XI receives before pick up the file, this IDOC has payload field with the name of file to be picked.
Is it possible receives the IDOC, read the field with the name of the file to be picked and choose this specific file? In a Sender File Adapter how I can do something like variable substitution like receiver adapter does.
Thanks in advance,
Ricardo.Hi,
<i>Is it possible receives the IDOC, read the field with the name of the file to be picked and choose this specific file? In a Sender File Adapter how I can do something like variable substitution like receiver adapter does.</i>
No this is not possible. The only dynamic thing you can do is use wild card characters like *.
So, maybe you can pick a file like . or AA. and so on...
Regards,
Bhavesh -
Soap Adapter not Picking up files from sender
Hello All,
I have configured a SOAP Adapter and started it. When i place a file in the appropriate directory, it is not getting picked up. Are there any reasons this could happen ?
I would really appreaciate it if someone can help me with this !!!
Below is the log:
17:26:27 (3812): Enabling service ToWS
17:26:27 (3812): Enabling service FromWS
17:26:27 (3823): SOAP adapter initialized
17:26:27 (3830): Starting the server at 8660:/XIservices/MXS/xmb
17:26:27 (3830): Starting the server at 4444:/XIservices/MXS/ws
17:26:27 (3807): SOAP adapter started
Below is part of the config file:
The port and path where the adapter waits for web service messages from clients.
XMBWS.WSPort=4444
XMBWS.WSPath=/XIservices/MXS/ws
XMB.SenderBusinessSystem=WLX_100
#XMB.ReceiverBusinessSystem=MD1_400
XMB.User=XIAPPLUSER
XMB.Password=********
XMB.Client =100
XMB.Language=EN
XMB.SenderInterfaceNamespace=http://xi.sap.com/wlx
XMB.ReceiverInterfaceNamespace=urn:sap-com:document:sap:idoc:messages
XMB.SenderInterfaceName=ProcesseFT
XMB.ReceiverInterfaceName=Z_SERVICE_ENTRY.ZSERVICEENTRY01
XMB.TraceLevel=0
XMB.LoggingLevel=0
XMB.QualityOfService=EO
XMB.ContentType=text/xmlHi,
If you are using a Stand-alone J2SE Adapter Engine, you can create a SOAP adapter to pick a SOAP message from a file system and send it to the Integration Server. This is available with the XI3.0.
The configuration will look like this.
Bubble adapter java class
classname=com.sap.aii.messaging.adapter.ModuleBubble
This adapter instantiates a bubble bag for supporting
a soap file upload and sender. A bubble bag is a collection of Bubble
instances that form some processing chain of message objects.
Below parameter Bubble.Helper specifies the helper class that implements
the ModuleBubbleHelper interface. This class is used to instantiate
a bubble bag for this adapter.
Sets the bubble module helper that can instantiate your bubble bag
Bubble.Helper=com.sap.aii.messaging.adapter.ModuleBubbleHelperSOAPFileSenderImpl
#$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
Below this line are the parameters specific to the ModuleBubbleHelperSOAPFileSenderImpl
#$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
This module loads files from the local file system, consruct SOAP messages
(or SOAP with Attachments messages), and send them to the specified Web Service target URL.
Upon successful completion, response messages are stored in the file system.
Files stored can represent a plain payload, a SOAP envelope, or a SOAP with Attachments.
Plain payload files and SOAP envelope files may be packaged in MIME using some MIME headers.
SOAP with Attachments files must be packaged in MIME.
Specifies the type of the file. The available values are:
plain for plain; soap for soap envelope; swa for soap with attachments
SFSender.ContentMode=soap
Specifies the packaging
true for MIME packaged file; false for bare content
SFSender.MIMEPackaged=true
log everything (4-digit binary, where the bits indicate which
information is logged: req message, req context, resp request, resp context)
SFSender.Log=1111
The target URL to which messages are sent.
SFSender.TargetURL=http://p28848:4040/mysoaphandler
The upload directory on the local file system
This directory has six sub directories with names 0, 1, 2, 3, 4, 5, and 6. (they will be created)
The meaning of each sub directories are:
0 = inbox where you place messages to be sent
1 = trash box
2 = work box
3 = successfully completed (original) messages go in
4 = response messages come in (if any)
5 = undelivered (original) messages go in
6 = error messages come in (if any)
In these directories, the file names are used as key and there can be only one file with
the same name except in the trash box. So, when you place in the inbox a file with
the name identical to one of the files stored in another directory, it will not processed.
SFSender.Directory=/tmp/sfsender
The polling interval in milliseconds (default is 5000)
#SFSender.PollingInterval=5000
The retry delay after each failure in milliseconds (default is 5000)
#SFSender.RetryDelay=5000
The maximal retry count upon failures (default is 3)
After the maximal retry count is reached, the message is moved as undelivered.
#SFSender.RetryCount=3
The number of dispatchers to send requests (default is 3)
SFSender.DispatcherCount=1
END
Hope this helps.
@Ravi: You may call me at +91 9844167672.
Warm regards,
Venki. -
Regarding picking files from sender Adapter
I want to pick files from multiple directories from the sender adapter.
Is there any way to write a module fro the above functionality?
If possible, please provide the solution for the above queryHi virkram,
take a look to this thread
Re: File Sender Adapter - Multiple Source Directory
Hope this help
Francesco -
File adapter should pick a single file at a time
Hi,
I have File to RFC scenario.. in my source directory I'm getting bunch of files with the same name. at a time.. but i want to pick the one by one only. that means.. my file adapater poll interval is 30 seconds.. every 30 seconds it will pick the one file.. even though there are multiple files.. but my file adapter should pick a single file ata time..
but at present my file adapater was picking all the files ata time.. but i want to make my file adapter should pick single file ata time..
for this.. any special configuration we need to do.. or any ideas or suggestion .. will be.. appriciated..
regards
Babu>>any special configuration we need to do..
there is no default configuration to achieve this functionality.
I speculate that any of this should work.
1. Post the files to a intermediate directory and use a SCRIPT/Batch program to move only one file at a time frame to the source directory.
2. Uncheck the option Process Read only files in the sender CC to prevent the file adapter to pick the read only files. Use a script that changes the permission of one file at a time so that the file adapter will pick that file alone.
In both the cases the script needs to be scheduled at the OS level to run every 30 seconds.
Thanks
SaNv.... -
File Sender adapter not reading the first line
Hi,
I have a scenario configured from file to jdbc adapter.
However, I found a problem in my file sender adapter. My file adpater always not picking up the first line from my text even I have set the 'Document Offset' to 0.
Any Ideas? Thanks.
Regards,
PuaHi Latika Sethi,
My complete input text file is as below, it contains only 2 testing records:-
H1|DIZ1 |A0016507 |10000020|09/2007
H2|ABC0001
D|P|0001|Gaji Pokok | 1,000.09
D|D|0002|Denda | 1,000.00
D|P|0003|Elaun | 1,000.00
H1|PUA1 |A0016508 |10000021|09/2007
H2|ABC0002
D|P|0001|Gaji Pokok | 2,744.09
D|D|0002|Denda | 2,000.00
D|P|0003|Elaun | 2,000.00
After the message mapping, I found the pipeline existed in sxmb_moni as below:-
<?xml version="1.0" encoding="utf-8"?>
<ns:mt_rmp03B_filejdbc_sender xmlns:ns="urn:rmp03:pdrm:ips:jdbcjdbc">
<PaySlip>
..<Header2>
.... <IC>ABC0001</IC>
.. </Header2>
.. <Details>
.... <Jenis>P</Jenis>
.... <No>0001</No>
.... <Deskripsi>Gaji Pokok</Deskripsi>
.... <Jumlah>1,000.09</Jumlah>
.. </Details>
</PaySlip>
<PaySlip>
.. <Header1>
.... <Nama>PUA1</Nama>
.... <KWSP>A0016508</KWSP>
.... <NoGaji>10000021</NoGaji>
.... <Bulan>09/2007</Bulan>
.. </Header1>
.. <Header2>
.... <IC>ABC0002</IC>
.. </Header2>
.. <Details>
.... <Jenis>P</Jenis>
.... <No>0001</No>
.... <Deskripsi>Gaji Pokok</Deskripsi>
.... <Jumlah>2,744.09</Jumlah>
.. </Details>
</Payslip>
There are 2 payslips as for the top payslip node...Header1 tag is missing. It means that during the file sender step....the first line of my record which is :-
"H1|DIZ1 |A0016507 |10000020|09/2007"
is not read into the xi pipeline. Basically this is the problem i faced.
Has somebody facing the same problem before? Currently I have no choice but moved the First line of the text into Second line and left the first line of the text become null/ empty line. As such both records can be successfully read by the XI.
However what I wondered is sometimes clients will do insert the records into the first line and this might made some data loss.
Thanks... -
File sender adapter is not working
Hello All,
We are facing a problems with file sender adapter. Communication channel is not picking the files from the directory, but the status in RWB for that channel is 'Functioning'. We are not sure whether the channel is locked or any other problewm with adapter. (In Alternate option, we have created copy of that channel and when it is activated, it picked the file )
Can anyone help us how to identify whether channel is locked and any other solutions in this case.
Regards,
Sreenvias.Hi Srinivas,
The file adapter ( The respective channel) is definitely locked in PI . Ideally for each polling interval a lock is being created and once the processing is over , the lock should be released/deleted automatically to allow further polling interval. If the lock is not released by the system automatically,further polling will not happen as expected. ( This may affect all sender file adapters as well. I would recommend to do a check in al sender file communication channels)
You can see/delete the locks in Visual admin.
Go to Server>Services->Locking adapter and click refresh
The entries for file adapter ( with name $XIAFFileAdapter) should be deleted by selecting those particilar entries and click delete selected locks.
If you have more than one node, then same should be done in all server nodes.
The temprory solution would be creating/copy the existing channel in ID with same properties and assign it into particular sender agreement.
But, the lock may be created again which potentailly stops all your file based interfaces. Hence i would suggest to use Timeout parameter avialable in file sender adapter which termiates FTP session as you defined, This should solve your issue permanently.
The FTP server do have thier own time out settings but if you don't defne any particulat time out in PI, the FTP server forcefully disconnects the FTP sessions which created locks in PI.
Hope this solves your issue.
PS: The same bahaviour would expected for all sender JDBC adapter as well -
File Sender adapter - source file name - weird
Hi all,
We have a sender file adapter polling an ftp location. The Dynamic config has been enabled to get the source file name.
The actual file name is - "hrmd.xml", but in the dynamic configuration node, in sxmb_moni, the fileName is shown as ./hrmd.xml.
This does not occur with any other file sender adapter comm channels polling ftp locations.
I guess this has something to do with the ftp server. Did anyone face this issue?the fileName is shown as ./hrmd.xml
The file name surely cant have a / in it....such characters are not allowed.
is there any way we can change the fileName message attribute once the file is picked up
Create a UDF for Dynamic Configuration and change the name as per your requirement (in XI)....the source file may be having proper format for name and i assume that you have to change it for receiver file name -
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. -
Error Archiving File in File Sender Adapter using AF_Modules/PayloadZipBean
Hi everybody.
I have to pick a zip file up from ftp server, unzip an convert the file in xml.
Im using this modules in file sender adapter:
AF_Modules/PayloadZipBean --> To unzip de file
AF_Modules/MessageTransformBean --> file to xml
The problem is when I try to archive de file. Im getting this error and I dont know why (This path exists /out/ProcesadosSinError/)
Could not archive file 'test.zip' as '/out/ProcesadosSinError/20100518-091029-155_test.zip' after processing: java.io.FileNotFoundException: /out/ProcesadosSinError/20100518-091029-155_test.zip (A file or directory in the path name does not exist.)
Could it be that is not possible to archive with AF_Modules/PayloadZipBean?
Thank u so muchHi Stefan.
Absolutely. This path exists. It's an absolute path from root. I can´t understand the error!!!!
Thanks!!!
Edited by: Christian Abad Chico on May 18, 2010 9:35 AM -
Issue on file sender adapter communication channel
Hi All,
I have an issue on some of the file sender adapter communication channels .The channels are failing with the error :
(u201CAttempt to process file failed with com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.xi.swift.ParserException: com.sap.xi.swift.ParserException: Message does not start with character '0x1f'u201D).
Please let me know the procedure to get this message processed.
Thanks & Rgards
VishnuHi Vishu,
Find out in what encoding the file is in. for that download Notepad++ and open the file with in.
In Encoding tab you will see the encoding format.
1. If its not UTF-8 or ANSI then you should set the correct encoding in Sender File channel.
2. Check for BOM characters which will not be visible directoly.
3. Use Notepad++ to convert the content to HEX and check for hidden values. i bet there will be some Encoding BOM in the file which is creating problem while picking the file.
Since you are using SWIFT module: try to validate the XML file using Altova XML and check weather is correct.
also ref to this thread:http://scn.sap.com/thread/2134946
Regards,
Senthilprakash -
Scheduling File Sender Adapter
<b>Hai expertise,
We need to send image files from different local PC's (whose IP address is dynamic) to Document Storage System through XI.
1) we have to use HTTP sender (Java program which pick current IP address of system and file names from folder to XI in XML format).
2) XI has to pick the files and depends on response from BAPI files has to be moved to other folders in local machine (from where XI has picked the files)
Is there any way to pick the payload value to one feild of File sender adapter?
will it work through Adapter Specific Message Attributes?
But ASMA is for dynamic folders and dynamic filenames we need to set dynamic FTP IP address to FTP Server name of File Sender adapter.
Is this functionality be achieved without adapter module creation?
One more approach we though is that "XI will get XML data of IP address where file resides and file names in the form of XML, which we are polled by server proxy and using that IP address in proxy can we use do FTP copy and moving files from one folder to other depends on BAPI response". Will this work as the BAPI as to execute in backgroung to get files from local windows based machine to sever for FTP copy????
File sender adapter has to be triggered, when HTTP sender sends the data to XI, Is this possible???
Can we use File Sender adapter, when HTTP sender sends the data to XI in the same interface?
Picking files from static folders, filenames but dynamic FTP Servers, is this possible through standard File Sender Adapter?
Please advice.. its urgent...
Regards,
Pushparaju Bollapalli</b>try this
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d458a870-0601-0010-caab-b99c79741964
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/4f61fddf-0601-0010-7ab5-fb749538f6ab
/people/sap.user72/blog/2006/06/04/starting-stopping-of-communication-channel-from-rwb -
Is it possible get special file in file sender adapter?
Hi every SDNer.
I want to get special file. for example like PJ<today>_return.dat
Well, to paraphrase Marx, One folder has too many files. but I want one file in that folder.
The rule is simple. if today is 20/07/2007 then I get the file as "PJ20070720_return.dat".
How can i configuration File Sender Adapter?Dont have an XI system in front of me, but if I recall correctly, your options are pretty limited. The list of parameters in Advanced Selection for Source File does not include a date Better selection parms with the receiver channels.
As such you may have to resort to writing a script on the OS that will do the following every minute... (basically run it more frequently than your channel)
- look in that directory through all the PJ* files containing date = 'today'
- rename the file to REAL_PJ_..... (for example)
In your channel, pick the file REAL* and archive accordingly so it's not picked again by your script.
If you find alternatives via cchannel - publish your results.
sincerely,
--NM
Maybe you are looking for
-
Email background schedule report to gmail or yahoo mail
Dear Expert, My self Nayan Lad having 1 year exp in SAP ABAP. Now my request is How can I send mail the background schedule report to some person's personal mail id through SAP. Please guide me so I can explore my knowledge. Thanks & regards, Nayan L
-
How do I adjust settings to open hyperlinks from my phone?
For awhile now I have not been able to open any links in emails using my iPhone....... I've searched my settings & have kept things updated too.......any suggestions?
-
How to delete the Append Structure in VBAK Table.
I wrongly appended the structure to the standard VBAK table. Because of this SAP Kernel is get damaged. So, i cannot able to acces my datasource in R/3 side. can anyone help me to resolve this problem
-
Flag to identify if Partial payment made to Accoutning document
Hi, I've an issue with a scenario presented to me. I'm an ABAPer. I have a set of FI documents in a Z-table which are open. We check if they have migrated to BSAD (Customer Closed AR) and decide if they are open or closed. The issue currently is; if
-
Cisco Ise Central Web authentication not working
Hello Guys, CWA is not working. It says that authentication suceeded but posture status is pending. No error in my Monitor--authentication. Checking it in my Windows 7, it does not shows the CWA portal. What might be the possible problem of this.? th