cancel
Showing results for 
Search instead for 
Did you mean: 

SAVE_TEXT Function Call Probelm

Former Member
0 Kudos

Hi Guys

Iam updating the long text (KP06) transacation using SAVE_TEXT. I passed the THEAD structure (copied from transcation long text screen. SAVE_TEXT returns a successful sy-subrc.

The updated text is not visible in the transcation screen but available for function call READ_TEXT (I passed the THEAD by cut & Copy from transaction text header screen (to ruleout the possibility of incorrect THEAD).

One more information is that when i update the long text in the transaction screen, the old text (updated thro SAVE_TEXT) is overwritten and READ_TEXT retunrs only the recent text enteried in the screen..

Your answers and help are very much appreciated..

Joe

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I don't remember the exact parameter, but you need to set it so it does the direct save. Otherwise look at the functions that belong to the same function group as SAVE_TEXT.. there should be a function like commit or something... you have to call that function at the end.

Former Member
0 Kudos

Hi Iwan,

Thanks for your time...I did set the SAVEMODE_DIRECT as 'X' and also tried using the Fn COMMIT_TEXT after the SAVE_TEXT.

The Result didnt change for good..

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Are you sure you keys are correct. The SAVE_TEXT function module will not do validation on them. I have seen this error before. Take sales orders for instance. What is actually stored in the database is 000010000 although the conversion routine displays this as 10000. However if you pass the save_text function module 10000 that is completely different from 000010000. The function will save the text under the incorrect key and it won't be accessible. You can always look and see what conversion functions are attached to your key fields and call them before passing to the save_text function module.