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

class methods

Former Member
0 Likes
438

Hi,

i have written a global class in that i have written select queries.i am trying to assign the data that i got from method to a local internal table in the program,how

should i assign it.

3 REPLIES 3
Read only

Former Member
0 Likes
413

Well your Methods inheriting your select statements have an interface.

Make sure your selected data is beeing putted out through a parameter.

well then call your method depending on if it is a class method or an instance method.

data: lt_vbak type table of vbak.

call method YourClass=>yourMethod

EXPORTING

yourParameters

IMPORTING

TheData

or

call method YourClass=>yourMethod

EXPORTING

yourParameters

TABLES

TheData

Read only

0 Likes
413

I have created a final internal table,the fields of this table scattered into multiple internal tables.i have to assign these internal table values to final internal table.

Read only

Clemenss
Active Contributor
0 Likes
413

Hi sai,

please tell us what the method for selecting data looks like. One possible way is to define the local table as export parameter of the method. Another way is to define the internal table as public attribute of the class. You could also define a reference (type ref to data) to export a reference to the data.

Try to pose your question more specific.

Regards,

Clemens