Skip to Content
avatar image
Former Member

SAVE_TEXT Function Call Probelm

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jul 31, 2004 at 02:01 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

    • 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.