Skip to Content

Add counter in File Name

Hi experts,

Regarding the counter in dynamic configuration filename.

Requirment is to get the filename as "ENURES-CC" where ENUS is the value coming from source field & CC is file number for that day 01 to 99

If the value in source field changes then the file number should be start from 00.

EX: first file triggered and field has ENURES then the filename should be as "ENURES-01"

second file triggered and field has ENURES then the filename should be as "ENURES-02" etc

and if the file triggered with different value in field like ABCDE then the filename should be as "ABCDE-01".

please provide if there is any way to acheive the above solution.

Thanks,

Manoj

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Best Answer
    Posted on Dec 09, 2014 at 04:43 PM

    Thanks guys for your reply.

    I achieved this by using seeburger Mapping variables and java code .

    thanks for your valuable time šŸ˜Š

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 08, 2014 at 07:32 PM
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 08, 2014 at 07:34 PM

    You can go for RFC look up and handle these validations there.

    You can define a custom table to store/retrieve/reset the counter.

    Pass the current date & filed value to FM

    Store date, field value and sequence number in a table.

    Select/update table and return the counter value..

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 08, 2014 at 07:41 PM

    Manoj,

    see if standard counter fits your needs

    Configuring the Receiver FTP Adapter - Advanced Adapter Engine - SAP Library

    See here for details (including RFC Lookup option if standard counter is not feasible)

    Cheers

    Jens

    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.