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: 

appending long text

Former Member
0 Kudos

Hi,

i have a long text to be added to a transaction. I'm using the FM 'SAVE_TEXT' to save the long text. But whenever i'm adding new text, its overwriting the existing one.

if i add any new text, it should add to the existing one and not overwrite that. how to do that.

points assured..

Thanks

Shekhar

5 REPLIES 5

Former Member
0 Kudos

READ TEXT first and CONCATENATE text retreived and new text you want to add...Then use SAVE_TEXT

Former Member
0 Kudos

Hi Shekhar,

Try using the option 'U' in the parameter Funtion of SAVE_TEXT Function module.

FUNCTION - The parameter returns the processing status of the text module for the current call.

' ' No action

'I' Text module was inserted

'U' Text module was updated

'D' Text module was deleted

Reward if found useful,

Regards,

Swapna.

Former Member
0 Kudos

hi,

While using SAVE_TEXT please check the INSERT option functionality. If that is on then text will inserted from the front. If that is Off then use the method mentioned by person above.

Hope that helps.

Reward If Helpful

Regards

Sumit Agarwal

0 Kudos

Hi,

The FM is returning the function 'U' only.. But its not appending the text. Its just overwriting the existing one

even then that function parameter is an export parameter, we can't change it.. right?

Thanks

Shekhar

0 Kudos

When calling the FM SAVE_TEXT pl. pass SAVEMODE_DIRECT = 'X'

otherwise it will not save the text.

Regards,

Joy.