cancel
Showing results for 
Search instead for 
Did you mean: 

counter

former_member193376
Active Contributor
0 Kudos

Hi

Requirement is : I am using Pi 7.1, i have line items on my source, and as many line items have to be created on target, thats not a problem. for every line item on my target, there is a field where in, it should display a counter. since pi 7.1 does not allow to create a global var, i am stuck.

Note: getting the total count is not needed.

EG: target

root node(1st lineitem)

lineitem1 = 1

lineitem2 = abc

root node

root node(2nd lineitem)

lineitem1 = 2

lineitem2 = xyz

root node

root node(3rdnd lineitem)

lineitem1 = 3

lineitem2 = pqr

root node

in pi 7.0, this is very easy to do with global variables, 7.1 has made it a little complicating.

i have referred to blog /people/william.li/blog/2008/02/13/sap-pi-71-mapping-enhancements-series-using-graphical-variable

not much help. it helps to get the total count, but not in sequence for each lineitem

THanks

SG

Accepted Solutions (1)

Accepted Solutions (1)

GabrielSagaya
Active Contributor
0 Kudos

Please see the UDF regarding counter

Answers (2)

Answers (2)

udo_martens
Active Contributor
0 Kudos

Hi SG,

just use [standard function|http://help.sap.com/saphelp_nw2004s/helpdata/en/43/c4cdfc334824478090739c04c4a249/frameset.htm] "counter".

Regards,

Udo

Former Member
0 Kudos

Hi,

try this...........in msg mapping, take source node like Record and use Index function and map it to Lineitem field...........

Regards,

Rajeev Gupta