cancel
Showing results for 
Search instead for 
Did you mean: 

record counter in message mapping

former_member440449
Participant
0 Kudos

Hi all,

I'm having a multiple IDOCs to 1 file scenario, and structure is like this:

source:

IDOC(1..unbounded)

target:

structure1(1..unbounded)

>field1(1..1)

IDOC is mapped directly to structure1.

for field, I need the number of total IDOC structure sent.

This means, if 3 IDOC are coming, then field1 need to have value "3".

I used the "count" function from the statistic functions, but when I got multiple IDOCs, I'm having a mapping error.

How can I count number of incoming IDOCs in a field inside each structure per IDOC?

Accepted Solutions (1)

Accepted Solutions (1)

RaghuVamseedhar
Active Contributor
0 Kudos

Hi Chapa,

After "count" use "CopyValue" (index 0), it will work. FYI [Link1|http://help.sap.com/saphelp_nw04/helpdata/en/26/d22366565be0449d7b3cc26b1bab10/frameset.htm]

Regards,

Raghu_Vamsee

former_member440449
Participant
0 Kudos

Thanks Raghu, it works!!!

Answers (1)

Answers (1)

baskar_gopalakrishnan2
Active Contributor
0 Kudos

>How can I count number of incoming IDOCs in a field inside each structure per IDOC?

Use CopyValue() followed by your count()