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

SAVE_TEXT - Not working in Batch mode

Former Member
0 Likes
1,059

I am updating Operator Remarks for Return orders using SAVE_TEXT function module. The following is the scenario

1. This text is initialized with text from Customer master when the order is created.

2. I need to add more text after the order is created.

3. So I am reading existing Text. (READ_TEXT) adding my text to the existing and Using SAVE_TEXT to update the text with the new set of texts.

This works well in foreground mode but if I schedule the program in background it fails. Some times it retains the original text and sometimes it takes the new text from my program.

Any solusions? Thanks a lot for looking into this.

I am updating Operator Remarks for Return orders using SAVE_TEXT function module. The following is the scenario

1. This text is initialized with text from Customer master when the order is created.

2. I need to add more text after the order is created.

3. So I am reading existing Text. (READ_TEXT) adding my text to the existing and Using SAVE_TEXT to update the text with the new set of texts.

This works well in foreground mode but if I schedule the program in background it fails. Some times it retains the original text and sometimes it takes the new text from my program.

Any solusions? Thanks a lot for looking into this.

5 REPLIES 5
Read only

Former Member
0 Likes
805

Try to use EDIT_TEXT and then SAVE_TEXT, hope this might help u

Read only

Former Member
0 Likes
805

Hi

Have you tried to use the parameter SAVEMODE_DIRECT?

And try to force the commit work too

Max

Read only

Former Member
0 Likes
805

Hi.

EDIT_TEXT does not work in the background mode.

Read only

0 Likes
805

Are you using the parameter 'INSERT' in 'SAVE_TEXT' FM?

The module can be used to change existing texts and to create new texts. If it is clear that it is a new text, this can be specified via the parameter INSERT. The result is better performance as a test read is not performed.

Read only

Former Member
0 Likes
805

Where do you get the additional text from? If you are uploading it from the presentation server, this won't work in the background.

Rob