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 issue?

former_member202077
Participant
0 Likes
986

Hello

By using SAVE_TEXT FM in my report am able to create the header text in the sales orders, fine.

But, its NOT acting like APPENDING, its OVER WRITING, i mean, if there is already header text (say, test text line 1) for sales order 0000123456, if i try to use SAVE_TEXT FM in my report to create the header text (say, my text line 2), now, my 2nd line is over writing the line 1 for this sales order 0000123456

Pls. let me know how to APPEND the header text to existing text?

Thank you

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
775

Hi

The function module SAVE_TEXT only can handle this by passing ' ' in INSERT filed which is import parameter.

http://help.sap.com/saphelp_40b/helpdata/pt/d6/0db8ef494511d182b70000e829fbfe/content.htm

if not try below option..

You can check whether there is already text there or not in STXH and STXL table. If it is having text, then

First use READ_TEXT, get the text into ITAB and then append your text into this ITAB and use SAVE_TEXT else append directly using SAVE_TEXT.

This will improve the performance..

Shiva

2 REPLIES 2
Read only

Former Member
0 Likes
775

Hi,

SAVE_TEXT will always overwrite values. What you can do, you can first read the existing texts by using READ_TEXT fm and then append the new texts and then call the SAVE_TEXT again.

Hope this helps.

Regards,

Rudra

Read only

Former Member
0 Likes
776

Hi

The function module SAVE_TEXT only can handle this by passing ' ' in INSERT filed which is import parameter.

http://help.sap.com/saphelp_40b/helpdata/pt/d6/0db8ef494511d182b70000e829fbfe/content.htm

if not try below option..

You can check whether there is already text there or not in STXH and STXL table. If it is having text, then

First use READ_TEXT, get the text into ITAB and then append your text into this ITAB and use SAVE_TEXT else append directly using SAVE_TEXT.

This will improve the performance..

Shiva