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: 

Assigning data from one Table type to another structure

0 Kudos

Hi every one,

I have a table type X sent from one function module to another Proxy generated method which has the parameter defined as a structure.

I have declared a variable Y as a LINE TYPE OF X.

Then I have this statement which fills up the data.

READ TABLE X INTO Y INDEX 1.

The data is transferred from X to Y.

Now i need to send this to the proxy generated Function module which has a structure Z.

Now when i say MOVE-CORRESPONDING Y to a variable of type Z, it says it cannot be converted.

The structure in proxy generated FM has different data type but the same domain as that of standard one.

Everywhere it is prefixed with YY.

And also has one additional Controller tab inserted,

Can you guys tell me how to move the data from this table type to the structure.

- Venkat

1 REPLY 1

Former Member
0 Kudos

Hi,

Declare a variable of line type Z.

Move corresponding values from variable X to this variable.

Append this variable to the table Z.

Try this.

Regards,

R.Nagarajan.