cancel
Showing results for 
Search instead for 
Did you mean: 

Field counter

glenn_karlsson2
Participant
0 Kudos

Hi all,

I have a requirement to count the number of mapped fields and put the result in the last element of the target structure, ie if a map (from the source structure) 35 fields, the last element on the target strucure is Counter = 36 (35 + the counter element).

Can this be achieved in graphical mapping? How do I do it?

kind regards,

Glenn

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

if a map (from the source structure) 35 fields, the last element on the target strucure is Counter = 36 (35 + the counter element).

as per my understanding, u ll try below logic

source filed1 + count-> s.f2 + count + add->target field (like ans 2)

s.f3 + count + add

s.f4 + count + add

..

.

.

.

.

..

s.f35 + count + add -> target

if above mapping is satisfied for ur requirement :

check second point in below link:

http://sapxitutorials.blogspot.com/2009/04/count-of-records-count-on-easiest-way.html

Former Member
0 Kudos

HI,

if your business rules are easy (all source info to target), you can use the graphic function "COUNT" (under statistic).

even if this one is mainly to count the occurence of a source field.

Mickael

former_member184681
Active Contributor
0 Kudos

Hi,

You can define a variable and add 1 to its value each time you map some field, then map the value of this variable to your last field. This will require quite a lot of manual work, but I don't know any simpler way to do this using graphical mapping.

Hope you'll find this useful,

Greg