Archiving files in the Receiver File Adapter

Hi All,
I am trying to archive the file created in the Receiver File adapter. Reading from the link below,
http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
I gave the command cp %F <target dir> in the Command Line of "Run Operating System Command After Message Processing". As well as I tried cmd.exe copy %f <target file>
But it does not work. Can anyone please help me out?
Thanks
Shivanjali

Hi Aamir,
For my case its not feasible to make a bat file...
I want to write a direct OS command in adapter only.
Do you know what is the basic difference for running OS command before processing and after processing.
In my opinion if i use a OS command after file processing then it ll take a file name with timestamp so there may be a problem...
thanks
Shivanjali

Similar Messages

  • Retaining the FileName in the Receiver FTP adapter

    Hi experts,
    I have a situation here, were i need to retain the FileName in the message header in the receiver FTP adapter.
    I have tried using variable subtitution but seems the FileName is not supported in variable substitution.
    Please help
    Thanks

    Hello,
    if you need file name to be retained in the receiver adapter from the sender side. then u can do that by dynamic configuration using adapter specific message attributes, check this blog for details-
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    if you dont have a mapping in your interface to use dynamic configuration, then you can do it via adapter module also- have a look here, /people/sap.user72/blog/2005/07/15/copy-a-file-with-same-filename-using-xi
    regards,
    francis

  • In what QOS does the receiver SOAP adapter work BE or EO?

    Hi,
    In what QOS does the receiver SOAP adapter work BE or EO?
    My guess is that it is by default EO, if so how do i make it work like synchronous?
    There is no option to set it explicitly.
    Thanks]
    Shakthi

    Siva,
    In receiving adapter you can't set the status. The receiving QOS is set in the pipeline by using the Sender Comm.channel QOS.
    So for example in SOAP to SOAP scenario, if you set the Sender comm.channel as BE, then through out the Pipeline till it reaches the Receiver Comm.channel the QOS will be considered as BE only( Even though you didn't explicitly said to the Receiver comm.channel).
    Hope it helps!
    raj.

  • Error with the Receiver JMS Adapter (Connection On-Demand feature)

    Hi,
    In high volume we are experiencing errors with the Receiver JMS Adapter and the connection On-demand feature:
    Adapter Framework caught exception: while trying to invoke the method com.sap.aii.adapter.jms.api.connector.DisconnectorListener.notifyEvent(java.lang.String) of an object loaded from local variable 'listener'
    Delivering the message to the application using connection JMS_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: while trying to invoke the method com.sap.aii.adapter.jms.api.connector.DisconnectorListener.notifyEvent(java.lang.String) of an object loaded from local variable 'listener'.
    The message status was set to WAIT.
    Looks like the message is successfuly reprocess after the wait period but the ALEAUD/Akcnowledgment are not successful in the sender ECC system. (SAP -> PI - > JMS)
    Any idea?
    PI 7.1 EHP1
    Thanks,
    Martin
    /people/sunil.ojha5/blog/2010/08/31/review-of-sap-pi-jms-adapter-on-demand-connection-feature
    Edited by: Martin Lavoie Rousseau on Jun 3, 2011 3:21 PM

    Please ensure to have specified an User and password to connect to JMS server (don't leave the fields empty).

  • QUESTION abt "SQL_DML" of the Receiver JDBC Adapter

    HI ALL,
    i hav a doubt abt "SQL_DML" of the Receiver JDBC Adapter.
    i wanna use two SQL Statements in the "SQL_DML" structure to manipulate two tables.
    i.e.
    <root>
      <stmt>
        <Customers action="SQL_DML">
          <access>
                          INSERT INTO Customers VALUES (u2019$NAME$u2019, u2019$ADDRESS$', '$KEYFIELD$u2019);
                          INSERT INTO Companys VALUES('$NAME$')    
          </access>
          <key>
            <NAME>Company</NAME>
            <ADDRESS>Street 3 </ADDRESS>
            <KEYFIELD>CO</KEYFIELD>
          </key>
        </Customers>
      </stmt>
    </root>
    BUT i cant ascertain if it permit like this writting above ??
    Requset help in this regards.
    Thx in advance.
    brian

    Hi,
    You need to have two different statements. Each for one insert query. Your query will come under access tag and palceholders under kay tag. Action will remain same as you have given, but under both statements.
    Ex:
    <root>
    <stmt1>
    <Customers action="SQL_DML">
    <access>
    INSERT INTO Customers VALUES (u2019$NAME$u2019, u2019$ADDRESS$', '$KEYFIELD$u2019);
    </access>
    <key>
    <NAME>Company</NAME>
    <ADDRESS>Street 3 </ADDRESS>
    <KEYFIELD>CO</KEYFIELD>
    </key>
    </Customers>
    </stmt1>
    <stmt2>
    <Customers action="SQL_DML">
    <access>
    INSERT INTO Companys VALUES('$NAME$')
    </access>
    <key>
    <NAME>Company</NAME>
    </key>
    </Customers>
    </stmt2>
    </root>
    Hope this helps.
    Regards,
    Siddhesh S.Tawate
    Edited by: siddhesh tawate on Apr 24, 2009 8:10 AM

  • Rename the zip file and send it using the Receiver Mail Adapter

    Hi,
    We have a custom module that will create multiple attachments. The result is then passed to the PayloadZipBean, which zips as per required.
    When we output this to a file adapter, we provide the file name as say "zippedfile.zip" the result is as expected.
    For example, if the custom module created 3 attachments with the names as file1.txt, file2.txt and file3.txt, the zip file zippedfile.zip, will contain 3 files as file1.txt, file2.txt and file3.txt.
    The issue that we are facing is when we use the mail adapter, the zip file is getting renamed to file1.txt.zip i.e to say that it takes the name of the main payload from the custom module (file1.txt)
    TextPayload txtpayload = message.getDocument();
    txtpayload.setContentType("text/plain");
    txtpayload.setName("file1.txt");
    moduleData.setPrincipalData(message);
    We tried using the MessageTransformbean but it doesn't seem to change the name of the file.
    Not sure where we are going wrong. Is it that the output of the payloadzipbean cannot be used and altered by MessageTransformbean?
    Is there any alternative as to rename the name of zipfiles and use it in the mail adapter?
    Appreciate any help on this regard.
    Regards,
    Shabz

    Solved.
    use Transform.ContentDisposition - attachment;filename="youfilename"
    Do read the mail adapter FAQ.
    The parameter can vary for different mail client.

  • Configuring the Receiver Mail Adapter

    Hi,
    I have to send data in a flat file via email using XI. I have configured a File adapter to read the XML file from sender. I have configured receiver mail adapter at the other end. I get success message in the SMXB_MONI transaction. But no mail is received.
    My receiver communication channel settings are as follows:
    Adapter type: Mail
    Transport protocol: SMTP
    Message protocol: XIPAYLOAD
    Adapter Engine: Integration Server
    URL: smtp://mail.xyz.com:25
    Mail Attributes: Use Mail package (Source file has from/to Email Addresses)
    I tried differnet cmobinations of SMTP server address (with/without port/using http:// etc), but no success.
    Can anyone tell me what the problem could be and how to go about this?
    Thanks in advance.
    Riyaz

    hi riyaz,
    these r some of the links which can help u to configure ur mail adaptor.
    https://www.sdn.sap.com/irj/sdn/weblogs?   blog=/pub/wlg/1798
    Info on Email Receiver Adapter
    Mail Adapter Configuration in XI 3.0
    regards
    jithesh

  • Error in the Receiver SOAP Adapter

    Hello Experts,
           I am sending an order number by running a report on the ECC 6.0 server to a web service for publishing the information on the web site. The receiver side is configured as Receiver SOAP Adapter . I am getting the following error in the SXMB_MONI Transaction.
    com.sap.engine.interfaces.messaging.api.exception.MessagingException: SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: Not enough message parts were received for the operation.
    Kindly let me know to overcome this problem.
    Thanks
    Best Regards
    S Joshi

    Hi Ramesh,
        The message Iam getting in MONI is as follows:
    com.sap.engine.interfaces.messaging.api.exception.MessagingException: SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: Not enough message parts were received for the operation.
    This is the response for the request that i am sending for order creation. I did checked the fields also it is same and the values of the fields too. they all are correct. Over and above this it was working fine till last week , but suddendly this week I am getting this error.
    Regards

  • How to configure HTTPS in the receiver HTTP adapter ?

    Hi Guys,
    How to configure HTTPS in the HTTP receiver adapter and where i need to mention the QOS=BE in the receiver adpter.
    any suggestions or help would be appreciated
    Thanks,
    Srini

    You would need make sure that SSL is enabled on the ABAP stack . I rememver seeing a blog on SDN that shows how this is to be done.
    Once you have SSL enabled in the ABAP stack ( you would also need to install the cryptographic libraries as a part of this exercise) , you would be able to use HTTPS and also provide the necessary digital certificates etc.
    I have tried this with SOAP adapters etc but havent with the HTTP adapter but I dont see why this should be any different.
    Regards,
    Bhavesh

  • Changing data structure in the receiver SOAP adapter

    I was wondering whether it is possible to have changing data structure in terms of one receiver SOAP adapter so I could sent data type 1 and 2 to a single XI web service enabled URL and make conditional parsing in terms of the received message ?
    I have a receiver SOAP adapter that ideally should be able to receive two different types of messages. But SOAP adapter is fixed to a sigle message interface that naturally has it's data structure set to just one type. I can just create conditions in terms of the data type 1 message that has been defined in the design side.
    Is it possible achieve this with just one SOAP receiver adapter?

    Henri,
    Please go through the note: 856597 (Quesiton NO 9)
    -Naveen.

  • Not archive File adapter - Sender

    Two problem is Sender service.
    First Problem....
    Source Directory = C:\kkk\kk\ss
    Processing Mode = Archive
    Archive Directory = C:\abc\d
    So, Source Directory is File exist, file name is abc.txt.
    But, after archiving, the source directory is file remain, and Archive Directory is file remain too.
    Two Problem.....
    The other problem is file sender too.
    I used java module in file sender. Module scenario is two folder polling.
    ex)
    A folder=a.txt
                  => archiving => a.txt, b.txt into C
    B folder=b.txt
    But, module not working.....
    What two Problem?
    My System is NT(Window 2003, NW04s, jsk 1.4.2_9)
    Message was edited by: JuYeop Kim

    Hi,
    oops sorry as Michal said archive = archive + delete
    Moreover we can only select one option either Archive/Delete/Test
    As Michal said check is the directory is set to read only.
    Thanks,
    Prakash

  • Want Batch mode in the Receiver  JDBC adapter

    Hi,
      My scenario is  File  to JDBC .  from the source file I'm getting  20 records for file. after processing by XI while inserting the records into database level but due to some problem  some records are not inserting.. suppose first 5 records got successfully inserted. but 6th record  due to unique contarin problem that was failed. but  due to this problem remaing records are also not inserting from the 6th record onwards it was not inserting any more records . 
       But i want to process all the Records or If any error is there in those records i want to fail all the records. I dont want any partial posting of the data.
    Plesae suggest me some solution for this.
    Regards
    Jain

    Hi Joel,
        Already i have selected that Batch Mode in Advanced tab.  my  transport protocol is JDBC 2.0 .
    And my SQL query is only INSERT  . in the mapping i have mapped action tag to  INSERT Command  for  inserting the rows... 
         still  my SQL query is inserting first 5 records only out of 20 records ... if the sixth record contain any problem  the process has been terminating .
       Please suggets me some solution for avoiding those problems. if any error is there then i want to fail teh complete message otherwise process all the records.   I dont want any partial posting of the file.
    Regards
    Jain

  • Error configuring the receiver http adapter.

    Hi All,
    I get the folllowing error in the ICM Monitor trace file after I configure teh HTTP Adpater.Please can anyone suggets what is this error message and how to fix it.
    Thr 34] Thu Sep  3 07:59:18 2009
    [Thr 34] *** ERROR => IcmConnRollInWP: AppServer context already released [icxxthr_mt.c 2388]
    [Thr 12] *** ERROR => IcmPlAllocBuf: MpiGetOutbuf failed (rc = 14) [icxxplugin_m 1121]
    Regards,
    Shreshtha

    Do I have to set up certificates of that external server in my XI server.
    Yes. You have to import certificates on abap stack using STRUST.
    Second thing ,do I have to create an entry for https,port 443 in the parameter list of the ICM monitor.
    Yes.
    See this
    http://help.sap.com/saphelp_nw04/helpdata/en/14/ef2940cbf2195de10000000a1550b0/frameset.htm
    Regards,
    Prateek

  • Error in the Receiver JDBC Adapter

    Hi Guys,
       Iam getting the below given error when trying to insert the data into the Legacy DB...
    2006-06-20 01:16:25 Error Unable to execute statement for table or stored procedure. 'Table_Name' (Structure 'STATEMENT') due to java.sql.SQLException: ORA-01861: literal does not match format string
    2006-06-20 01:16:25 Error Exception caught by adapter framework: Error processing request in sax parser: Error when executing statement for table/stored proc. 'Table_Name' (structure 'STATEMENT'): java.sql.SQLException: ORA-01861: literal does not match format string
    Can anybody tell me what the error is ?
    Regards,
    Kittu.

    Kittu,
    this is how your Target Datatype should be,
    <nr1:MT_tablename xmlns:nr1="urn:XXXXXX.XX.yyyyy">
    <StatementName>
    <dbTableName action=”INSERT”>
    <table>TABLENAMETO WHICH INASERTING DATA</table>
    <access>
    <ts_matl>2006-06-14</ts_matl>
    <no_matl>M181127</no_matl>
    <qt_do>1</qt_do>
    </access>
    </dbTableName>
    </StatementName>
    </nr1:MT_tablename >
    Regards,
    Bhavesh
    Message was edited by: Bhavesh Kantilal

  • The same filename from a sender to a receiver file adapter - SP14

    Hi Expers,
    I Have Gone through the link which is given bu Michal.
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    Here My Questions are.........
    1.Should we give any file name in the receiver side Adapter in this scenario.?????
    2.How wil be the Sender and Receiver Communication channel Parameters????
      What Are they???????
    Please Clarify me...
    Regards
    Khanna

    Hi Rajesh,
    Is your query related to sending the file name from the source xml document to the reciever file adapter. If so this can be achieved.
    Pls. do the following.
    1. In the mapping program that you are using populate the filename coming from the source into the target root element.
    2.Sender adapters can write adapter-specific attributes to the message header; these can then be evaluated at configuration time
    3. To change the adapter-specific attributes of the message header by using message mappings, you access the required classes of the mapping API by using a mapping runtime constant.
    <b>Note: You donot need to specify any filename in the receiver communication channel.</b>
    To access the classes DynamicConfiguration and DynamicConfigurationKey by using the mapping runtime constant DYNAMIC_CONFIGURATION, use the method getTransformationParameters() of the container object.
    Create an simple user defined function in the mapping and use the following code.
    Imports: com.sap.aii.mapping.api.*;
    Parameter: String filename
    Paramter: String filename;
    filename = fileName + ".DAT";
    DynamicConfiguration conf = (DynamicConfiguration) container
    .getTransformationParameters()
    .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/File", "FileName");
    conf.put(key, filename);
    return filename;
    You donot need to hard code the value of the filename in the file adapter for your interface.
    In SXMB_MONI, when you see the pipeline services you would see that the value of the filename is populated in the message payload.
    Thanks
    Indranil

  • Excel file(.xls) as attachment and Body(Signature) via Receiver Mail Adapter

    Hi PI Experts,
    I have a requirement File(.txt) - PI(7.4) - mail (.xls attachment and signature in the body). Can anyone pls help me with the best approach to send excel file as mail attachment and signature in the body.
    Thanks,
    Sri

    Hi
    You can try this approach
    1. use mail package and java mapping to populate the mail package.
    inside the java mapping do the following
    a. read the text file and convert it to excel and then set it as additional attachment.
    b. map the signature and body with the field 'content' of mail package.
    2. on the receiver mail adapter check both mail package and keep attachment options.
    Hopefully this will work.
    Reference links
    excel write : Excel and Java - Read and Write Excel with Java - Tutorial
    set attachment: How to save MainDocument as additonal attachment in sender channel?

Maybe you are looking for

  • Time Capsule backup for multiple users

    I have my iMac setup so that each member of my family has their own account. I am the administrator. When I run a time capsule backup is it backing up their files as well or do I need to create a backup for their accounts. If I create individual back

  • Looking for app that works like a guitar trainer

    Anyone know if there's an app that lets you play back iTunes music but slowed down without changing the key? So I can learn guitar pieces... Thanks

  • Sun System Application Server error....

    Hello everyone, I just downloaded Sun Java System Applicatoin Server 9.1 and the install went fine. After I start the server, then choose Admin Console (http://localhost.4848) and login, then the problem starts. If I select any link in the Admin Cons

  • Is it possible to import 7D videos already in Aperture 3?

    I have many video clips that were imported from a 7D in Aperture.  I attempted to File --> Import  --> Files and point to those files stored in a folder and Final Cut Pro X will not import them.  Anyone know how to import those videos? Thanks...

  • "An error has occurred. Please try again later"

    Hello,  I got a problem with my Blackberry Curve9300 3G. It worked properly for the past year but since today, whenever I want to log myself into the Blackberry App World,  "An error has occurred. Please try again later" is displayed. I tried almost