Skip to Content

How to add serial counter

Hi all,

Can you pls help me out Whether is their any option in PI 7.4 side  to add counter .

Means currently in my  scenario is from the ECC side we are using the serial counter field to add the counter ,

And now the issue is we are passing multiple Idocs from the ECC side and in PI we have to generate only 1 file ,In that way our counter is miss matching in the order . for example : In  ECC we are getting 10 idocs means we have to get only 1 count .??

Regards,

Sandhya

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    Nov 06, 2015 at 06:02 AM

    Hi Sandhya ,

    You can Call a RFC as a counter and use it as a lookup your mapping that may help you ....

    Regards.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 02, 2015 at 09:50 AM

    Hi Sandhya,

    If you are sending multiple IDocs, and generating single file, and if you need counter to be generated for the file side data , you can use the Statistic COUNT function in Message mappping.

    Or if you want to pass this counter from the ECC side , you need to accordingly maintain the counter in ECC and increment the counter value batch wise ( for a set of IDocs, against which a file is expected to be generated by PI system )

    Thanks and Regards,

    Sushil.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 02, 2015 at 09:56 AM

    Hi Sandhya,

    I have faced issues while using "Add counter" option in the file channel as the counter value will reset to 0 once the Java restart is done.

    Regards

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 02, 2015 at 09:24 AM

    Hello Sandhya,

    Instead of naming the file with the counter field using add counter in the file channel to add the counter to the field.

    Add comment
    10|10000 characters needed characters exceeded