File Adapter - Sender/Receiver

We may have scenario where XI will be using File adapter to deliver messages to Application X  in the landscape.
As part of Load balancing of Application X, there are multiple servers running. Say, If Iam delivering the  file to one location, If that server is down I should send files to different location.  How can I achive that ?

Hi ST,
I guess your 10 receivers are physically different. So they will have different IPs.
I do not know if you can adress a receiver dynamic. As far as I know it is not possible.
Maybe one solution is to write your own adapter.
On the other hand, thinking about a webService that pings the receiver systems and gives a message back to XI, which servers are online.
Than first call the WebService. In BPM you receive a list/ a message which servers are online. In a fork you could decide with a condition, which branch to use.
Sorry, that I cant give you a better solution.
Regards Mario

Similar Messages

  • XI File Adapter sending/receiving zip files

    Can the XI File Adapter create a zip file to send outbound from XI and/or can it also translate a zip file inbound into XI?

    Hi Kirk.
    What you can do is use the OS command option on the adapter in order to unzip the file after the File\FTP adapter completes its file transfer to the specified path.One of my colleagues used a freeware zip app. that excepts an os command actions.
    I know it works for file receiver but not sure about the sender. check SAP Note 801926 for more sender adapter parameters.
    Regards
    Nimrod Gisis

  • File access parameter in file adapter at receiver side

    Hi Experts,
    1- i am using file adapter at receiver side. i want to create my file with time stamp for that i have given the file construction    mode = add time stamp and put file directly .but it is showing time in file name????????
    2. i want my file name as  TimeSheet_Country_Date_time.csv so for this what value i have to give in file Name Scheme parameter.
    Regards

    1- i am using file adapter at receiver side. i want to create my file with time stamp for that i have given the file construction mode = add time stamp and put file directly .but it is showing time in file name????????
    The addtime stamp will add timestamp as the last part of the filename before the extension.
    2. i want my file name as TimeSheet_Country_Date_time.csv so for this what value i have to give in file Name Scheme parameter.
    You can achieve this using dynamic file naming UDF in mapping and using ASMA in file adapter.
    Use current date function and generate the current date. Then use substring to pick date,time from it and format it according to your requirement (TimeSheet_Country_Date_time).Else you can write a UDF to generate the file name as per your requirement and then pass it to the dynamic filenaming UDF in the mapping.
    Search SDN for dynamic file naming.

  • Cannot process a Fixed Field Length file using the File Adapter (Sender)

    Hi -
    I have checked throughout these posts and blogs but I still have not been able to find a solution to my issue.  When using the File Adapter (Sender) I get a Conversion initialization failed with "xml.keyfieldName", no value found.  Why would I require a key field when I am using fixed field lenghts?  The file is comprised of 2 structures - 1 header and multiple details (see below).  There are no key fields in the flat file that I would be able to use.  Any suggestions?
    011000390      Customer Americas        20080605164317 000000000000000800000008000000000016000000                              
    12345678          100500       100500       Supplier 1                         0000000000030000002008040400                    
    12345678          100501       100501       Supplier 2                         0000000000052000002008042100 
    The File Adapter is configured as follows:
    Document Name = Rfchke00
    Document Namespace = 'my namespace'
    Recordset Name = Rfchke00
    Recordset Structure = Dtachkh,1,Dtachkp,*
    Recordset Sequence = Ascending
    Recordsets per Message = 1
    Key Field Type = String (Case-Sensitive)
    Dtachkh.fieldFixedLengths = 15,25,8,6,1,8,8,8,15,3,31
    Dtachkh.fieldNames = F1,F2,F3,F4,F5,F6,F7,F8,F9,F10,F11
    Dtachkh.processFieldNames = fromConfiguration
    Dtachkp,fieldFixedLengths = 18,13,13,35,15,3,8,2,21
    Dtachkp,fieldNames = F1,F2,F3,F4,F5,F6,F7,F8,F9
    Dtachkp,processFieldNames = fromConfiguration
    Thanks,
    Dave

    Hi,
    you can use the module from which u can convert your structure to
    H011000390 Customer Americas 20080605164317 000000000000000800000008000000000016000000
    D12345678 100500 100500 Supplier 1 0000000000030000002008040400
    D12345678 100501 100501 Supplier 2 0000000000052000002008042100
    Please note the extra H,D in the struture added by the module.
    You can then use them as your key fieldValues.. The module should be deployed in Visual Admin and then can be used in the Module tab of your adapter CC
    While writing the content conversion after that please dont forget about the added new characters
    Please note also that i can find that the word supplier kept repeating in all the Dtachkp records
    Please use that
    Also if you feel that the field is of 13 characters and that would cause a problem dont worry... create a dummy field eg split tht 13 to two fields and use the common one as key field Value and identifier... as i see in ure case its like 500 Supplier , 502 Supplier . u can split the first 4 char and the remaing 9 char are key field value.
    try this out
    Rgds
    Aditya

  • Synchronous file adapter sender side configuration in sap pi

    Hi Experts
    synchronous file adapter sender side configuration in sap pi
    can you explain any one tell me step by step procedure?
    Regards
    Sagar

    Hi,
    You can use RequestResponseBean in the sender file adapter module .
    RequestResponseBean (SAP Library - SAP Exchange Infrastructure)
    Request/Response Bean for IDOC_AAE adapter
    Instead of IDOC_AAE adapter you can use FILE adapter.
    Regards,

  • How to configure JDBC Adapter(Sender & Receiver)

    How to configure JDBC Adapter(Sender & Receiver)
    Rgds
    Ruchitha

    Hi ruchitha thakur ,
    These r the following web-sites which give u detailed information about configuring of JDBC Adapter(Sender & Receiver)
    JDBC is a technical Adapter provided by SAP.
    Configuring the Sender JDBC Adapter
    http://help.sap.com/saphelp_nw04/helpdata/en/7e/5df96381ec72468a00815dd80f8b63/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/1d/756b3c0d592c7fe10000000a11405a/content.htm
    Configuring the Receiver JDBC Adapter
    http://help.sap.com/saphelp_nw2004s/helpdata/en/b0/676b3c255b1475e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/64/ce4e886334ec4ea7c2712e11cc567c/content.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/6d36d51d-0b01-0010-b3aa-9cb313b63cf4
    SAP XI Utilize SAP Adapters to connect to heterogenous systems
    https://wwwn.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3fc4bd90-0201-0010-68bd-ab931b06f9c2
    cheers!
    gyanaraj
    ***Pls reward points if u find this useful

  • Get File Name in UDF from file adapter sender

    Hi,
    I've looking for this solution, but I couldn't find any usefull information.
    I want to obtain the name of the file, sended by the file adapter.. and later use it in the mapping logic.
    I've readed about sustitution... any help?
    Thanks.

    HI Stortoni,
    Take a look at these blogs:
    http://wiki.sdn.sap.com/wiki/display/XI/CombiningthreedifferentaspectsofPIinoneshot
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    /people/sap.user72/blog/2005/07/15/copy-a-file-with-same-filename-using-xi
    Regards,
    ---Satish

  • File Adapter - Sender Problem

    Hi,
    While implementing a file to file interface I am facing problem in Integration Engine. Data is not passing to Integration engine, so it is not able to reach receiver.
    Receiver file adapter is working fine for other scenarion like IDoc to File.
    File Adapter status is Green in RWB.
    I am not able to see message in SXMB_MONI
    The error details in Adapter Engine is bellow
    Audit Log for Message: 410424a0-c496-11da-aa48-00111120e6db
    Time Stamp Status Description
    2006-04-05 16:51:37 Success Channel file2file_in_channel: Send binary file  "D:\usr\sap\QN7\DVEBMGS00\work\XiPattern2\testfile2in.xml". Size 209 with QoS EO
    2006-04-05 16:51:37 Success Application attempting to send an XI message asynchronously using connection AFW.
    2006-04-05 16:51:37 Success Trying to put the message into the send queue.
    2006-04-05 16:51:37 Success Message successfully put into the queue.
    2006-04-05 16:51:37 Success The application sent the message asynchronously using connection AFW. Returning to application.
    2006-04-05 16:51:37 Success The message was successfully retrieved from the send queue.
    2006-04-05 16:51:37 Success File "D:\usr\sap\QN7\DVEBMGS00\work\XiPattern2\testfile2in.xml" deleted after processing
    2006-04-05 16:51:37 Success The message status set to DLNG.
    2006-04-05 16:51:37 Error Transmitting the message to endpoint http://sapep:50000/sap/xi/engine?type=entry using connection AFW failed, due to: Received HTTP response code 404 : Not Found.
    2006-04-05 16:51:37 Success The asynchronous message was successfully scheduled to be delivered at Wed Apr 05 16:56:37 GMT+05:30 2006.
    2006-04-05 17:01:37 Success The message status set to WAIT.
    2006-04-05 17:06:37 Success Retrying to send message. Retry: 3
    2006-04-05 17:06:37 Success The message was successfully retrieved from the send queue.
    2006-04-05 17:06:37 Success The message status set to DLNG.
    2006-04-05 17:06:37 Error Transmitting the message to endpoint http://sapep:50000/sap/xi/engine?type=entry using connection AFW failed, due to: Received HTTP response code 404 : Not Found.
    2006-04-05 17:06:37 Error The message status set to NDLV.
    Please suggest the solution.
    Is there any place where I can find the exact error log?
    Thanks,
    Smita.

    Hi,
    I found there was a problem with HTTP port in the URL. After fixing this, I am able to see the message in SXMB_MONI. But it is with an error. The error details is as bellow.
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Adapter
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="INTERNAL">AE_DETAILS_GET_ERROR</SAP:Code>
      <SAP:P1>af.qn7.sapep</SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>no_messaging_url_found: Unable to find URL for Adapter Engine af.qn7.sapep</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Error when reading the access data (URL, user, password) for the Adapter Engine af.qn7.sapep</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    In RWB->Adapter engine there is a success message, But in the RWB->Integration Engine there is an error with Error Code : AE_DETAILS_GET_ERROR.
    Please suggest how to fix this. I am able to logon to XI system with user XIAFUSER.
    Thanks,
    Smita

  • Reading severl files in file adapter sender

    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

    >>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.

  • Polling by file adapter (sender) with FIFO functionality

    Hi,
    here are one question:
    What happen if, for example, the sender system generates multiple files with the same timestamp (HH:MM:SS), or the file adapter on XI is stopped for a moment, and then, when activated, in the source directory (polling directory) there are many files? How can XI handle the correct sequence of messages? Is this impossible. How XI poll on a file (sender) - what is the logic? The files should be polled by FIFO.
    Thanks in advance.
    Regards
    Frank

    Hi,
    There is a logic called EOIO. Its exactly once in Order (EOIO). It takes care of all these iisues. Also XI gurantees the delivery of files.
    Refer these links
    http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm
    Regards
    Aashish Sinha
    PS ; reward points if helpful

  • File adapter (sender) module throws exception, but adapter proceeds again

    Hello dear reader,
    I wrote a module that converts a flat file into XI-XML and tested it within the file adapter. It works fine so far. But if I force the module to throw an exception to handle an erroneous flat file, the file adapter tries to proceed the erroneous file again and again. Not very nice, isn´t it?
    Has anybody an idea, how to configure the file adapter to stop the processing of an erroneous file?
    Thank you in advance
    Yours
    Frank Waskow

    Hello Satish,
    the weblog doesn´t describe my problem correctly. Let me show you the Audit Log from the Messeage Display Tool of the Adapter Engine:
    Audit Log for Message: 06ff54a0-a258-11db-b9e2-003048226013
    Time Stamp     Status     Description
    2007-01-12 16:14:49     Success     Send text file "Invoice_error_wf.edi" from FTP server "HH-168:/XI_Infotag_Testdaten/EDIX/In", size 27993 bytes with QoS EO
    2007-01-12 16:14:50     Error     Attempt to process file failed with null
    2007-01-12 16:15:00     Success     Send text file "Invoice_error_wf.edi" from FTP server "HH-168:/XI_Infotag_Testdaten/EDIX/In", size 27993 bytes with QoS EO
    2007-01-12 16:15:00     Error     Attempt to process file failed with null
    2007-01-12 16:16:00     Success     Send text file "Invoice_error_wf.edi" from FTP server "HH-168:/XI_Infotag_Testdaten/EDIX/In", size 27993 bytes with QoS EO
    2007-01-12 16:16:00     Error     Attempt to process file failed with null
    2007-01-12 16:17:00     Success     Send text file "Invoice_error_wf.edi" from FTP server "HH-168:/XI_Infotag_Testdaten/EDIX/In", size 27993 bytes with QoS EO
    2007-01-12 16:17:00     Error     Attempt to process file failed with null
    2007-01-12 16:18:00     Success     Send text file "Invoice_error_wf.edi" from FTP server "HH-168:/XI_Infotag_Testdaten/EDIX/In", size 27993 bytes with QoS EO
    2007-01-12 16:18:00     Error     Attempt to process file failed with null
    It seems to me that the Adapter gets the error of the module, but it is not handled as an error like shown in the blog <a href="/people/sap.user72/blog/2005/11/29/xi-how-to-re-process-failed-xi-messages-automatically:///people/sap.user72/blog/2005/11/29/xi-how-to-re-process-failed-xi-messages-automatically.
    The adapter tries to proceed the same file again and again, till I delete it from the source directory.
    Any more idea?
    Frank

  • 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,
    Chad

    Is 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 adapter sends return message to SOAP adapter

    Hi,
    I have managed to send a message using a SOAP sender adapter to a file using the file adapter. The respective message is written to a file. Though both adapters are configured to work in an asynchronous way, the file adapter seems to try to return as message. This results in an error message: "Das Interface-Mapping ... ist nicht im Laufzeit-Cache vorhanden". I have updated and checked the runtime cache. The respective mapping program is available and working, since the file adapter writes the send date to the file. So why this message?
    Kind regards,
    Heiko

    The file adapter replies the sent message, when it is addressed in sync mode.
    Set in the SOAP sender channel the Quality-of-Service to Exactly-Once to avoid this behavior.
    Regards
    Stefan

  • No suitable sender agreement found - File / Adapter, Sender FTP

    Hi SDN Friends,
    Is my first time in PI with FTP / FILE ( really I'm newbie in PI - but 2 years in ABAP ).
    I have configurated my communication channel with and FILE/ADAPTER on a Sender FTP...
    I have Tried with 2 FTP, one in my PC, and one Public... but in both cases, it's doesn't works... monitoring my communication channel, I get the No suitable sender agreement found ERROR....
    I thought... may be PI has not access to the FTP's servers, so run in SAP PI server, an ABAP program trx se38, program: RSFTP002 and with this, I could connect to the FTP...  it works perfectly.
    so I don't understand... what I'm doing bad?
    Any Help?
    regards every body!

    u r welcome...2 yrs back i am newbie
    when ever we make changes after an error, sometimes XI will not take the changes in cache automatically; uses old one. solution for this is complete Cache refresh.
    welcome to Integration World have fun....

  • Acknowledgment not possible ..File adapter ..receiver side

    Hi XI Friends
    In my Simple IDOC to File Scenario...
    i am getting successfull meessage in SXMB_MONI.but in sxmb_moni ,the acknowledgment status is not possible.
    my inbound inteface is of file and asynchrounous type.
    how can i get acknowledgment .
    please guid me.
    thanks and regards
    Ram

    Hi,
    File adapter does not support  Application Acknowledgements.
    In your case, turn of the Acknowledgements, by adding the entry in the table <b>IDXNOALE</b> in XI  for the Sender Port and idoc type. After this, the Acknowledgement column in MONI will be empty.
    Regards,
    Bhavesh

Maybe you are looking for