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

Problem changing header Text on SD-Order with 'SAVE_TEXT'

Former Member
0 Likes
3,993

Hi,

i try to Change a Header-Text of an sale order in this case.

After read_text i see the text. But the Little Change i will do are not stored in Sales Order.

Has anyoen an idea what i'm doing wrong?

Or is it better to use 'BAPI_SALESORDER_CHANGE' ?

Regards, Dieter

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
3,397

What is sy-subrc after SAVE_TEXT and COMMIT_TEXT?

Rob

Hi,

i try to Change a Header-Text of an sale order in this case.

After read_text i see the text. But the Little Change i will do are not stored in Sales Order.

Has anyoen an idea what i'm doing wrong?

Or is it better to use 'BAPI_SALESORDER_CHANGE' ?

Regards, Dieter

10 REPLIES 10
Read only

Former Member
0 Likes
3,398

What is sy-subrc after SAVE_TEXT and COMMIT_TEXT?

Rob

Read only

0 Likes
3,397

Hi,

sy-subrc is allways 0 and COMMIT_COUNT of COMMIT_TEXT is 1.

Regards, Dieter

Read only

0 Likes
3,397

Try adding a COMMIT WORK.

Rob

Read only

0 Likes
3,397

Hi,

i tried, but no result.

regards, Dieter

Read only

chaouki_akir
Contributor
0 Likes
3,396

Bonjour,

function SAVE_TEXT : there is an importing parameter SAVEMODE_DIRECT

  

Function COMMIT_TEXT : ==> may be you can check SM13 transaction

In TTXOB table, VBBK is seems to be updated in update task

Read only

michael_kozlowski
Active Contributor
0 Likes
3,396

Deactivate CALL FUNCTION 'COMMIT_TEXT' and try again.

Read only

Former Member
0 Likes
3,396

This message was moderated.

Read only

Former Member
0 Likes
3,396

Hi,

thanks to all. i find the Problem by Debugging save_text.

The Problem is in 3736 the text is referenced (STXH-TDREF). I tried another SD (3735) where
STXH is not set. the text in 3735 is changed via VA02 some times ago.

the Setting of STXH-TDREF is coused from Settings in VOTXN.

First i Change Setting in VOTXN for new Salesorder.

Second i will try to Change the older, referenced texts via BAPI.

Thanks to all.

Regards, Dieter

Read only

Former Member
0 Likes
3,396

Hi,

solved by using 'BAPI_SALESORDER_CHANGE'.

Regards, Dieter

Read only

0 Likes
3,396