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

Text memory not being cleared after SAVE_TEXT

Former Member
0 Likes
1,918

Hi ,

I am using SAVE_TEXT function module ( along with SAVE_MODE_DIRECT = 'X') to write some data into the text elements of a Sales order during creation. This activity is being done in the SAVE_DOCUMENT method.

The problem is that once the text is saved to the sales order and I attempt to create a new SALES_ORDER using VA01, the old value ( from the already saved order) appears in the text elements.

I tried using FREE MEMORY ID ,but the same did not work.

Any thoughts on how I can flush the memory text.

Thanks,

Jasmit

<removed by moderator>

Edited by: Thomas Zloch on Jan 15, 2012 9:40 PM

1 ACCEPTED SOLUTION
Read only

former_member282823
Active Participant
0 Likes
1,594

Hi Jasmit,

Just try to refresh the table data after the save_text FM. this will solve the problem.

Regards,

Ramesh.

Hi ,

I am using SAVE_TEXT function module ( along with SAVE_MODE_DIRECT = 'X') to write some data into the text elements of a Sales order during creation. This activity is being done in the SAVE_DOCUMENT method.

The problem is that once the text is saved to the sales order and I attempt to create a new SALES_ORDER using VA01, the old value ( from the already saved order) appears in the text elements.

I tried using FREE MEMORY ID ,but the same did not work.

Any thoughts on how I can flush the memory text.

Thanks,

Jasmit

<removed by moderator>

Edited by: Thomas Zloch on Jan 15, 2012 9:40 PM

9 REPLIES 9
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
1,594

Try with save_mode eq ' '

Nabheet

Read only

former_member214857
Contributor
0 Likes
1,594

Hi Jasmit

You can set parameter SAVEMODE_DIRECT = 'X'

Read only

former_member282823
Active Participant
0 Likes
1,595

Hi Jasmit,

Just try to refresh the table data after the save_text FM. this will solve the problem.

Regards,

Ramesh.

Read only

0 Likes
1,594

Hi All,

I tried with refreshing the table, using the SAVE_MODE_DIRECT ='X' and blank, but the issue still persists.

I was under assumption that SAP might be clearing the text memory before every new transaction and then initiating the text determination procedure. However, this does not looks like the case..

Any thoughts on alternate solutions.

Regards,

Jasmit

Read only

0 Likes
1,594

Hi,

Did you try to free memory after commit ? As in executing some subroutine while commit ?

Sridhar

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,594

Hello Jasmit,

Did you try refreshing the text memories by caling the FMs 'FREE_TEXT_MEMORY' and/or 'INIT_TEXT'?

BR,

Suhas

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,594

Did you check it in So01 ? Is it available there ?

Kesav

Edited by: Keshav.T on Jan 16, 2012 4:33 PM

Read only

Former Member
0 Likes
1,594

Hi experts,

is there any solution for this? I am facing the same problem.

Tried all the above suggestions, but nothing worked for me.

Thanks

Tobi

Read only

0 Likes
1,594

This message was moderated.