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

SO HEADER text change using a program

Former Member
0 Likes
1,513

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

6 REPLIES 6
Read only

VikasB
Active Participant
0 Likes
1,187

Hi Ram,

Can use SAVE_TEXT and COMMIT_TEXT instead.

Regards,

vikas

Read only

Former Member
0 Likes
1,187

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

Read only

0 Likes
1,187

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

Read only

0 Likes
1,187

Use where used-list for both function module from SE37 for sample code.

Read only

Former Member
0 Likes
1,187

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

Read only

Former Member
0 Likes
1,187

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