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

Free all memory used by a function group

Former Member
0 Likes
3,261

Hi all,

I am using a std function module (PM_ORDER_DATA_READ) in my report. But as I am using this FM in a loop, its going into a dump in 2nd iteration as the data accumulated in 1st execution still remains. ( U can just check it out by executed this FM in se37 twice by giving different production order numbers).

Is there any way to clear all the data used by this function group (COIT)..?

I've checked FREE MEMORY, but it didn't work.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,910

Hi Jithendra,

Use this FM in the loop. CLSC_FREE_MEMORY

It will clear the memory and now you will not get any shortdumps.

Thanks

Pavan Kothapalli

Hi all,

I am using a std function module (PM_ORDER_DATA_READ) in my report. But as I am using this FM in a loop, its going into a dump in 2nd iteration as the data accumulated in 1st execution still remains. ( U can just check it out by executed this FM in se37 twice by giving different production order numbers).

Is there any way to clear all the data used by this function group (COIT)..?

I've checked FREE MEMORY, but it didn't work.

6 REPLIES 6
Read only

Former Member
0 Likes
1,911

Hi Jithendra,

Use this FM in the loop. CLSC_FREE_MEMORY

It will clear the memory and now you will not get any shortdumps.

Thanks

Pavan Kothapalli

Read only

0 Likes
1,910

No Pavan, its not working. When I see in debug mode, it shows 0 memory IDs used ( in FM CLSC_FREE_MEMORY) & agains throws dump.

Read only

Former Member
0 Likes
1,910

Hi Jithendra,

Did you ever find a solution to this? I am now facing exactly this problem in one of my programs.

Regards,

Mike Speight

Read only

Former Member
0 Likes
1,910

Hi Jitendra,

Does the dump log shows that the cause is memory shortage?

Thanks and Best Regards,

Vikas Bittera.

**Points for useful answers**

Read only

Former Member
0 Likes
1,910

Hi

You can create a z function module of type remote-enabled, which then calls the standard function module. Then in your custom program, call this custom function module instead of the standard with destination none. All memory will be cleared in RFC calls.

Thanks and regards

Kwong Tat

Read only

Former Member
0 Likes
1,910

Try FM 'CO_EXT_ORDER_RESET' and/Or 'CO_IT_SET_FLG_ITAB_NEW'  Before PM_ORDER_DATA_READ