list type business variable. complex business variable:

Assign list type business variables


I have to assign a complex business variable: oml_O21 with another one : adt_A04, in a groovy script, like this:

oml_O21.msg_Content.pv1=adt_A04.msg_Content.pv1; /where Pv1 is an business variable with attributes.

1- Is this assignment correct or do I have to assign each attribute with the one that matches it?

Also I have to assign:

oml_O21.msg_Content.obx=adt_A04.msg_Content.obx; /where obx is a list type business variable with attributes .

2- How can i make this assignment?