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

how to avoid storing a record into Memory

Former Member
0 Likes
546

Hi all,

When i use HR_INFOTYPE_OPERATION FM for simulating the infotype 0416, it gets stored in Memory. This becomes a problem while i use the same FM for the second time. Bcoz, this FM updated another infotype, also it retrives the records from memory. Since the previous infotype (0416) was stored in memory, it updates that infotype also. But that should not be updated...How to avoid this pbm..

Any solution.......

Regards,

Shanthi

Hi all,

When i use HR_INFOTYPE_OPERATION FM for simulating the infotype 0416, it gets stored in Memory. This becomes a problem while i use the same FM for the second time. Bcoz, this FM updated another infotype, also it retrives the records from memory. Since the previous infotype (0416) was stored in memory, it updates that infotype also. But that should not be updated...How to avoid this pbm..

Any solution.......

Regards,

Shanthi

3 REPLIES 3
Read only

Former Member
0 Likes
512

If you know the memory id - and know what you are doing - then try FREE MEMORY between the function calls in your calling program.

Also FREE MEMORY without memory id frees ALL ABAP memory of your current runtime session. You can explore this as well.

Read only

0 Likes
512

Hi,

i tried using the following.

Free memory.

call function 'RH_CLEAR_BUFFER'.

call function 'RH_CLEAR_PLOG_TAB'.

Even then, the previous record which i simulated (IT 0416) gets updated when i call this FM for the second time.

Please suggest..

Regards,

Shanthi

Read only

Former Member
0 Likes
512

ANSWERED