cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping Question

Former Member
0 Kudos

Hi @all,

once again... SAP Help told me that I should have a mapping function called "copyValue" but I could find it

in my function toolbar (SP 13) - did they delete it?!

So how could I solute following problem, I have one value in my input message - but I should duplicate it in output structure... I have create myself a simple Java code like this:

--->

result.addValue("0");

result.addValue("1");

<----

that makes me 2 rows - but I need to add values their in stead of 0 & 1 - the value of my input field.

THX Matt

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

The option of copyValue can be found under the 'Constants'. Choose All Functions --> Constants and you find CopyValue there.

Sameer

Former Member
0 Kudos

thanks - I searched on a wrong point

But CopyValue "just" copy my value n - times...

what I like to do is, I've got 1 flat structure as input, but I need to create 2 IDOC segments out of that.

I make this with my small JAVA function above. But this just creates me 2 segments - now I like to fill in case of the 1st occurrence of segment field1 and 2nd occurrence field2...

I think I have to do it with another JAVA function - but I have know idea how...

THX Matt

Former Member
0 Kudos

hi folks - i soluted on my own!

Answers (0)