cancel
Showing results for 
Search instead for 
Did you mean: 

Sender System and Counter in Receiver file

Former Member
0 Kudos

Hi,

I have a requirement of having 'Sender Sytem ID' and 'Counter' in receiver flat file.

Please suggest, what is the best way to achieve this.

Scenario : ABAP --> PI ---> Legacy System

Proxy to File scenario

regards

Amol

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Please refer the following threads-

/message/686478#686478 [original link is broken]

As mentioned in the threads, use the method

System.getProperty("SAPSYSTEMNAME"); in udf for getting SYSID.

Counter??? DO you mean record counter..something like that??

You can use the standard count (statistic) or counter(arithmatic) functions for that.Please check the documentation for more help.

Former Member
0 Kudos

Thanks Nagarjuna,

System ID should be of Sender system ID i.e in my case it would be SAP ECC system ID.Can you suggest how to get sender system ID and XI system ID.

By counter, I mean file counter i.e every time file gets created it should append a counter value to file name.

Ex . first time, file name would be "test_001.txt", 2nd time "test_002.txt" , After test_999.txt is reached, next time it should again start with "test_001.txt"

Amol

Edited by: AMOL BHARTI on Oct 14, 2010 2:34 PM

Former Member
0 Kudos

You can use the property SENDER_SERVICE in your udf.Refer the threads mentioned before.

http://help.sap.com/saphelp_nw04/helpdata/en/6e/ff0bf75772457b863ef5d99bc92404/content.htm

Use the 'Add Counter' property in file construction mode of your receiver channel.

http://help.sap.com/saphelp_nw70/helpdata/EN/bc/bb79d6061007419a081e58cbeaaf28/content.htm

This works only with NFS.

Edited by: nagarjuna _s on Oct 14, 2010 2:46 PM

Answers (1)

Answers (1)

Former Member
0 Kudos

thanks for suggestion.