cancel
Showing results for 
Search instead for 
Did you mean: 

CopyValue function

Former Member
0 Kudos

Hi,

I have below source structure.

DT_DataCapture has Action has 0:unbounded and has many attributes, one of them is Key.

Action has a child node called MaterialReporting having 0:unbounded, which has many element, one of them is BatchNumber.

The structure looks like this.

DT_DataCapture

Action 0:unbounded

Key required

.................

. ................

MaterialReporting 0:unbounded

BatchNumber

.................

.................

I have a target field shich has to be populated with

ZMRSDATA

items 0:unbounded

PrimaryKey 0:1

.................

.................

.................

I am looking to copy the value of Key to the target filed PrimaryKey for as many times as MaterialReporting occurs.

How should I achive this using standard functions?

If I have to write auser-Defined function, how should I do it?

Looking for your suggestion ASAP.

Thanks in advance, Namadev

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks Dava.

I am able to produce the value.

Thanks again.

Namadev

Former Member
0 Kudos

Hi

Use the standard function useOneAsMany to replicate the data.

See the example given in this linf for reference.

http://help.sap.com/saphelp_NW04/helpdata/en/ef/df564b6aa24fc9ab0d685460747de5/content.htm

-Dava