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: 

BADi Question: Need to move data from OLD_IMAGE-DATA1 to structure

Former Member
0 Kudos
99

Greetings:

I want to move the data from OLD_IMAGE to a structure that matches the infotype I'm working with, i.e., P0167. I tried this using the following code:

DATA:   lv_p0167  TYPE p0167,
        lv_wa_old LIKE LINE OF old_image.

...


MOVE lv_wa_old-data1 TO lv_p0167.

However, the compiler tells me that "'LV_P0167 and 'LV_WA_OLD-DATA1' are not mutually convertible in a Unicode program".

I need the data in this structure because I need to hand it off to a FM, among other things.

Suggestions?

Thanks!

1 ACCEPTED SOLUTION

Sm1tje
Active Contributor
0 Kudos
55

Looks like structures differ from each other, so it might be possible to move the fields from the structure seperately like this:

move lv_wa_old-data1 to lv_p0167-data1 (or whatever the name of the field might be).

1 REPLY 1

Sm1tje
Active Contributor
0 Kudos
56

Looks like structures differ from each other, so it might be possible to move the fields from the structure seperately like this:

move lv_wa_old-data1 to lv_p0167-data1 (or whatever the name of the field might be).