Skip to Content
avatar image
Former Member

Need UDF Help

Hi All,

I am working on IDoc to File interface, I have to place file with sequence number in the FTP server.

Could any one help me with this please..?

Thanks & Regards,

AK

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Oct 21, 2015 at 07:04 AM

    Hi Ak,

    Check this link http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/503e9bea-ea09-2e10-ec8a-cdf369de99d3?QuickLink=index&…

    Later you can use dynamic configuration to use those numbers to create name of the file.

    Regards.

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Ak,

      If you check the code first try to access to this file

      File propertiesfile = new File("Sequence.properties");

      ....

      properties.load(new FileInputStream(propertiesfile));

      Later try to get the current sequence number:

      String number = properties.getProperty(formatName);

      And finally with the variable "counter", increment the file number value and to return this value.

      You need to have a directory with you can read/write and to change the first sentence that i wrote, for example: "File propertiesfile = new File("/usr/sap/trans/Sequence.properties");". Ask to your basis if there is a directory with these premises.

      Hope this helps.

      Regards.

  • Oct 23, 2015 at 01:23 AM

    If you are using NFS, you can set Add Counter in receiver file adapter.

    Configuring the Receiver File Adapter

    Add comment
    10|10000 characters needed characters exceeded