SFTP receiver File channel

Hi,
I am doing a simple file pass through using PI (File-PI-SFTP) and not using ESR.
I have two requirements -
1. The target file name should be in the format xyz_yyyymmdd.dat
The standard function with the receiver SFTP channel is to get the timestamp but I don't require timestamp.
Could anyone please let me know if I can get the file name format (xyz_yyyymmdd.dat) without using any mapping?
2. I am using certificates, but still the channel requires a User Name (it is a mandatory field). I am unable to understand why I need User Name even if I am using certificates? Is there a way of avoiding that?
Any help will be highly appreciated.
Thanks,
Abhi

Question 1
Have you seen this wiki page?
http://wiki.sdn.sap.com/wiki/display/Snippets/DynamicfilenameinaFiletoFilepassthroughscenario
2. I am using certificates, but still the channel requires a User Name (it is a mandatory field). I am unable to understand why I need User Name even if I am using certificates? Is there a way of avoiding that?
You might want to try anonymous ssl mode. This might not require credentials. But certificate authentication looks for the user credentials. Take help from BASIS.
Edited by: Baskar Gopal on Mar 6, 2012 4:53 PM

Similar Messages

  • Receiver File channel for XML files: with carriage return

    Hi all,
    we are using a receiver FILE channel to generate an XML file that is sent to an external partner.
    The XML file looks good in a parser (IExplorer). But in fact there are not carriage return / line feeds between the XML tags
    of the XML payload in the file.
    Our partner now requires the XML file in a more vertical structure which means: for every tag a separate line (like it is displayed in a parser)
    Does anybody know a more general way to convert to a vertical XML structure (so with carriage return line feed).
    There is one entry in the SDN dealing with this topic but suggesting using an UDF. I think this is a very specific way.
    I don't think it is a good way to change/enhance the message mapping just because of a general formating change.
    Is it better to use an XSLT mapping as a second step in the interface mapping or a JAVA adapter module to convert ?
    any experiences? suggestions? examples?
    Thank you very much
    best regards
    Hans
    examples:
    original by XI receiver FILE adapter
    <?xml version="1.0" encoding="UTF-8"?>
    <MT_batchStatus><type>BS</type><header><message><messageSender>SENDER</messageSender><messageDate>20090723143720</messageDate> ... and so on
    required:
    <?xml version="1.0" encoding="UTF-8"?>
    <MT_batchStatus>
    <type>BS</type>
    <header>
    <message>
    <messageSender>SENDER</messageSender>
    <messageDate>20090723143720</messageDate>
    ... and so on

    >
    Hans Georg Walter wrote:
    > Is it better to use an XSLT mapping as a second step in the interface mapping or a JAVA adapter module to convert ?
    > any experiences? suggestions? examples?
    In such a case, the best is to write an generic XSLT or Java mapping that will attempt to do the pretty printing/formatting of the xml.
    The advantage of a generic one is that you can reuse the same class/jar for many other scenarios.
    so the flow will be as below in your interface mapping;
    1. your specific source to target mapping
    2. the generic formatting class

  • Receiver file channel with ANSI format.

    Hi,
    I have developed file to file scenario for which sender file format is unicode and receiver file format is ANSI.
    There is no FCC at sender and receiver site. In interface we are just bypassing the file in PI, there is no ESR objects.
    I have configured sender channel for unicode in following way:
    File Type : Text
    file encoding : UTF-8
    I have configured receiver file channel for ANSI in following way:
    File Type : Text
    file encoding : i have tried with cp1252 and ISO8859-1
    When I run the interface I received receiver file in ANSI format. But when I open that file in notepad the content in the file is having spaces in between 2 characters like below.
    V O L 1 0 0 0 0 0 9
    Is any bady having idea about this problem?
    Thanks.
    Edited by: darshana-PI on Jan 23, 2012 6:32 PM

    Hi,
    The blanks in your target file might be created because your source file is encoded with UTF-16, not UTF-8. Try using one of these as an encoding in sender communication channel:
    UTF-16BE (16-bit Unicode character format, big-endian byte order)
    UTF-16LE (16-bit Unicode character format, little-endian byte order)
    UTF-16 (16-bit Unicode character format, byte order)
    Hope you'll find this useful,
    Greg

  • Receiver file channel-FTP

    Hello All,
    Scenario is Outbound(ECC to FTP).
    Below is the steps in audit log of Receiver file adapter:
    12.07.2011 03:30:07 Information Write to ftp server "AAAA", directory "'DEV'",   file "DEV.OUTPUT>XML".
    12.07.2011 03:30:07 Information Transfer: "TXT" mode, size 55 bytes, encoding ISO8859-1.
    12.07.2011 03:30:07 Information 200 SITE command was accepted
    12.07.2011 03:30:07 Information File processing finished.
    12.07.2011 03:30:07 Information MP: leaving
    12.07.2011 03:30:07 Information The message was successfully transmitted to endpoint <local> using connection File_http://sap.com/xi/XI/System.
    12.07.2011 03:30:07 Information The message status was set to DLVD.
    In step3, It is saying 200 SITE command was accetped. But I didnt mention any UNIX command in my receiver file channel(FTP
    transport protocol).
    Can someone tell me from where is this coming or is it a default one?
    Thanks,
    Regards,
    Moorthy

    Hi
    Please see the DOC for SITE Command:
    SITE command is used by the server to provide services specific to the system. Most of the SITE commands can be used by the admin only. You can get all the available SITE commands by "SITE HELP".
    http://incubator.terra-intl.com/projects/ftpserver/site_cmd.html

  • 'Use Temporary File' in Receiver File channel

    hi all,
    I am facing a strange issue with receiver file channel which I am not sure if somene had already faced. I couldnt find any help from blogs..!
    I have configured the Receiver File channel with Write mode as  'Use Temporary File'  with a temporary file name(say tmp.xml)  scheme and Empty-Message Handling set to 'Write Empty File'
    When the scenario is executed, its so happening that the temporary file of 0 bytes(empty file) is being created as tmp<msgID>.xml before the actual file is being completely written. It is expected that once the Actual file is completely written, the tmp file should be deleted, but here is not the case.Thus causing both the files being present in the target location. This is not happening often though.
    As the receiving application is processing all files from the target direcotry, the file is getting errored out in the target application.
    I think the 'Write Empty File' has nothing to do with this as the option 'Write Empty File' is for empty payloads resulting from the message mapping.
    Please correct me if am wrong and also provide me the inputs on my issue. Am on PI7.0
    thanks in advance,

    Hi Tilak,
    this is real time interface
    real time by using a file... that's a non-sens according to me. You should use a non physical solution (web service, JMS, JDBC, etc...) but a not a file. well... Anyway, you can image that the receiver application schedule the folder every 30s or every 1min, that's almost a real time. Real time is mainly a conceptual view (only synchronous exchange needs really real time). Morevoer, if you really wanted a real time, you should not add a tool like PI (or other) between your source and your target system, the more we have systems, the less it's efficient (in term of delay and response time!).
    Even if we propose that the receiver application should have a condition to its script to avoid picking the tmp*.xml files, after a period of time there would be a chance that the *tmp files may increase in number..
    No ! coz if my theory is good, if your receiver application does not pick-up tmp.xml, that means this file is not currently treated and so PI is authorized to delete it. So no increase of tmp.xml files in this folder.
    Another solution: to create the target file without option "temporary", but to create it in another folder than this one scheduled by your receiver application, and use an OS command AFTER processing, in your receiver CC, which move the created file from the "temp" folder to the target folder.
    [http://wiki.sdn.sap.com/wiki/display/XI/SAPXIFileAdapterOSCommandLine+Feature]
    regards.
    Mickael

  • Error in Receiver File Channel...in MTB module     (Urgent)

    Hi,
    I am working on a Proxy to File scenario. I am using Message Transformation Bean in receiver file channel to convert xml file into fixed length file. I am getting an error : Transform: failed to execute the transformation: com.sap.aii.messaging.adapter.trans.TransformException: Error converting Message: java.lang.Exception: Exception in XML Parser (format problem?):java.lang.NullPointerException'; nested exception caused by: java.lang.Exception: Exception in XML Parser (format problem?):java.lang.NullPointerException
    in MTB step of audit log for comm channel.
    Please help me resolve this.
    Thanks,
    Jaya

    Hi ,
      "Transform: failed to execute the transformation:"
    Pls check ur data what u have to send .. any missing information or any special Chacters or any extra fields are available in the data, this type of transformation error raised.
    check once again ur mapping transformation and test the mapping in INTEGRATION REPOISTERY with the same data(what u have to send Previously).
    and also check ur adapter status in RWB.
    Regards,
    Sateesh N.
    Edited by: Sateesh N on Apr 21, 2008 1:53 PM

  • Error :Receiver File Channel not Initialized

    Hi all,
    I am using a file adapter at the receiver side with file content conversion option. When i post a message it shows an error in the message monitoring as "Reciever File Channel not initialized : Unable to proceed : null"
    Please Help.....

    Hi,
    Check if the adapter is active or
    check on this thread:
    File Adapter Not Initialized Error
    the error might be due to FCC. Jsut remove that and see ift he adapter works.
    Regards
    vijaya

  • Can we archive files using the receiver file channel

    Dear all,
    I'm looking for a option, where in I want to archive the files being sent to the target system.
    Do we have that facility in XI Receiver File communication channel.
    Can the same be achieved for JMS Receiver channel.
    Kindly give your comments or responses.
    Regards,
    Younus

    Hi,
    AFAIK only the sender file adapter has such a functionality.
    A workaround would be to send the file to a second receiver (for example a archive directory on your PI server).
    Regards
    Patrick

  • Receiver File Channel is green but not working

    Hi,
    I have a service which receives the data form a sender channel and send the same data after content conversion to a reciever channel.
    In the communication channel monitoring I can see the log for the sender channel and the processing log is displayed even if no file is there in the specified location for the channel to pick up.
    For the Received channel, no processing log is being displayed and it is not processing the file even though the same service is being used.
    What am i missing here?
    Can you please advice?
    Regards,

    Hi! Archana,
    Just check once again the below mentioned steps..even though u have configured correctly...
    Do one thing..
    1) go to Rwb > Component Monitoring>Select Adapter Engine> below that Select TEST MESSAGE tab-> there enter your PAYLOAD and also give your scenario details once again and try to test the scenario again.
    2) You can also do the same test at the Integration Engine level instead of selecting Adapter ENgine u need to seleect Integration Engine ok
    3) By doing this the PI Server will took the payload directly from the RWB instead of Sender  ADapter so that you can come to know where exactly you strucked whether at adapter engine or Integration Engine level.
    4) Also you can check your messages in the below URL at MEssage Display tool other than SXMB_MONI and RWB in detail..
    [http://Host:Port/MessagingSystem/monitor/systemStatus.jsp]
    5) Also monitor your message at Ingration as well as Adapter Engine level in Message MOnitonig at RWB.
    6) Try to check both the queues at SMQ1 and SMQ2.
    7) If possible refresh your CACHE once at SXI_CACHE.
    Regards::
    Amar Srinivas Eli

  • Multiple Locations in Receiver File channel

    Hi Experts,
                      Can i give multiple locations to pick the file in receiver filec hanel depending on some condition.
    Thanks
    Ajay Garg

    Hi,
    Definately you can....
    in sender Communication channel check the ADVANCED SELECTION FOR SOURCE FILES.......
    Thanks,
    Madhu

  • Variable Substitution in Receiver File Channel

    Hi All,
    Could you kindly help me with this?
    Mine is File to File Scenario. ECC drops a XML file in AL11 directory and i send that file using FTP to a third party system. There is no mapping involved and i use ICO. I need to get a value from the payload dynamically for using it in my file name.
    When i tried to use Variable Substitution Method i get this error : VariableDataSourceException: Caught SAXException while parsing XML payload: Content is not allowed in prolog.
    This is the reference i have given in my variable substitution : payload:customerelement,1,customer,1,sender,1,dealercode,1
    and my XML structure is as below and i am trying to access the dealercode field in the XML.
    <?xml version="1.0" encoding="UTF-8"?>
    -<ns0:CustomerElement xmlns:ns0="http://www.xxxxxx.com/customer">
    <recordCount>34</recordCount>
    <Customer>
    <Sender>
    <transmitDate>ddmmyy</transmitDate>
    <dealerCode>N050</dealerCode>
    <DMSSystem>ABC</DMSSystem>
    <DMSReleaseNumber>1.0</DMSReleaseNumber>
    </Sender>

    Hi Amit,
    Yeah that is correct. But in my case the XML structure was not properly formed and i hwas frequently getting this error " Content is not allowed in Prolog" for which i tried all the solutions in SDN and nothing worked out. So i had no other option and had to go for adapter module.
    Now the issue is solved and the interface is working as expected with the adapter module.
    Thanks for your valuable inputs.
    Regards,
    Prabhu V

  • Capture Ackonwledgment from receiver file channel

    Hi Friends,
    I'm doing a scenario proxy-> file and then mail. I have to post a file to ftp folder and if the posting is succesfull I have to trigger a mail.
    I have tried this using bpm since I have decison step in between. I'm using send step with transport ack, but I'm not able to capture the acknowledgment status message. I need this to chk the status and then trigger another  send step for mail.
    Please suggest how do I do this and is this possible without bpm.
    Thanks in advance.
    Pragati.

    Hi,
    the code to ask for technical ack is here:
    http://help.sap.com/saphelp_nw04/helpdata/en/f4/8620c6b58c422c960c53f3ed71b432/content.htm
    so is the part at the end to query ack and you should get the details with get_status_detail( )
    then you can send the mail
    Regards,
    Michal Krawczyk

  • Problem in File Channel

    Hi,
    I have a scenario whice is split in two parts (to be precise two saperate scenarios execute).
    In the first one file is received from a SOAP channel as attachment, and through a receiver file channel it is sent to a local folder in XI.
    In the second Interface, a File channel picks that files and througha SOAP channel sends it to the third party.
    Now the issue is,
    In the first interface the size of the file received and size of the file sent to XI folder is same, means no truncation is there.
    But when the File is picked by the file channel in second interface, the file gets trucated and it only picks a part of the file.
    Other interfaces are dealing fine with any file size, but only this particular interface is truncating data.
    Any help on this will be appreciated,
    Thanks,
    Vikas

    Hi Vikas,
          I dont know why you designed interface like 2 flow,you can avoid one interface as per question
    SOAP---->SAP PI----->File
    File-->SAPPI---->Receiver.current flow,
    you can make it SAOP--->pi--->Receiver,but i dont know why you developed as two flows..coming to truncation problem i  dont think problem with communication channel,my advice to you check in Moni Outbound payload,if it is taking whole message then the problem with Maping,some where you done wrong.
    else
    first open the content of the file in wordpad and see,and check communication details.
    Regards,
    Raj

  • Unable to Receive Files at the Receiver end

    Hello All,
    I have configured scenario Proxy to File with 1:2 transformation (Interface collections) ie
    1 Sender and  Receiver Service
    1 Sender interface
    2 Receiver interface
    1 Message and interface mapping
    1 Receiver determination
    1 Interface determination
    2 Receiver file channel with FCC
    The QoS is Exactly Once.
    My scenario is failing at Adapter Engine (Receiver end) failing to create 2 text files.
    My Question is
    1. The Status of the File Receiver channel in monitoring are in error status displaying "Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error: invalid receiver channel 'a3478068e95133a8ad28777a3fe1344d'" What is the reason for this ? I checked the Cache update and cache is upto date.
    2.In SXMB_MONI , When Checked the trace part of Receiver Determination it correctly displays
    "<Trace level="2" type="T">Number of Receivers:1</Trace> "
    But when i checked Trace for Interface Determination it is displaying " InterfaceCollection</Trace>
      <Trace level="2" type="T">...valid InbIf without Condition: InterfaceCollection</Trace>
      <Trace level="2" type="T">Number of receiving Interfaces:1</Trace> "
    Here it should display "Number of receiving Interfaces:2 " Right?   What is the reason for this ? do we have todo multimapping?
    3.In Message monitoring for Adapter Engine i could see messages in Holding state. what is the specific reason in his case (I know the literal/functional meaning) of messages going to holding state  . "Maintain Order at Runtime" is checked in Interface Determination?
    May I know in which situation the messages would goto into holding state (isit because IE was not able to find 2 receiver interface)  and without unchecking the "Maintain Order at Runtime" option and manual intervention isit possible to process the scenario successfully?
    Many thanks in Advance .
    Regards,
    Pavithra

    Hello Ninad,
    Since I am using EHP 1 SAP NetWeaver PI 7.11 , there is no explicit option of selecting "Enhanced Interface Determination" ( Its understood implicitly through the Signature tab in Message mapping (1:n transformation)) and I have done multimapping as message mapping (In the mapping editor, switch to the Signature tab page) for my scenario
    The cache (AE) is perfectly fine
    I am noting down my observation here.
    My scenario uses QoS EO and the " Maintain Order at Runtime" option was checked. There were many System error messages due to other issues for the previous month and holding messages for this month.
    I guess due to this the channels were in  error though the channels' status were in green but it was displaying message " Message processing failed. Cause:com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error: invalid receiver channel '1ac04de4d1103d09b5b9c764c8895e98'"
    Now I filtered all the 'system error' messages with Sequence Id and deleted all of them and Resent all the holding messages and there were no message in holding .Now again i tried sending some data's ...the channel are functioning fine and no such error messages are displayed
    Regards,
    Pavithra

  • How to remove a node from a target xml payload in reciever file channel

    i have a scenario where i have to remove a node from my target xml file in receiver file channel and want xml as the output file. I don't want a fixed length file. How to do that in receiver channel? Do we need to use file content conversion for that?

    that will result in giving you a fixed file or a separator defined file.
    it will not give you an XML file.
    In case you want a XML file, instead of using variable substitution, use Dynamic configuration and adapter specific properties.
    Some ref:
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    http://help.sap.com/saphelp_nw04/helpdata/en/43/03612cdecc6e76e10000000a422035/frameset.htm

Maybe you are looking for

  • Committed budget and invoice in different years

    Hi, We cannot post invoices in fiscal 2012 if PO/entry sheet docs are open in fiscal year 2011 without Carryforward of Open Items. We have year of cash effectivity activated in our system and FM update profile 000359. Under the accrual basis of accou

  • I keep getting a ! next to my songs on iTunes. How can I fix that?

    I can play the songs on my iPod but when I want to play them on iTunes I can't. It tells me it can not be found. I found this solution on a posting .... There easy solution is; when you see the Would you like to locate it message, click on Yes and ma

  • I cannot "capture" the fullScreen display state

    Hi, When trying to get my head around another problem I have with altering content depending on whether the displayState is normal or fullScreen, I tried to set up a feedback/debug box that would send me messages about the displayState. I created a t

  • Shatter - tops and bottom of picture gets cut off

    When I use this slideshow the head of subject gets cut off when the subject is close to top of picture. I have tried re cropping but it just makes it worse. Is there anything I can do to prevent this from happening.

  • Cant sync with ITUNES PLEASE HELP!!!

    long story short i had to restore my iphone on a friends computer because mine was not working properly, then i brough it home to connect to itunes and my computer wont find my iphone. i have reinstalled the new itunes and nothing happened. my compte