Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

about structures

Former Member
0 Kudos

If S1 and S2 are different structures how will You transfer?

2 REPLIES 2

Former Member
0 Kudos

HI,

if s1 and s2 are..

1) are of the same type.

s1 = s2.

2) if few fields are same..

use move corresponing s1 to s2.

3) if all are distinct.

s1-filed1 = s2-value.

Thanks

Mahesh

Former Member
0 Kudos

Hi Sandeep,

As you have said S1 and S2 are different structures,

if they have similar fields with the same field name definitions, then you can go for :

MOVE-CORRESPONDING S1 TO S2.

If they have less number of similar fields or similar fields but different field name definitions, then you should move individual fields manually, in the below manner.

S1-<FieldX> = S2-<FieldY>. where FieldX and FieldY are similar field types but with different names.

<b>Reward points if this helps,</b>

kiran