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: 

Moving fields of one structure to another mcekesb to uekes.

mahabaleshwar_patil
Participant
0 Kudos

I have imported the structure mcekesb in the FM EXIT_SAPLEINM_008

Now I want to move these fields  mcekesb structure fields to uekes structure

How to move?

DATA : im_ekes like uekes.

DATA xmcekes like mcekesb .

IMPORT xmcekes FROM MEMORY ID 'xmcekes'.

MOVE-CORRESPONDING xmcekes TO im_ekes.

1 REPLY 1

PeterJonker
Active Contributor
0 Kudos

It will work as long as you do not need any fields of structure mcekesb that are not present in structure uekes AND if you can do without the fields that are in structure uekes but don't exist in structure mcekesb.

And offcourse you must have exported the structure to memory to be able to import it again.