Skip to Content
avatar image
Former Member

Receiver Communication Channel

Hi Expert,

Is there a way to add a counter to a receiver file adapter that uses FTP ?

Thank you in Advance

D

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Jun 13, 2007 at 01:09 PM

    Hi Danny,

    As far as i know theres no standard way you can add a counter when

    you are writing a file using FTP.

    Possibly what you can do is...

    Create the file name in mapping and store the last counter used in a database.

    So next time when you want to create a file you can do a lookup and get the last

    counter and increment it by 1.

    Regards,

    Sumit

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 13, 2007 at 01:02 PM

    Hi Danny,

    you can put a counter to the file name:

    Configuring" target="_blank">http://help.sap.com/saphelp_nw2004s/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm">Configuring the Receiver File/FTP Adapter

    Regards,

    Udo

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 13, 2007 at 01:04 PM

    Hi,

    new file is created for each document. The file name is extended with a counter, which is inserted before the file name extension (for example, default002.file). This selection is only available for the File System (NFS) transport protocol.

    Make specifications for Counter Definition:

    ● Prefix

    Specify one or more characters that you want to add before the counter in the file name.

    ● Format

    Specify the first counter to be used. It must be a valid integer number. Leading zeros are permitted.

    ● Step

    Specify the counter increment.

    ● Mode

    Specify when the counter is to be added.

    ○ After First File

    The counter is added when the file name is used unaltered for the first time.

    ○ Immediately

    The counter is added with the first document.

    Regards

    Hemant

    Add comment
    10|10000 characters needed characters exceeded