‎2008 Oct 21 11:53 AM
Hi experts,
I have one requirement of changing the existing Header text with a new text in Sales Orders using a program. So I was wondering what would be the approach in doing so.
Do I need to use both READ_TEXT and SAVE_TEXT?!!
Can you help me in that regard.
Br
Ram
‎2008 Oct 21 11:57 AM
Hi Ram,
Can use SAVE_TEXT and COMMIT_TEXT instead.
Regards,
vikas
‎2008 Oct 21 11:57 AM
Hi,
Yes simply READ_TEXT then EDIT_TEXT / SAVE_TEXT for each text that needs to be changed. note the FM's read table SXTH.
Thanks
Stu
‎2008 Oct 21 12:14 PM
Hi Murray,
Thanks for your reply.
What parameters shall we use in both the function modules.
Can you give me the sample code if possible.
Rg,
Ram
‎2008 Oct 21 12:16 PM
Use where used-list for both function module from SE37 for sample code.
‎2008 Oct 21 12:00 PM
hi,
You can read the sales text from material master using FM READ_TEXT and then get the sales order(s) with that material and
update the text using "READ_TEXT" and "SAVE_TEXT" function modules.
regards,
Lokesh
‎2008 Oct 21 1:15 PM
Hi,
Look at table STXH - this will provide the parameters for the FM's.
have a look for OBJECT = VBBK (sales order header texts) for example
TDOBJECT VBBK
TDNAME 1100000045 (sales order number)
TDID 0001 (text ID - look at the table you will notice there are many configured - choose the relevant one)
Just go into a sales order on VA02 goto header texts and enter a text....then goto SE16 for STXH and do a search for your userid and todays date to see the key used....
Thanks
Stu
Edited by: Stu Murray on Oct 21, 2008 2:15 PM