Skip to Content
avatar image
Former Member

Storing Standard text in z table

Hi All,

I have a requirement where i need to display standard text from SO10 to user in edittable form so that user can edit the same and save. I want to store this edited text in database table. I tried creating char field with 1000 chars but only able to see up to 256 chars. Is there any other way?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Nov 02, 2017 at 01:59 PM

    You cannot edit a long text in a single variable at screen due to system limitation. (Why did SAP develop tools like Function Group STXD and classes like cl_gui_text_edit or office integration with Function Group STXX and classes like i_oi_document_proxy?)

    Why would you create a new table, when SAP provide a whole function group to save and edit long text in standard tables (look for function modules READ, EDIT and SAVE_TEXT. Create you own text object and IDs with SE75 by copy of TEXT and allow user to read standard texts and create/update those new customer texts in your report and use standard FM or class to manage editing.

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 02, 2017 at 04:09 PM
    1. Since you want to save a copy and not update the original one, instead of using a custom table, i'd create a Z... version of your text, mixing the different input you already received from Raymond and B. Wallagh.
    2. READ_TEXT of the Z....
    3. Not found, READ_TEXT of the original one
    5. SAVE_TEXT as Z...

    Nothing too complicate or extra-ordinary

    Add comment
    10|10000 characters needed characters exceeded