Skip to Content
author's profile photo Former Member
Former Member

SAP XI -> Combine Two files as one in File Adapter

Experts,

I want to combine two files as one in File adapter itself. I am using a simple scenario of File-to-File where i am just sending the file from sender to receiver as it is , EXCEPT, i want to add one line at the end of the file .

I was thinking of doing this in File adapter , avoiding any mapping program in Integration Repository ..

ANY INDEA's ??

Regards,

Ashutosh

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 06, 2008 at 04:44 PM

    You can achive this with using any Repository object.

    What you have to do is just use any dummy interface name and namespace and configure Sender and Receiver File adapter.

    In the Receiver File Adapter set the "File Construction Mode" parameter to "Append".

    Gaurav Jain

    Reward Points if answer is useful

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 06, 2008 at 06:29 PM

    Hi,

    Try this blog to transfer files without repository objects....Worked for me great!

    [https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/4383] [original link is broken] [original link is broken] [original link is broken];

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 06, 2008 at 04:57 PM

    Hey

    You have 3 options,first one can be to execute a OS command before message processing or use adapter modules to append the new line in the sender adapter.

    the second option(and better one) is to do this via message mapping.

    third option is to write a OS script and execute it after message processing on receiver file adapter.

    one thing you need to make sure is that since OS scripts run on XI server itself(not on FTP server) so in case you are picking file from FTP server and delivering to FTP ,then you can't use option 1 or 3,you can only use option 2

    Thanx

    Aamir

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 04:09 PM

    Thanks all for your expert comments and suggestions.

    Ashutosh

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.