Application Development and Automation 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: 
Read only

MOVE CORRESPONDING

lokesh_malik
Product and Topic Expert
Product and Topic Expert
0 Likes
480

DATA : is_data type mara.

FIELD-SYMBOLS:<fs_data> type ANY.

MOVE CORRESPONDING <fs_data> to is_data.

this statement works in ERP 2005 but not in ERP 4.6C

Can any one tell me what is the smilar statement for this in ERP 4.6C

2 REPLIES 2
Read only

Former Member
0 Likes
447

Hi Lokesh,

can you be a bit elaborative with the problem.

what i can see is you defined a field symbol of type any, so you will need to assign this field symbol to a field of mara and then you can use the direct assignment.

Eg:


DATA : is_data type mara.

FIELD-SYMBOLS:<fs_data> type ANY.

assign is_data-matnr to <fs_data>.

<fs_data> = 500.

move <fs_data> to is_data.

write is_data-matnr.

or if you are using the field symbol as a structure then the following example works


DATA : is_data type mara.

FIELD-SYMBOLS:<fs_data> structure mara default is_data.

<fs_data>-mandt = 800.
<fs_data>-matnr = 500.

move  <fs_data> to is_data.

write: is_data-matnr,
       is_data-mandt.

hope this helps.

Regards,

Kinshuk

Read only

andreas_mann3
Active Contributor
0 Likes
447

hi,

use:

do.
 assign component sy-index of structure <fs_data> to <f1>.
 assign component sy-index of structure  is_data  to <f2>.

  if sy-subrc = 0. move <f1> to <f2>. endif.
...

A.