Renaming a file in Sender channel

Hi, a newbie here.
I have to pick up a file via ftp from a system and put it into an R3. I have also to rename the file in the sender with another extension for backup.
Is there any way to do this without creating another communication channel?
Thanks in advance!

Hi Ifiaki,
If you are on SP15 or later, you can run Operating System Command Before Message Processing.
See the details at the below link.
http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm
Rgds,
Sam Raju

Similar Messages

  • File-XI-File:one sender channel, multiple receiver channels on same BS

    Hi !
    We need to send some files from one server to another. On the source, the filenames have a fixed prefix and a timestamp. On the target, the files should have a fixed name (time stamp trimmed). We would like to use one sender channel with the advanced file selection option and for example 3 receiver channels, each channel for each fixed filename. All destination channels are for the same business service. And because we do not need mapping, and want to improve performance, we don't use the repository.
    Is this possible? or because this only a 3 files scenario, we should make it as 3 different scenarios, each with its own sender and receiver channels?
    Thanks,
    Matias

    Hey
    >>But Ahmad, as mentioned in the blog, XI scenario without IR can be used only if it's non xml mesage. Is that right?
    can you please tell me where it says this:)
    is it this line which is confusing you <b>"Contrary to popular believe, the message or document sent thru XI does NOT have to be in XML format"</b> ?
    well it just means that you can send any data(.jpeg,.pdf xml .xls or anything) by doin the bypass scenario.
    IDOC's are something which can give u problems if you dont do IR steps(specially mapping)coz a lot of values need to be hard coded.but suppose ur doing a async File to RFC,then i guess you can do that by using the bypass scenario.
    i won't count on bypass scenarios for all of my requirements,but yeah if both source and target have exactly same data type i will give it a shot,irrespective of the interface i m integrating.
    Thanx
    Ahmad
    Message was edited by:
            Ahmad

  • File Sender channel stopped polling on FTP site

    Dear all,
    We have many file to Idoc interfaces running in production and all are they good.
    Yesterday we faced one issue, one of the interface's sender communication channel stopped polling and didn't picked the files from FTP.
    There was no error on communication channel monitoring and it is green.
    We stopped & started the channel then started picking the files. But this is not usual behavior of file adapter.
    We found one SAP Note 1083488, according to this note, we are in the latest SP level( PI 7.0 SP 14). So not required to apply this patch my case.
    What should i do to not to face next time
    Regards

    Hi Bhavana,
    Check the below Q & A.....
    >> Q: After configuring a large amount of File Adapter sender channels, the J2EE Engine becomes very slow and some services start to block. How can I solve this issue?
    A: Up to and including XI 3.0 SP13 each File Adapter sender channel permanently consumes a J2EE application thread. To solve this issue, increase the number of configured J2EE application threads using the SAP J2EE Engine Config Tool ("cluster-data" -> "Global server configuration" -> "managers" -> "ApplicationThreadManager" -> "MaxThreadCount").
    Starting with XI 3.0 SP14 / PI 7.0 application threads are allocated on demand by the File Adapter and returned to the thread pool after it has finished the polling sequence, so thread shortage situations will typically occur much more rarely than with earlier SPs.
    Also as said by Other SDN'ers check the locks.
    Thanks,

  • Chain interfaces to set file name in sender channel dynamically

    Hi,
    I have a requirement to use the Seeburger SFTP adapter to import a file from an external server to an SAP ECC system.
    The adapter must be Seeburger as the protocol has to be SFTP, not FTPS as with the File adapter.
    Although I can set a wildcard selection, I really want to poll for specific filenames with predetermined naming criteria.
    The sender SFTP communication channel doesn't provide any options to specify dynamic attributes but I wonder if I can link several interfaces together, please can you confirm if the following process would work conceptually:
    1) SAP ECC program runs and determines the fixed filename that I wish to import (e.g. file_abc123.xml).
    2) SAP ECC program calls an outbound proxy with a mapping to set the relevant parameter in dynamic configuration ('http://seeburger.com/xi' is the namepsace, 'dtSubject' is the parameter name for the filename of the SFTP adapter).  Besides mapping I think the Seeburger attribute mapper module could also be used to set this value.
    3) The outbound proxy is configured on the receiver side to call an SFTP sender channel (with a dummy/blank payload as we're only calling the interface to allow settng of the filename to take place) which links to an inbound service interface on the SAP ECC receiver side. 
    I don't know whether chaining of service interfaces in this fashion (receiving interface also being a sender) is a viable approach or whether there are any alternatives.
    Thanks in advance,
    Alan

    Hi Alan,
    Are the specific file names that you are polling for going to be changing or will they be fixed?  Are each of the unique names going to be processed using the same interface?  If so then I would just create multiple SFTP sender channels that poll at different intervals but use the same mappings, etc.
    Regards,
    Ryan Crosby

  • File Structure - Sender Communication Channel

    Hi All,
    My Sender flat file structure is below like this
    Filed1|Field2|Field3|Field4|Field5|Field6
    Filed1|Field2|Field3|Field4|Field5|Field6
    Filed1|Field2|Field3|Field4|Field5|Field6
    Filed1|Field2|Field3|Field4|Field5|Field6
    Filed1|Field2|Field3|Field4|Field5|Field6
    Filed1|Field2|Field3|Field4|Field5|Field6
    I did the Sender Communication Channel configuration  - Content Conversion
    Document Name : XXX
    Document NameSpace: XXXX
    Recordset Structure: MT_Test,*
    Recordset Sequence: Ascending
    Key field Type: String Case-Sensitvie
    MT_Test.fieldNames: Filed1,Field2,Field3,Field4,Field5,Field6
    MT_Test.fieldSeparator: '|'
    MT_Test.additionalLastFileds: ignore
    MT_Test.endSeparator : 'nl'
    ignoreRecordsetName: true.
    But its pick the file, In SXMB_Moni show Currect...
    But in Runtime workbench, in Communication Channel moni, it show below like this,
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:MT_Test xmlns:ns0="http://XXXXX">
    <JOBS />
    </ns0:MT_Test>
    What is the Issue, where i missed some thing, In message mapping, its correct..
    Thanks.
    SR

    SR,
    I am still little confused with your below statement.
    But its pick the file, In SXMB_Moni show Currect...
    But in Runtime workbench, in Communication Channel moni, it show below like this,
    >
    > <?xml version="1.0" encoding="UTF-8" ?>
    > - <ns0:MT_Test xmlns:ns0="http://XXXXX">
    > <JOBS />
    > </ns0:MT_Test>
    You mean to say that in MONI, the mapping output is fine, but when you check the output at RWB -> CC Monitoring for the Sender Channel, then you get the above mentioned XML?
    This means that there is nothing wrong with your source CC settings. If the entry in RWB -> Sender CC is wrong, your MONI entry will never be right. So, this is really weird.
    What is the source structure that you have defined in DT?
    Regards,
    Neetesh
    Edited by: Neetesh Raj on Sep 29, 2009 2:31 PM

  • MDM lookup parameters from File Sender Channel

    Hi SDNers,
    In my current assignment I am required to make an SAP MDM lookup in a JAVA Mapping to fetch certain details to further process the message.
    Currently the MDM server details along with user id and password are maintained in a properties file.
    During Migration from Development to Quality or from Quality to Production Environment this properties file needs to be changed and the mapping needs to be reimported individually in each environment.
    I want to avoid this cumbursome task of changing the properties file and re importing the Java Map on each environment.
    Is there any way to mention the following 3 parameters in the Sender Channel itself (in my case it is FIle Channel)
    Server IP Address, User ID, Password? so that the Java Map at runtime can access these parameters from the channel, as each environment will have different channel.
    I don't know if I can use ASMA or Additional Parameters for achieving this.
    Regards,
    Gautam Purohit

    Hi Michal,
    Can you please elaborate this?
    I need to give parameters like;
    mdm.repository.host=Development_Server
    mdm.repository.name=Development_Rep
    for all three environments.
    How can I achieve this using Value Mapping?
    Regards,
    Gautam Purohit

  • File sender channel - file name "null"

    Hi all,
    I am designing a scenario where I am reading 2 files from 2 different senders, and these 2 messages are fed to a multi mapping in BPM, which creates a single target message. I need to read the name of only one of the two source files and populate it in one field of the target message.
    I have read some blogs and forum threads about how to access the file name from the sender file channel. It calls for turning on the adapter specifc parameters in the channel and writing the following UDF (taken from Michal's blog #2664) -
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String ourSourceFileName = conf.get(key);
    return  ourSourceFileName;
    After doing all this, I am getting file name as "null". Can someone pls let me know the cause for this ? My concern is since I want to read only one file name, so I have updated only that specific file sender channel for adapter specific attributes.
    Regards,
    Shankar

    Hi Raj,
    I checked the ASMA for second channel also, but no luck
    I can see both the files names in their respective messages in SXMB_MONI under node 'Dynamic Configuration'. But the two messages enter the multi-mapping within BPM (where I have put trace to print the file name as per above code), the value is shown as "null".
    1) Is this file name access is possible only in simple scenarios ?
    2) Also, is the file receiver mandatory ? I have email receiver in my scenario.
    Any clues ?
    Regards,
    Shankar

  • 2 file to file scenarios and one sender channel

    hello there,
    i am implementing 2 file to file scenarios. referring to the below link i have 'by-pass' integration repository in order to perform my file to file transfer since both the input and output files have the same structure, hence no mapping is required.
    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=%28J2EE3417500%29ID0036662950DB01052533299951691312End?blog=/pub/wlg/4383 --> How to send any data (even binary) through XI, without using the Integration Repository
    as seen in the link provided above, it is mentioned to provide a 'dummy' interface and namespace as no such things were created in the IR.
    Now i have a second development which perform the same task(file 2 file) however the naming and source/target directory for the second one differs fromt eh first.
    that is for the first one the source directory is srcroot/folder1/ and for the secon one is  srcroot/folder2
    the  target for the first scenario is  trtroot/folder1 and second is trtroot/folder2.
    i wanted to use the same sender channel, making use of the advanced features to pick the files from the different directories, however the scenario always put my files, even those from srcroot/folder2, in the first target folder that is in trtroot/folder1 instead of trtroot/folder2.
    one easy way of doing this, is to create channels for each scenario, but if possible i want to use one sender channels for both, is that possible for my scenarios?
    can anyone please advise me?
    if there is a better way, you are welcome to share it with me.
    thank in advance.

    Hi,
    You can pick the data using same sender channel.
    But there are two ways of putting the files to their corresponding destinatios:
    1)Using 'Adapter Specific Message Attribute' in communication channel.
    But for this to work you have write UDF in your mapping, but as you are not using IR part, this approach can't be used.
    2) Another way is, you can use variable substitution method, where the values of the target directory is populated by payload of the incoming file.
    If this is not possible, then there is no way but to define 2 diffrent communication channels for receiver.
    -Supriya.

  • SAP XI File Adaptor (FTP mode) Sender Channel FTP commands

    I have a service set up to communicate via ftp to an external partner.  Their FTP server is secured to a point that I am unable to connect with normal settings.  They claim that the FTP server follows the RFC 959 standard and therefore we should be able to connect and extract a file from their server.  Not happening! 
    The question:
    What are the exact ftp commands issued by a Sender channel configuration to an external FTP server?  I have all the usual setting: user/pass/path/server/file (with wild card). 
    I can not find a definitive listing of commands issued by the file adapter in ftp mode to the remote ftp server.  Not just a listing but an actual flow of commands issued would be useful.
    Would appreciate some help/direction.
    Thanks,
    Mike

    Hi Michael,
      Please look at the FTP Server parameters...
    1) if you have given the uncheck the anonymous login they can connect with out giving the username and password to connect to the FTP server...please check this paramerter and also make sure that if are mainting the username and password it should be the same they are using to access the FTP server.
    2) Please check the port and ip address
      For more information i would suggest you to look at the following link:
      http://help.sap.com/saphelp_nw2004s/helpdata/en/0b/9a50465ccf84479e39a6d50c90fb3f/frameset.htm
       Could you please reply us what would be exact problem u r facing? 
      Thanks and Regards,
      Chandu.

  • File Content Conversion : Sender Channel

    Hi
      I am trying to do content conversion in the Sender Channel from a flat file to a XML.
    My Target XML(message structure) looks like
    <H1>
      <H2>
          <D>Detail Record</D>
          <L1>line</L1>
          <L1>line</L1>
      </H2>
      <H2>
          <D>Detail Record</D>
          <L1>line</L1>
          <L1>line</L1>
      </H2>
    </H1>
    Here the element <H2> is only needed to group <D> and the following <L1> elements of each new occurrence of <D>.
    Now my problem is that the element <H2> is not getting created.
    and the message after content conversion is looking as follows
    <H1>
          <D>Detail Record</D>
          <L1>line</L1>
          <L1>line</L1>
          <D>Detail Record</D>
          <L1>line</L1>
          <L1>line</L1>
    </H1>        
    What should I do to get the desired result.

    @Yes Bhavesh you  are right.
    Hi Jai,
           I am trying the other way round.i.e from flat file to a XML message.As I said I was trying to do it for Sender Channel where is the after content conversion I want a XML file.The example is a what I framed out of my actual problem.
    if flat file is as follows ,
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    DetailRecord1
    Line1
    Line2
    Line3
    DetailRecord2
    Line4
    Line5
    then the XML must look like
    <H1>
    <H2>
    <D>DetailRecord1</D>
    <L1>Line1</L1>
    <L1>Line2</L1>
    <L1>Line3</L1>
    </H2>
    <H2>
    <D>DetailRecord2</D>
    <L1>Line4</L1>
    <L1>Line5</L1>
    </H2>
    </H1>
    I identify the different types records in the flat file
    as follows,
    Record starting with "Detail" is considered as <D> element
    Record starting with "Line"  is considered as <L> element.
    Hope I did clarify.

  • MDM Sender Channel - reading file name

    Hi all,
    Is there any simple way to read the name of file sent by MDM when I am using MDM sender adapter ?
    I know if it's file sender channel, then we can read file name by writing a UDF. But just wondering about MDM sender adapter.
    Regards,
    -Shankar

    Hi Paul,
    you can always delete this inside your mapping:
    for instance trim the first 13 letters from /home/example
    then if your directory is always the same you'll have a filename only
    Regards,
    michal

  • File Sender channel polling successfully  but not picking the files.

    Hi All,
                    Can any one please provide any SAP Note  Or any Alert mechanism for the  File Sender channel in case where the XI channel in polling successfully at a particular folder from Source System  but not picking the files. Thanks in Advance for the solution.

    Hello,
                  If you want to know the reason for failure in picking up the file ,You can check the MessagingSystem monitoring for the reason behind failure.
    http://host:httpport/MessagingSystem/monitor/monitor.jsp
    For Alert may be you can follow prateek instructions.
    HTH
    Rajesh

  • File Sender Channel

    Hi,
    I have a job running which copies a file from remote server to my PI server. I have a file sender channel which picks up this file send it for further processing.
    Is there a way to make sure that the file sender channel reads the file only after it has completely been  copied from the remote server assuming that we dnt know what is the maximum time it could take to write the file.

    Two options,
    1. The script should write the file having set the indicator as read only. Only after it writes the file completely the read only option should be removed.
    the option ●      Process Read-Only Files (for transport protocol File System (NFS)) should be disabled
    2. Use this option,
    Advanced Mode
    To specify additional parameters in the adapter configuration, set the Advanced Modeindicator.
    ●      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 Protocoland then made an entry under Recordsets per Message that splits an input file into several messages.
    Note
    This parameter is applicable only for the File adapter. If you enter a value in this field when configuring the sender FTP adapter, it will have no effect.
    All above solutions will work only if its NFS and not FTP

  • File picked up by sender channel but not seen in CC monitoring nor in moni

    Dear All,
    It is a file to JDBC scenario where the sender communication channel picks up a file and sends it to several receivers interfaces ( 1 jdbc receiver channel). The file gets picked up by sender communication channel, but problem is that it does not get traced in communication channel monitoring, not even in message monitoring in RWB and SXMB_MONI. Thus no file processing. Sometimes this does not happen and the file gets traced in either of the monitoring tools. Please help as to why would this happen.
    The scenario works correctly at times. its configured correctly. Please guide.
    Thanks & Regards,
    Priyanka Salvi

    Hi,
    Thanks. No, archiving faulty source files functionaly was not used earlied.
    I enabled it by giving a path in the FTP server itself, but no files were placed there in the same case.
    Please give me some examples of OS commands.
    The file is picked up but it seems it is unable to read/forward for further processing.
    This is because after the file is picked up, no messages are found with the outbound interface as well in message monitoring.
    I am manually placing the file at the required path and the procsessing mode in CC is delete.
    The receiver determination and all other configurations are correct.
    I had tried by creating a new sender CC and deactiving the earlied one. Using this files were picked up and processed for few days and now again the same problem.

  • Issue with archiving in file sender channel

    Hi Experts,
    We have configured a file to  ABAP proxy scenario in our production PI  7.0 system. the  file sender  communication  channel  is configured to perform " file content conversion"    and archive the  source file  after it is processed successfully.
    Recently , the sender channel stopped archiving the files.  but it is processing them.
    we need the source files to be archived.  i do not see any  related error  in XI logs and default trace files . also it is not a problem with disk space on file system either.
    can you please let me know  how the issue can be resolved.
    Thanks.
    -Kaushik

    Hi
    Make sure that you have selected processing mode Archive
    Try by Checking Add Time stamp  check box.
    Check the Archive File path in correct format
    or put archive file in diffrent folder from which selecting file.

