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: 

OO Call Method - How to Efficiently Export a Large Internal Table

Former Member
0 Kudos
89

I am trying to create methods and to keep things as modularized as possible. I want to call a method from my program to read line items from my calling program's internal table called itab_BSEG. I can use a binary search and field symbols in the method for efficiency.

However, in order to do this I would need to pass the large itab_BSEG to the method, so the method would return a small table of line items, itab_line_items, for my Order Number.

Is there a way to efficiently pass the large internal table of itab_BSEG to the method for processing? Or, in this case am I better off just processing the data from where itab_BSEG lives in the calling program?

I've heard of shared memory, are there any other ways to do this with pointers and addresses so the large internal table can be passed efficiently with little crunch on the system?

I am on 4.6C

Thank-You

Message was edited by:

Tom M.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
65

Hi Tom,

Why are you creating a new method just for the processing of internal table. You can do the same in the same program and once processing done REFRESH the table and FREE the memory.

Regards,

Atish

1 REPLY 1

Former Member
0 Kudos
66

Hi Tom,

Why are you creating a new method just for the processing of internal table. You can do the same in the same program and once processing done REFRESH the table and FREE the memory.

Regards,

Atish