Skip to Content
avatar image
Former Member

file adapter

Hi

I have a scenario with file adapter on the receiver side. File size is very big (80MB+) and is to be picked by third party system. This third party system is picking the file before it is completely written and cusing error. So I am thinking as

third party system picks the file only with particular file name....so keep file name with someother name before writing and change to orginial name to be able to pick by thrid party system. Is it possible ?? how to fulfil this rek ??

Thanks

kumar

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

5 Answers

  • Best Answer
    avatar image
    Former Member
    Oct 08, 2007 at 04:21 PM

    There is a feature in the file adapter... under the File Construction Mode parameters.

    Quote from SAP Help:

    <i>Under Write Mode, specify whether the target file is to be written directly in the specified directory.

    If an additional step is to be added using a temporary file, choose Use Temporary File.

    You can specify a naming schema for the temporary file under Temporary File Name Schema. This schema is used to determine the prefix and extension of the temporary file; to ensure a unique file name, the message ID is also added to the name during processing.</i>

    Hope this helps

    Cheers

    Manish

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 08, 2007 at 04:49 PM

    Kumar,

    I think you can achieved this by writing operating system command after message processing...where after creating file change it to desired one...

    Hope this will help.

    Nilesh

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 08, 2007 at 06:47 PM

    File Adapter Processing Parameters:

    Put File : use temporary file.

    if you want you can use temp.file schema also

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 08, 2007 at 07:32 PM

    Kumar,

    Are u writing the 80 MB+ file integration at single shot or how it works? I think you got my question. If not , see when you will conclude the file is completely written? From Single source file are u splitting them and finally appending in the target file?

    Could you please elaborate your scenario?

    Thanks,

    raj.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Raj !

      I am going to write 80MB file in one shot. Since it is huge file........it will take some time to write the file completely in target FTP folder. Then it will be picked up by third party system. But what is happening is before the file is completely written in the target FTP folder by XI ...........third party is picking the file and throwing the error. So I want to stop this happening. How to handle this scenario ??

      thanks

      kumar

  • avatar image
    Former Member
    Oct 08, 2007 at 10:38 PM

    hi,

    one possible solution can be this:

    /people/sravya.talanki2/blog/2005/11/29/night-mare-processing-huge-files-in-sap-xi

    and althougth the next link is not related with your problem rigth now, maybe all this files store in your database will damage your db performance. If ASCII , why not to zip the file?.

    try to follow this blog:

    SAP XI acting as a (huge) file mover

    /people/alessandro.guarneri/blog/2007/02/21/sap-xi-acting-as-a-huge-file-mover

    cheers.

    Eduardo.

    Add comment
    10|10000 characters needed characters exceeded