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: 

how to use abap memory in global class

Former Member
0 Kudos

Hi experts,

I want to know how to use abap memory in global class. when i try write export and import statement its showing

error is export statement does not support in object oriented concept.

Thanks

Ramesh Manoharan

3 REPLIES 3

former_member262988
Active Contributor
0 Kudos

Hi,

Declare an attribute of the class and pass the value ..that attribute will be active till the entire instance.

Thanks,

Shailaja Ainala.

former_member230674
Contributor
0 Kudos

Hi Ramesh,

Export and import statements were not allowed to use in classes. Create a global variable in public section of that class of type of export parameter.Then pass value to the global variable of class by calling that class.

by

Prasad GVK.

former_member215870
Participant
0 Kudos

The OO ABAP support the SHARE MEMORY. This is the new concept for working with the MEMORY and is based on ABAP Objects. So if you see how the Share Memory Objects are actually working you will solve your problem.

With Regards

George