on 08-24-2016 9:35 AM
Hi All, We have a requirement to add the counter for each message received in pi and at EOD we need to add this counter value to the file. The counter value has to be reset '0' every day. Please assist how can i achieve this, using counter in File channel we are unable to reset it. Regards, Swapna.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Swapna,
If your sender is ERP then ask them to send the counter value then you can add it to the file. This is better than generating the counter in PI because we cant keep the data in PI, PI is for just pass the information.
If you use RFC lookup or JDBC lookup performance is not good.
Regards,
Praveen.
You should achieve this using an RFC Lookup and maintaining this in SAP ECC.
Why? The only standard option is a parameter add Counter ( Configuring the Receiver File Adapter - Advanced Adapter Engine - SAP Library ) that only works with NFS (not FTP) and the counter value is reset every time J2EE stack is reset or file services adapter reset.
You can try to do the second option with availability time planning reset every day. Maybe it works
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do you have seeburger in your landscape ?
You can use the CounterBean provided by Seeburger for this.
br,
Manoj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Swapna,
Is it for all interfaces in SAP PI or particular one?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Swapna,
Are you using Dual stack ?
for dual stack try as per below link
Get count of the messages to particular Interfa... | SCN
For single stack you need to try with date time functions.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.