cancel
Showing results for 
Search instead for 
Did you mean: 

Copying a table

Former Member
0 Kudos

Dear All

I have two tables bound to two different value nodes having the same structure.

My requirement is to copy the data from second table to first table without running any loop.

There is a standard function available for this functionality in R3.

Is there any such function available in WebDynpro.

Can anybody help me with this.

Regards

Vineet Vikram

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You can use WDCopyService.copyElements(wdContext.nodeSource(), wdContext

.nodeTarget());

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

The Web Dynpro equivalent for the well know abap feature

"MOVE_CORRESPONDING". is


public static void copyCorresponding(Object source, Object target) 

Usage : WDCopyService.copyCorresponding(source, target);
Sample:WDCopyService.copyCorresponding(wdContext.node1(), wdContext.node2())

Regards

Ayyapparaj

Former Member
0 Kudos

Hi

Will this replace the elements already present in the target node or it will just append the source into the target ?

My target node contains some rows that are not to be deleted/ replaced.

Regards

Vineet Vikram

former_member751941
Active Contributor
0 Kudos

Hi Vineet,

Check this thread.

It will append the records of master node.

Regards,

Mithu

former_member197348
Active Contributor
0 Kudos

Hi Vineet,

You can use wdCopyServices API.

public static void WDCopyService.copyElements(IWDNode source,

IWDNode target);

regards,

Siva