Maybe you are looking for

  • PI 7.1/RWB/Component/Monitoring/Adapter Engine/Test Message/403 Forbidden

    Hello guys! During performing PI 7.1 Readiness Check I have to perform a test message under Runtime Workbench\Adapter Engine\Test Message. After processing i receive following error: Error while sending message: 403 Forbidden. Does anybody know the c

  • Call function inside running class

    Hey All, i have a two question in classes. 1- i have class and i called its before and its running on runtime. i need to call function inside this class from another class, but without call the first one again, because if i called it, it will run def

  • Stabalizing - Within the workflow (procedural question)

    Hi, As mentioned before, we are shooting miniature models for our project. Some of the models are attached to rigs that will allow them to move up/down, left/right, or rotate 180degrees on one axis. We have several choices of points where we attach t

  • Add item "save page as" to the tool bar line

    I want to add the item "save page as' [CTRL+S] to the toolbar line. If I right click the line then click customize that function is not listed in the Customize Toolbar box. Where can I find it again so I can add it as I did with the printer icon?

  • Open a BEx Analyzer Workbook from a Web Application Template

    Hello All, I want to open a BEx Analyzer Workbook from a Web Application Template. My vision is, that I have got a Button in my Web Application Template and when clicking on it a Web Analyzer Workbook opens. The Analysis Item in the template and the