‎2011 Aug 24 2:08 PM
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
‎2011 Aug 24 2:27 PM
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
‎2011 Aug 24 2:19 PM
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
‎2011 Aug 24 2:27 PM
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